diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-12-02 12:23:06 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-12-02 12:23:06 +0000 |
commit | c4a71cbc90b8ce101fbdca64231fb6536d8e9c0d (patch) | |
tree | 8328eb7461259dc7c03a3c73325455403b0fca16 | |
parent | f65bef69e3d1d201dbb0e8baafec4438c78d5293 (diff) | |
download | dotfiles-c4a71cbc90b8ce101fbdca64231fb6536d8e9c0d.tar.gz |
Improve fzf options
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 4 |
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 |