From 1cfd9d4d61d05e65a23892433a4bd02d147a50e8 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 9 Jun 2026 10:50:31 +0200 Subject: misc: add preview scroll key bindings for fzf (in both nvim and bash) --- .config/fzf/fzf.bash | 1 + .config/nvim/plugin/50-fzf-lua.lua | 2 ++ 2 files changed, 3 insertions(+) (limited to '.config') diff --git a/.config/fzf/fzf.bash b/.config/fzf/fzf.bash index 5ceed69..97a1fba 100644 --- a/.config/fzf/fzf.bash +++ b/.config/fzf/fzf.bash @@ -23,6 +23,7 @@ export FZF_DEFAULT_OPTS=" --bind tab:down,btab:up --bind 'alt-y:execute-silent(wl-copy {..})+abort' --bind 'alt-/:change-preview-window(down|hidden|)' +--bind 'ctrl-n:preview-half-page-down,ctrl-p:preview-half-page-up' --layout reverse --height 50% --color header:italic diff --git a/.config/nvim/plugin/50-fzf-lua.lua b/.config/nvim/plugin/50-fzf-lua.lua index cc4f440..e0c4ce3 100644 --- a/.config/nvim/plugin/50-fzf-lua.lua +++ b/.config/nvim/plugin/50-fzf-lua.lua @@ -39,6 +39,8 @@ fzf.setup({ builtin = { true, -- inherit defaults [""] = "toggle-preview", -- show/hide preview + [""] = "preview-half-page-down", -- scroll preview (Ctrl-j/k navigate) + [""] = "preview-half-page-up", }, }, actions = { -- cgit v1.3.1