diff --git a/.config/kak/kakrc b/.config/kak/kakrc index c66c9f3..210efda 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -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' {} \; } hook global ModuleLoaded fzf %{ - set-option global fzf_preview_pos 'up' + set-option global fzf_terminal_command 'fzf-terminal' } hook global ModuleLoaded fzf-file %{ set-option global fzf_file_command 'rg' @@ -86,8 +86,15 @@ hook global ModuleLoaded fzf-grep %{ set-option global fzf_grep_command 'rg' } map -docstring 'search files' global user f ': fzf-modef' +map -docstring 'search buffers' global user b ': fzf-modeb' map -docstring 'grep files' global user g ': fzf-modeg' +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 # ------------ diff --git a/.config/river/init b/.config/river/init index bc66669..5ec3a4e 100755 --- a/.config/river/init +++ b/.config/river/init @@ -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 "Firefox — Sharing Indicator" +riverctl float-filter-add app-id fzf ~/.config/river/keys