blob: c0d1010ca83435e35ee5fe361d27ab64a37e9ace (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
set-option global grepcmd "rg -S --vimgrep --hidden -g '!**/.git/**'"
map global file g ":grep ''<left>" -docstring 'Grep'
define-command grep-write %{
execute-keys '%' # Consider selecting manually
evaluate-commands %sh{
echo "$kak_selections" | "$kak_config/scripts/apply_vimgrep_updates.fnl" | xargs -i echo "info '{}'"
}
}
hook global -always BufOpenFifo '\*grep\*' %{
map global file ] ': grep-next-match<ret>'
map global file [ ': grep-previous-match<ret>'
}
hook global -always BufOpenFifo '\*make\*' %{
map global file ] ': make-next-error<ret>'
map global file [ ': make-previous-error<ret>'
}
|