|
|
|
@ -46,7 +46,7 @@ __fsel() {
|
|
|
|
|
-o -type l -print 2> /dev/null | cut -b3-"}"
|
|
|
|
|
setopt localoptions pipefail no_aliases 2> /dev/null
|
|
|
|
|
local item
|
|
|
|
|
eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore ${FZF_DEFAULT_OPTS-} ${FZF_CTRL_T_OPTS-}" $(__fzfcmd) -m "$@" | while read item; do
|
|
|
|
|
eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --scheme=path --bind=ctrl-z:ignore ${FZF_DEFAULT_OPTS-} ${FZF_CTRL_T_OPTS-}" $(__fzfcmd) -m "$@" | while read item; do
|
|
|
|
|
echo -n "${(q)item} "
|
|
|
|
|
done
|
|
|
|
|
local ret=$?
|
|
|
|
@ -75,7 +75,7 @@ fzf-cd-widget() {
|
|
|
|
|
local cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
|
|
|
|
|
-o -type d -print 2> /dev/null | cut -b3-"}"
|
|
|
|
|
setopt localoptions pipefail no_aliases 2> /dev/null
|
|
|
|
|
local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore ${FZF_DEFAULT_OPTS-} ${FZF_ALT_C_OPTS-}" $(__fzfcmd) +m)"
|
|
|
|
|
local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --scheme=path --bind=ctrl-z:ignore ${FZF_DEFAULT_OPTS-} ${FZF_ALT_C_OPTS-}" $(__fzfcmd) +m)"
|
|
|
|
|
if [[ -z "$dir" ]]; then
|
|
|
|
|
zle redisplay
|
|
|
|
|
return 0
|
|
|
|
|