Do not autoscroll on grep results

Closes #3100
This commit is contained in:
Maxime Coste 2019-09-26 20:30:38 +10:00
parent aa6a7e544d
commit 370693afd8

View File

@ -17,7 +17,7 @@ All the optional arguments are forwarded to the grep utility} \
fi fi
printf %s\\n "evaluate-commands -try-client '$kak_opt_toolsclient' %{ printf %s\\n "evaluate-commands -try-client '$kak_opt_toolsclient' %{
edit! -fifo ${output} -scroll *grep* edit! -fifo ${output} *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 -always -once buffer BufCloseFifo .* %{ nop %sh{ rm -r $(dirname ${output}) } } hook -always -once buffer BufCloseFifo .* %{ nop %sh{ rm -r $(dirname ${output}) } }