Replies: 1 comment
-
Does the following work for you ? export FZF_CTRL_R_OPTS='--bind "ctrl-c:transform:[[ $FZF_MATCH_COUNT -eq 0 ]] && echo print-query || echo abort"' The The AlternativesIssue report #3528 is somewhat related to this topic. You might find it helpful, so please take a look. Footnotes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use fzf, among other things, for searching for commands in my shell history and it's been great.
However, one thing I've never managed to configure, is to abort the search if I didn't find the command I was looking for, while still retaining input.
Preferably I would like to be able to retain what I've put in so far if there was no match, once I hit and if there was a match, but I'm not happy with it, abort fzf with some key combination like
<Ctrl> + <C>
and retain whatever I already wrote.Currently in both cases the input just gets cleared once I abort fzf with
<Ctrl> + <C>
.How should I go about configuring this? Any pointers towards a solution are welcome.
Beta Was this translation helpful? Give feedback.
All reactions