Makes fzf full height and aligns the help header

master
Jonathan Hodgson 4 years ago
parent 828e21e328
commit 90cef0d7c0
  1. 8
      kb

8
kb

@ -245,16 +245,14 @@ fuzzySelect(){
local output
local header="$(echo -e "Type to filter
${YELLOW}ctrl+n $WHITE create new
${YELLOW}ctrl+v $WHITE view selected
${YELLOW}ctrl+e $WHITE edit selected
${YELLOW}ctrl+d $WHITE delete selected
${YELLOW}ctrl+n $WHITE create new ${YELLOW}ctrl+v $WHITE view selected
${YELLOW}ctrl+e $WHITE edit selected ${YELLOW}ctrl+d $WHITE delete selected
")"
export -f fzfPreview
export dataDir
output="$(listEntries |
fzf --header="$header" --header-lines=2 --print-query \
--delimiter=" +" --with-nth=3,5 \
--delimiter=" +" --with-nth=3,5 --height=100% \
--expect="ctrl-n,ctrl-o,ctrl-e,ctrl-d" \
--preview='bash -c "fzfPreview {}"')"

Loading…
Cancel
Save