Procházet zdrojové kódy

Support $FZF_DEFAULT_COMMAND on fzopen plugin (#514)

master
Krisan Alifari Arun Prakash Jana před 4 roky
rodič
revize
aa7f1dabdd
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      plugins/fzopen

+ 3
- 1
plugins/fzopen Zobrazit soubor

@@ -10,7 +10,9 @@
# Author: Arun Prakash Jana

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
# entry=$(find . -type f 2>/dev/null | fzf --delimiter / --with-nth=-1 --tiebreak=begin --info=hidden)
elif which fzy >/dev/null 2>&1; then


Načítá se…
Zrušit
Uložit