summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-09 10:50:31 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-09 10:50:31 +0200
commit1cfd9d4d61d05e65a23892433a4bd02d147a50e8 (patch)
tree11d5e07c7582a2581c1cf0c7e2dbd3363c8553e3
parent20ad9ef4af40ac54e584afbff9ee82c2e9bd319b (diff)
downloaddotfiles-1cfd9d4d61d05e65a23892433a4bd02d147a50e8.tar.gz
dotfiles-1cfd9d4d61d05e65a23892433a4bd02d147a50e8.zip
misc: add preview scroll key bindings for fzf (in both nvim and bash)
-rw-r--r--.config/fzf/fzf.bash1
-rw-r--r--.config/nvim/plugin/50-fzf-lua.lua2
2 files changed, 3 insertions, 0 deletions
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
["<M-/>"] = "toggle-preview", -- show/hide preview
+ ["<C-n>"] = "preview-half-page-down", -- scroll preview (Ctrl-j/k navigate)
+ ["<C-p>"] = "preview-half-page-up",
},
},
actions = {