Skip to content

path.filename_first on all results with pahts #1511

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

You must be logged in to vote

that it would be nice to include it on all queries that output filenames

Add it to defaults (I would also recommend to try v2 which helps with logical search, see #1255):

:lua require("fzf-lua").setup({ defaults = { formatter={"path.filename_first",2} } })

I wonder if there is any existing functionality that allows for truncating long filenames

Use path_shorten=true (can be combined with the formatter above).

Replies: 1 comment 3 replies

Comment options

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

@ibhagwan
Comment options

@nela
Comment options

Answer selected by nela
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