From efcbfccefa24c53bea2c918dd30741a67202949f Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 31 Jan 2022 16:13:17 -0300 Subject: [PATCH] kak & river: Usar una ventana flotante para FZF --- .config/kak/kakrc | 9 ++++++++- .config/river/init | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) 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