{grep,make}.kak: use edit! instead of trying to delete buffer

This commit is contained in:
Maxime Coste 2013-03-22 18:39:48 +01:00
parent a160fd6984
commit 3e9a0c4c13
2 changed files with 2 additions and 4 deletions

View File

@ -12,8 +12,7 @@ def -shell-params -file-completion \
if [[ -n "$kak_opt_toolsclient" ]]; then echo "eval -client '$kak_opt_toolsclient' %{"; fi
echo "try %{ db *grep* } catch %{}
edit -fifo ${output} *grep*
echo "edit! -fifo ${output} *grep*
setb filetype grep
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}) } }"

View File

@ -7,8 +7,7 @@ def -shell-params make %{ %sh{
if [[ -n "$kak_opt_toolsclient" ]]; then echo "eval -client '$kak_opt_toolsclient' %{"; fi
echo "try %{ db *make* } catch %{}
edit -fifo ${output} *make*
echo "edit! -fifo ${output} *make*
setb filetype make
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}) } }"