blob: 5da657fe6742aab7d7d4fb9ce8cf7d1b2105ef4e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 %{
evaluate-commands -draft %{
execute-keys '%'
set-register c %sh{ echo "$kak_selections" | "$kak_config/scripts/grep-write.clj" }
}
info %val{reg_c}
}
hook global BufOpenFifo '\*grep\*' %{
map global file [ ': grep-previous-match<ret>'
map global file ] ': grep-next-match<ret>'
}
hook global BufOpenFifo '\*make\*' %{
map global file [ ': make-previous-error<ret>'
map global file ] ': make-next-error<ret>'
}
|