-
|
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 <<<{}'
# airapThe 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.
oneandunbindstrategy works just fine.Your command has some errors.
--select-1since you're relying on the event binding mechanism within the finderresultevent instead ofloadevent because you're interested in the "result" for your initial--query.loadevent doesn't guarantee that you have the result for your queryFZF_MATCH_COUNTinstead ofFZF_TOTAL_COUNTto see the number…