kakrc: agregar comando grep y usar ripgrep
This commit is contained in:
parent
0a57c42d6b
commit
887415e48a
1 changed files with 11 additions and 1 deletions
|
@ -93,7 +93,17 @@ source "%val{config}/plugins/fzf.kak/rc/fzf.kak"
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \;
|
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \;
|
||||||
}
|
}
|
||||||
map global user f ': fzf-mode<ret>f'
|
hook global ModuleLoaded fzf %{
|
||||||
|
set-option global fzf_preview_pos 'up'
|
||||||
|
}
|
||||||
|
hook global ModuleLoaded fzf-file %{
|
||||||
|
set-option global fzf_file_command 'rg'
|
||||||
|
}
|
||||||
|
hook global ModuleLoaded fzf-grep %{
|
||||||
|
set-option global fzf_grep_command 'rg'
|
||||||
|
}
|
||||||
|
map -docstring 'search files' global user f ': fzf-mode<ret>f'
|
||||||
|
map -docstring 'grep files' global user g ': fzf-mode<ret>g'
|
||||||
|
|
||||||
# ------------
|
# ------------
|
||||||
# Buffer switching
|
# Buffer switching
|
||||||
|
|
Loading…
Reference in a new issue