-
I'm trying to use Is there an event I can bind to that'll let me become(vim) with only one result? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
man fzf | less --pattern "AVAILABLE EVENTS" You could try the echo -n "$USER" | fzf --bind 'one:become:rev <<<{}'
# airap The echo -n 'fzf' | fzf --bind 'load:transform:[[ $FZF_TOTAL_COUNT -eq 1 ]] && echo "become:man {}"' All of the above methods have the minor downside of briefly flickering the UI. Footnotes |
Beta Was this translation helpful? Give feedback.
one
andunbind
strategy works just fine.Your command has some errors.
--select-1
since you're relying on the event binding mechanism within the finderresult
event instead ofload
event because you're interested in the "result" for your initial--query
.load
event doesn't guarantee that you have the result for your queryFZF_MATCH_COUNT
instead ofFZF_TOTAL_COUNT
to see the number…