blob: c753ab2275e2705d3a6370b338461f934481199f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
set-option global grepcmd "rg -S --vimgrep --hidden -g '!**/.git/**'"
map global file g ':grep ''''<left>' -docstring 'Grep'
map global file * ': grep --case-sensitive %val{selection}<ret>' -docstring 'Grep selection'
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-previous-match<ret>'
map global file ] ': grep-next-match<ret>'
}
hook global -always BufOpenFifo '\*make\*' %{
map global file [ ': make-previous-error<ret>'
map global file ] ': make-next-error<ret>'
}
|