Skip to content

Commit

Permalink
chore(zsh): update fzf commands
Browse files Browse the repository at this point in the history
  • Loading branch information
schardev committed Aug 2, 2024
1 parent 017f174 commit d8c0bf6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/zsh/plugins/fzf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d8c0bf6

Please sign in to comment.