fzf icon indicating copy to clipboard operation
fzf copied to clipboard

[Feature request/question] select the 1st match.

Open RESDXChgfore9hing opened this issue 2 years ago • 1 comments

  • [windows no man*] I have read through the manual page (man fzf)
  • [ x] I have the latest version of fzf
  • [x] I have searched through the existing issues

Info

  • OS
    • [ ] Linux
    • [ ] Mac OS X
    • [ x] Windows
    • [ ] Etc.
  • Shell
    • [ x] cmd

Problem / Steps to reproduce

after spending sometime in a certain project,most people will have some basic muscle and brain memory that xxx file/folder is uniquely named and we want to navigate too it directly.

In most modern search engine also has this *try my luck function of just directly visiting the 1st link when searched.

Is it possible with fzf?do we need to add a new flag?or is it a another responsibility for other app?like find?fd?

Any guide will be appreciated.

RESDXChgfore9hing avatar Sep 09 '22 03:09 RESDXChgfore9hing

maybe a -1 flag could be used

RESDXChgfore9hing avatar Sep 17 '22 15:09 RESDXChgfore9hing

You can use the one event to select "the only" match for the query.

fzf --bind one:accept

junegunn avatar Dec 25 '23 09:12 junegunn