kakounte: add fzf.kak
This commit is contained in:
1 parent
13febe7ced
commit
a1e71faa94
1 file changed
+25
@@ -294,6 +294,31 @@ bundle live-grep https://codeberg.org/raiguard/kak-live-grep %{
|
|||||||
map global -docstring 'Live grep (selection)' file-mode 'G' ': live-grep %val{selection}<ret>'
|
map global -docstring 'Live grep (selection)' file-mode 'G' ': live-grep %val{selection}<ret>'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# FZF
|
||||||
|
|
||||||
|
bundle fzf https://github.com/andreyorst/fzf.kak %{
|
||||||
|
map global user u ': fzf-mode<ret>' -docstring 'Fzf'
|
||||||
|
|
||||||
|
hook global ModuleLoaded fzf %{
|
||||||
|
define-command -hidden fzf-git-grep %{
|
||||||
|
set local fzf_grep_command "git grep -n ''"
|
||||||
|
fzf-grep
|
||||||
|
}
|
||||||
|
define-command -hidden fzf-file-grep %{
|
||||||
|
set local fzf_grep_command "grep -Hn '' %val{buffile}"
|
||||||
|
set local fzf_grep_preview false
|
||||||
|
fzf-grep
|
||||||
|
}
|
||||||
|
define-command -hidden fzf-file-dir-grep %{
|
||||||
|
set local fzf_grep_command "grep -RHn '' %sh{dirname ""$kak_buffile""}"
|
||||||
|
fzf-grep
|
||||||
|
}
|
||||||
|
map -docstring 'git grep' global fzf G ': require-module fzf-grep; fzf-git-grep<ret>'
|
||||||
|
map -docstring 'file grep' global fzf l ': require-module fzf-grep; fzf-file-grep<ret>'
|
||||||
|
map -docstring 'file dir grep' global fzf d ': require-module fzf-grep; fzf-file-dir-grep<ret>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# HARPOON
|
# HARPOON
|
||||||
|
|
||||||
bundle kak-harpoon 'https://codeberg.org/raiguard/kak-harpoon' %{
|
bundle kak-harpoon 'https://codeberg.org/raiguard/kak-harpoon' %{
|
||||||
|
|||||||
Reference in new issue
Block a user