File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,8 @@ if _has fzf; then
94
94
FZF_ALT_C_COMMAND=' fd --type d --color never'
95
95
fi
96
96
97
- # Display source tree and file preview for CTRL-T and ALT-C.
98
- if _has tree || _has eza; then
99
- # Show subdir tree for directories.
100
- FZF_ALT_C_OPTS=" --preview '(eza --tree --icons --level 3 --color=always --group-directories-first {} || tree -C {}) | head -200'"
101
- fi
97
+ # Display source tree and file preview for ALT-C.
98
+ FZF_ALT_C_OPTS=" --preview '(eza --tree --icons --level 3 --color=always --group-directories-first {} || tree -C {}) | head -200'"
102
99
103
100
# Bind alt-j/k/d/u to moving the preview window for fzf.
104
101
FZF_DEFAULT_OPTS=" --bind alt-k:preview-up,alt-j:preview-down,alt-u:preview-page-up,alt-d:preview-page-down"
@@ -110,7 +107,7 @@ if _has fzf; then
110
107
111
108
# Some basic fzf-tab configs.
112
109
plugins+=(fzf-tab)
113
- zstyle ' :fzf-tab:complete:cd:*' fzf-preview ' (eza --tree --color=always $realpath || tree -C $realpath) 2> /dev/null'
110
+ zstyle ' :fzf-tab:complete:cd:*' fzf-preview ' (eza --tree --icons -- color=always $realpath || tree -C $realpath) 2> /dev/null'
114
111
zstyle ' :completion:*:descriptions' format ' [%d]'
115
112
zstyle ' :fzf-tab:*' switch-group ' ,' ' .'
116
113
fi
You can’t perform that action at this time.
0 commit comments