Fix fuzzy creation of new file

FZF exits with a status of 1 if nothing was selected. This is often the
case though if we are creating a new file so I added `|| true` to make
bash continue anyway
master
Jonathan Hodgson 4 years ago
parent 463100a6a6
commit a9cdb7dfe9
  1. 4
      inc/fzf

@ -16,8 +16,8 @@ ${YELLOW}ctrl+e $WHITE edit selected ${YELLOW}ctrl+d $WHITE delete selected
output="$(listEntries |
fzf --header="$header" --header-lines=2 --print-query \
--delimiter=" +" --with-nth=3,5 --height=100% \
--expect="ctrl-n,ctrl-o,ctrl-e,ctrl-d" \
--preview='bash -c "fzfPreview {}"')"
--expect="ctrl-n,ctrl-v,ctrl-e,ctrl-d" \
--preview='bash -c "fzfPreview {}"')" || true
query="$(echo "$output" | sed -n '1p')"
operation="$(echo "$output" | sed -n '2p')"

Loading…
Cancel
Save