mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -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
@@ -1421,7 +1421,7 @@ mkfifo $output
|
|||||||
chmod 600 $input $output
|
chmod 600 $input $output
|
||||||
|
|
||||||
# it's better to use st here (starts a lot faster than pretty much everything else)
|
# 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
|
# handle ctrl+c outside child terminal window
|
||||||
trap "kill $! 2>/dev/null; rm -f $input $output" EXIT
|
trap "kill $! 2>/dev/null; rm -f $input $output" EXIT
|
||||||
|
|||||||
Reference in New Issue
Block a user