zsh:keys: Set FZF_{CTRL_T,ALT_C}_COMMAND

Do not ignore hidden files.
This commit is contained in:
2022-09-19 12:45:26 +02:00
parent bc16774f1d
commit 85b95dce37

View File

@@ -137,4 +137,10 @@ bindkey -M vicmd '^K' fzf-history-widget
# ^T fzf-file-widget
# \ec (Alt-C) fzf-cd-widget
# ^R fzf-history-widget
FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
FZF_ALT_C_COMMAND="find -L . -mindepth 1 \("
FZF_ALT_C_COMMAND+=" -name '.git' -o"
FZF_ALT_C_COMMAND+=" -name '__pycache__' -o"
FZF_ALT_C_COMMAND+=" -name 'node_modules'"
FZF_ALT_C_COMMAND+=" \) -prune -o -type d -print"
comp-source "$ZDOTDIR/plugins/fzf/shell/key-bindings.zsh"