Change CTRL-T binding to include directories

pull/19/head
Junegunn Choi 10 years ago
parent 089691faaf
commit 426284c87e

@ -102,6 +102,7 @@ bind '"\er": redraw-current-line'
__fsel() {
find * -path '*/\.*' -prune \
-o -type f -print \
-o -type d -print \
-o -type l -print 2> /dev/null | fzf -m | while read item; do
printf '%q ' "$item"
done
@ -125,6 +126,7 @@ fzf-file-widget() {
FILES=($(
find * -path '*/\.*' -prune \
-o -type f -print \
-o -type d -print \
-o -type l -print 2> /dev/null | fzf -m))
unset IFS
FILES=$FILES:q

Loading…
Cancel
Save