Browse Source

fzrepl: big fixes and improvements

pull/17/merge
DanielFGray 2 years ago
parent
commit
40cd8f2dfb
  1. 12
      fzrepl

12
fzrepl

@ -67,16 +67,16 @@ for arg; do @@ -67,16 +67,16 @@ for arg; do
esac
done
if [[ -z $cmd ]]; then
usage
exit 1
fi
if [[ -z $cmd && -n $1 && ! -f $1 ]]; then
cmd="$1"
shift
fi
if [[ -z $cmd ]]; then
usage
exit 1
fi
if [[ $cmd != *'{q}'* ]]; then
cmd+=' {q}'
fi
@ -92,6 +92,8 @@ fi @@ -92,6 +92,8 @@ fi
mapfile -t REPLY < <(
tee "$tmpfile" < "$file" | fzf \
--sync \
--ansi \
--height=100% \
--phony \
--print-query \

Loading…
Cancel
Save