Make all fifo cleanup hooks run always
Those should not get prevented from running just because the user disabled hooks, they are important for cleanup.
This commit is contained in:
parent
4eb6740794
commit
869736359a
|
@ -16,7 +16,7 @@ define-command lint -docstring 'Parse the current buffer with a linter' %{
|
||||||
edit! -fifo $dir/fifo -debug *lint-output*
|
edit! -fifo $dir/fifo -debug *lint-output*
|
||||||
set-option buffer filetype make
|
set-option buffer filetype make
|
||||||
set-option buffer make_current_error_line 0
|
set-option buffer make_current_error_line 0
|
||||||
hook -group fifo buffer BufCloseFifo .* %{
|
hook -always -group fifo buffer BufCloseFifo .* %{
|
||||||
nop %sh{ rm -r '$dir' }
|
nop %sh{ rm -r '$dir' }
|
||||||
remove-hooks buffer fifo
|
remove-hooks buffer fifo
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ All the optional arguments are forwarded to the grep utility} \
|
||||||
edit! -fifo ${output} -scroll *grep*
|
edit! -fifo ${output} -scroll *grep*
|
||||||
set-option buffer filetype grep
|
set-option buffer filetype grep
|
||||||
set-option buffer grep_current_line 0
|
set-option buffer grep_current_line 0
|
||||||
hook -group fifo buffer BufCloseFifo .* %{
|
hook -always -group fifo buffer BufCloseFifo .* %{
|
||||||
nop %sh{ rm -r $(dirname ${output}) }
|
nop %sh{ rm -r $(dirname ${output}) }
|
||||||
remove-hooks buffer fifo
|
remove-hooks buffer fifo
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ All the optional arguments are forwarded to the make utility} \
|
||||||
edit! -fifo ${output} -scroll *make*
|
edit! -fifo ${output} -scroll *make*
|
||||||
set-option buffer filetype make
|
set-option buffer filetype make
|
||||||
set-option buffer make_current_error_line 0
|
set-option buffer make_current_error_line 0
|
||||||
hook -group fifo buffer BufCloseFifo .* %{
|
hook -always -group fifo buffer BufCloseFifo .* %{
|
||||||
nop %sh{ rm -r $(dirname ${output}) }
|
nop %sh{ rm -r $(dirname ${output}) }
|
||||||
remove-hooks buffer fifo
|
remove-hooks buffer fifo
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are
|
||||||
edit! -fifo ${dir}/fifo -debug *clang-output*
|
edit! -fifo ${dir}/fifo -debug *clang-output*
|
||||||
set-option buffer filetype make
|
set-option buffer filetype make
|
||||||
set-option buffer make_current_error_line 0
|
set-option buffer make_current_error_line 0
|
||||||
hook -group fifo buffer BufCloseFifo .* %{
|
hook -always -group fifo buffer BufCloseFifo .* %{
|
||||||
nop %sh{ rm -r ${dir} }
|
nop %sh{ rm -r ${dir} }
|
||||||
remove-hooks buffer fifo
|
remove-hooks buffer fifo
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
|
||||||
printf %s "evaluate-commands -with-hooks -try-client '$kak_opt_docsclient' %{
|
printf %s "evaluate-commands -with-hooks -try-client '$kak_opt_docsclient' %{
|
||||||
edit! -fifo ${output} *git*
|
edit! -fifo ${output} *git*
|
||||||
set-option buffer filetype '${filetype}'
|
set-option buffer filetype '${filetype}'
|
||||||
hook -group fifo buffer BufCloseFifo .* %{
|
hook -always -group fifo buffer BufCloseFifo .* %{
|
||||||
nop %sh{ rm -r $(dirname ${output}) }
|
nop %sh{ rm -r $(dirname ${output}) }
|
||||||
remove-hooks buffer fifo
|
remove-hooks buffer fifo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user