{grep,make}.kak: use edit! instead of trying to delete buffer
This commit is contained in:
parent
a160fd6984
commit
3e9a0c4c13
|
@ -12,8 +12,7 @@ def -shell-params -file-completion \
|
||||||
|
|
||||||
if [[ -n "$kak_opt_toolsclient" ]]; then echo "eval -client '$kak_opt_toolsclient' %{"; fi
|
if [[ -n "$kak_opt_toolsclient" ]]; then echo "eval -client '$kak_opt_toolsclient' %{"; fi
|
||||||
|
|
||||||
echo "try %{ db *grep* } catch %{}
|
echo "edit! -fifo ${output} *grep*
|
||||||
edit -fifo ${output} *grep*
|
|
||||||
setb filetype grep
|
setb filetype grep
|
||||||
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}) } }"
|
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}) } }"
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@ def -shell-params make %{ %sh{
|
||||||
|
|
||||||
if [[ -n "$kak_opt_toolsclient" ]]; then echo "eval -client '$kak_opt_toolsclient' %{"; fi
|
if [[ -n "$kak_opt_toolsclient" ]]; then echo "eval -client '$kak_opt_toolsclient' %{"; fi
|
||||||
|
|
||||||
echo "try %{ db *make* } catch %{}
|
echo "edit! -fifo ${output} *make*
|
||||||
edit -fifo ${output} *make*
|
|
||||||
setb filetype make
|
setb filetype make
|
||||||
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}) } }"
|
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}) } }"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user