mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 20:52:06 -07:00
Change CTRL-T binding to include directories
This commit is contained in:
2
install
2
install
@@ -102,6 +102,7 @@ bind '"\er": redraw-current-line'
|
|||||||
__fsel() {
|
__fsel() {
|
||||||
find * -path '*/\.*' -prune \
|
find * -path '*/\.*' -prune \
|
||||||
-o -type f -print \
|
-o -type f -print \
|
||||||
|
-o -type d -print \
|
||||||
-o -type l -print 2> /dev/null | fzf -m | while read item; do
|
-o -type l -print 2> /dev/null | fzf -m | while read item; do
|
||||||
printf '%q ' "$item"
|
printf '%q ' "$item"
|
||||||
done
|
done
|
||||||
@@ -125,6 +126,7 @@ fzf-file-widget() {
|
|||||||
FILES=($(
|
FILES=($(
|
||||||
find * -path '*/\.*' -prune \
|
find * -path '*/\.*' -prune \
|
||||||
-o -type f -print \
|
-o -type f -print \
|
||||||
|
-o -type d -print \
|
||||||
-o -type l -print 2> /dev/null | fzf -m))
|
-o -type l -print 2> /dev/null | fzf -m))
|
||||||
unset IFS
|
unset IFS
|
||||||
FILES=$FILES:q
|
FILES=$FILES:q
|
||||||
|
Reference in New Issue
Block a user