From 2daaba187c2f9715ede8dd1e34363b930f221f60 Mon Sep 17 00:00:00 2001 From: saheratarch <49341975+saheratarch@users.noreply.github.com> Date: Mon, 9 Mar 2020 08:17:31 +0300 Subject: [PATCH] Add slight change to fzf as a dmenu replacement script: allow fzfmenu script ro be truly like dmenu by adding the --print-query flag and piping it to tail -1 See https://stackoverflow.com/questions/60540679/how-to-make-fzf-send-text-that-has-no-match-to-standard-output for more --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index f728903..55efcbf 100644 --- a/Examples.md +++ b/Examples.md @@ -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 | tee $output" & disown +st -c fzfmenu -n fzfmenu -e sh -c "cat $input | fzf --print-query | tail -1 | tee $output" & disown # handle ctrl+c outside child terminal window trap "kill $! 2>/dev/null; rm -f $input $output" EXIT