Improve fzf options

This commit is contained in:
David Morgan 2022-12-02 12:23:06 +00:00
parent f65bef69e3
commit c4a71cbc90
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 3 additions and 1 deletions

View File

@ -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