Skip to content

How to config files match filename, no path, like intellj idea find file? #1434

Answered by ibhagwan
hyawara asked this question in Q&A
Discussion options

You must be logged in to vote

Use fzf's --nth combined with a tab delimiter to limit the search to filename only:

:lua require("fzf-lua").files({formatter="path.filename_first",fzf_opts={["--delimiter"]="[\t]",["--nth"]=1}})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hyawara
Comment options

@hyawara
Comment options

@ibhagwan
Comment options

Answer selected by hyawara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants