mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Support $FZF_DEFAULT_COMMAND on fzopen plugin (#514)
This commit is contained in:
parent
f54d51c863
commit
aa7f1dabdd
|
@ -10,7 +10,9 @@
|
||||||
# Author: Arun Prakash Jana
|
# Author: Arun Prakash Jana
|
||||||
|
|
||||||
if which fzf >/dev/null 2>&1; then
|
if which fzf >/dev/null 2>&1; then
|
||||||
entry=$(find . -type f 2>/dev/null | fzf --delimiter / --nth=-1 --tiebreak=begin --info=hidden)
|
cmd="$FZF_DEFAULT_COMMAND"
|
||||||
|
[ -z "$cmd" ] && cmd="find . -type f 2>/dev/null"
|
||||||
|
entry="$(eval "$cmd" | fzf --delimiter / --nth=-1 --tiebreak=begin --info=hidden)"
|
||||||
# To show only the file name
|
# To show only the file name
|
||||||
# entry=$(find . -type f 2>/dev/null | fzf --delimiter / --with-nth=-1 --tiebreak=begin --info=hidden)
|
# entry=$(find . -type f 2>/dev/null | fzf --delimiter / --with-nth=-1 --tiebreak=begin --info=hidden)
|
||||||
elif which fzy >/dev/null 2>&1; then
|
elif which fzy >/dev/null 2>&1; then
|
||||||
|
|
Loading…
Reference in a new issue