Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FZFMru when filename = project name #64

Open
mralusw opened this issue Feb 2, 2024 · 0 comments
Open

FZFMru when filename = project name #64

mralusw opened this issue Feb 2, 2024 · 0 comments

Comments

@mralusw
Copy link

mralusw commented Feb 2, 2024

FZFMru shows full paths, instead of basename + path like Mru. It also calls fzf#run with --no-sort. So if I have .../myprj/myprj.ext in history, but also .../myprj/blah*, I can't easily get to myprj.ext. When I start typing myprj, it prefers matches on the directory name early in the path, not the basename at the end of the path.

I've resorted to changing the options from --no-sort to --tiebreak=end,chunk (because --no-sort seems incompatible with --tiebreak), but that essentially leaves the list chronologically sorted only when the query is empty (as soon as I type something, fzf begins sorting). Maybe that's the right thing to do? Although that tends to bring up unrelated old files from history.

I've read that :Mru supposedly uses fuzzy matching in modern Vim's, but I'm not really sure if that's true. I think it only applies when you call : Mru arg (which I never do since I bring up :Mru or :FZFMru only via key mapping).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant