about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-12-02 12:23:06 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-12-02 12:23:06 +0000
commitc4a71cbc90b8ce101fbdca64231fb6536d8e9c0d (patch)
tree8328eb7461259dc7c03a3c73325455403b0fca16 /nix-conf/home
parentf65bef69e3d1d201dbb0e8baafec4438c78d5293 (diff)
downloaddotfiles-c4a71cbc90b8ce101fbdca64231fb6536d8e9c0d.tar.gz
Improve fzf options
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/zsh.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index 59e8d13..5c463c3 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -104,7 +104,9 @@
 
       export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
       export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
-      export FZF_ALT_C_COMMAND="rg --hidden --files --sort-files --null | xargs -0 dirname | sort -u"
+      export FZF_ALT_C_COMMAND='rg --hidden --files --sort-files --null -g ""!{.git,node_modules}/*" | xargs -0 dirname | sort -u'
+      export FZF_ALT_C_OPTS="--preview 'exa --tree {} | head -200'"
+      export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind 'ctrl-t:toggle-preview'"
 
       autopair-init
       enable-fzf-tab