From d8c0bf646fc5622a40185994a5df997c3c44cb6f Mon Sep 17 00:00:00 2001 From: Saurabh Charde Date: Fri, 2 Aug 2024 17:31:19 +0530 Subject: [PATCH] chore(zsh): update fzf commands --- config/zsh/plugins/fzf.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/zsh/plugins/fzf.zsh b/config/zsh/plugins/fzf.zsh index 30ccf93..62768d3 100644 --- a/config/zsh/plugins/fzf.zsh +++ b/config/zsh/plugins/fzf.zsh @@ -10,10 +10,12 @@ fi source "${PREFIX:-/usr}"/share/fzf/key-bindings.zsh # Use fd as primary indexer globally -export FZF_DEFAULT_COMMAND="fd --type f --strip-cwd-prefix --follow" -export FZF_DEFAULT_OPTS="--bind 'alt-w:toggle-preview-wrap'" +export FZF_DEFAULT_COMMAND="fd --type=file --strip-cwd-prefix --follow" +export FZF_ALT_C_COMMAND="fd --type=directory --strip-cwd-prefix --follow" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" -export FZF_ALT_C_OPTS="--height 100% --preview 'exa --tree {}'" + +export FZF_DEFAULT_OPTS="--bind 'alt-w:toggle-preview-wrap,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up'" +export FZF_ALT_C_OPTS="--height 100% --preview 'eza --color=always --tree {}'" ## Few useful utilities