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

Ability to filter file name only instead of the full path for files provider #379

Closed
svermeulen opened this issue Apr 5, 2020 · 5 comments · Fixed by #389
Closed

Ability to filter file name only instead of the full path for files provider #379

svermeulen opened this issue Apr 5, 2020 · 5 comments · Fixed by #389

Comments

@svermeulen
Copy link

Is your feature request related to a problem? Please describe.
I used to use LeaderF before transitioning to vim-clap, and I miss a feature that it has, where you can match only on file name instead of the entire file path. This is also really nice when dealing with long paths because you can't even see the file name in that case when using Clap files

Describe the solution you'd like
An argument to Clap files which changes the behaviour to only list the file names and not the entire paths. eg --names-only

Describe alternatives you've considered
Implementing my own clap provider that does this instead of Clap files

@liuchengxu
Copy link
Owner

liuchengxu commented Apr 6, 2020

Just type what you want to search and you'll see them. Since #330, the long matched items won't be invisible completely.

@liuchengxu
Copy link
Owner

Try #389, but you have to build the Python dynamic module, or uses the cached content for external dyn filter. I don't have time to optimize for the pure Python version.

@liuchengxu liuchengxu changed the title Ability to display names only instead of paths in files popup Ability to filter file name only instead of the full path for files provider Apr 12, 2020
@svermeulen
Copy link
Author

svermeulen commented Apr 12, 2020

Thanks!

How do I change to use the "python dynamic module" ? I tried using that branch and it didn't work so I am guessing I'm not doing that currently

@liuchengxu
Copy link
Owner

See https://github.com/liuchengxu/vim-clap/blob/master/INSTALL.md#python-dynamic-module.

If you are using macOS or Linux, just go to the clap root directory and then running make should be ok. Finally, check if you have built it successfully via the info of :Clap debug.

@svermeulen
Copy link
Author

Yep that fixed it. Thanks for your work!

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

Successfully merging a pull request may close this issue.

2 participants