Closed siferati closed 5 months ago
You can just suppress the message by redirecting the standard error stream to /dev/null
.
i.e. python -c "print('hello\nworld')" 2> /dev/null
But this made me realize that there's a flaw in the current API design. The command is executed regardless of whether the prefix has the trigger or not. I'll think about it.
On second thought, this is probably not too bad. Most programs will immediately terminate because of the broken pipe (like in your case).
Checklist
man fzf
)Output of
fzf --version
0.48.1 (d579e33)
OS
Shell
Problem / Steps to reproduce
I'm trying to have fzf to autocomplete the output of a python command.
It works fine if I type
hello ** + TAB
. But if I dohello + TAB
(i.e. the usual bash completion without fzf) I get the errorThe above error only happens when using python output. If I replace the python line with
echo hello\nworld
it works as expected with no errors.How can I fix the error when pressing tab without
**
?