kak & river: Usar una ventana flotante para FZF
This commit is contained in:
parent
2c8971bcd1
commit
efcbfccefa
2 changed files with 9 additions and 1 deletions
|
@ -77,7 +77,7 @@ 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' {} \;
|
||||||
}
|
}
|
||||||
hook global ModuleLoaded fzf %{
|
hook global ModuleLoaded fzf %{
|
||||||
set-option global fzf_preview_pos 'up'
|
set-option global fzf_terminal_command 'fzf-terminal'
|
||||||
}
|
}
|
||||||
hook global ModuleLoaded fzf-file %{
|
hook global ModuleLoaded fzf-file %{
|
||||||
set-option global fzf_file_command 'rg'
|
set-option global fzf_file_command 'rg'
|
||||||
|
@ -86,8 +86,15 @@ hook global ModuleLoaded fzf-grep %{
|
||||||
set-option global fzf_grep_command 'rg'
|
set-option global fzf_grep_command 'rg'
|
||||||
}
|
}
|
||||||
map -docstring 'search files' global user f ': fzf-mode<ret>f'
|
map -docstring 'search files' global user f ': fzf-mode<ret>f'
|
||||||
|
map -docstring 'search buffers' global user b ': fzf-mode<ret>b'
|
||||||
map -docstring 'grep files' global user g ': fzf-mode<ret>g'
|
map -docstring 'grep files' global user g ': fzf-mode<ret>g'
|
||||||
|
|
||||||
|
define-command fzf-terminal -params 1.. -shell-completion %{
|
||||||
|
set-option global termcmd "footclient --app-id=fzf sh -c"
|
||||||
|
wayland-terminal %arg{@}
|
||||||
|
set-option global termcmd "footclient sh -c"
|
||||||
|
}
|
||||||
|
|
||||||
# ------------
|
# ------------
|
||||||
# Buffer switching
|
# Buffer switching
|
||||||
# ------------
|
# ------------
|
||||||
|
|
|
@ -27,6 +27,7 @@ riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap enabled
|
||||||
|
|
||||||
riverctl float-filter-add title Picture-in-Picture
|
riverctl float-filter-add title Picture-in-Picture
|
||||||
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
||||||
|
riverctl float-filter-add app-id fzf
|
||||||
|
|
||||||
~/.config/river/keys
|
~/.config/river/keys
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue