-
I have this simple command: I want to execute this command and select one item from it. when I press enter, it should copy the text to stdout without run it or going to new line. I want fzf leave me in this position. how can I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
[DELETED] The user's intentions were misunderstood, directing them incorrectly and adding to their frustration. |
Beta Was this translation helpful? Give feedback.
-
Your question is a bit unclear, and I think @LangLangBart tried his best to assist you. fzf is a filter program. It reads from STDIN and prints the selected entry to STDOUT, just like "grep". So let's replace fzf in your command to grep, and we can see that this really is a shell scripting question, rather than a discussion around the features of fzf. cat ~/.bash_history | grep foobar You might want to read https://github.com/junegunn/fzf/blob/master/shell/key-bindings.bash to learn how to do with the output. If you have more questions about shell scripting, please use a different forum such as https://unix.stackexchange.com/ |
Beta Was this translation helpful? Give feedback.
Your question is a bit unclear, and I think @LangLangBart tried his best to assist you.
fzf is a filter program. It reads from STDIN and prints the selected entry to STDOUT, just like "grep". So let's replace fzf in your command to grep, and we can see that this really is a shell scripting question, rather than a discussion around the features of fzf.
You might want to read https://github.com/junegunn/fzf/blob/master/shell/key-bindings.bash to learn how to do with the output.
If you have more questions about shell scripting, please use a different forum such as https://unix.stackexchange.com/