m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

I made fzfmenu script accept arguments so that the user is able to give fzfmenu fzf options. For example to use fzfmenu --reverse

saheratarch
2020-03-19 15:15:39 +03:00
parent e28d1b39f8
commit 16e6fbb68a

@@ -1421,7 +1421,7 @@ mkfifo $output
chmod 600 $input $output
# it's better to use st here (starts a lot faster than pretty much everything else)
st -c fzfmenu -n fzfmenu -e sh -c "cat $input | fzf --print-query | tail -1 | tee $output" & disown
st -c fzfmenu -n fzfmenu -e sh -c "cat $input | fzf $* | tee $output" & disown
# handle ctrl+c outside child terminal window
trap "kill $! 2>/dev/null; rm -f $input $output" EXIT