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

Feature - Add -g PATTERN like option to enable smart file listing #47

Closed
Rican7 opened this issue Nov 18, 2015 · 4 comments
Closed

Feature - Add -g PATTERN like option to enable smart file listing #47

Rican7 opened this issue Nov 18, 2015 · 4 comments

Comments

@Rican7
Copy link

Rican7 commented Nov 18, 2015

Both Ack and The Silver Searcher have a -g PATTERN command that enables for fast file listing based on expression matching the file path itself, while still keeping in mind configuration settings (like ignoring certain file types from showing in results).

While this -g flag enables these applications to perform quite differently (matching against path/filename rather than actual contents), it allows them to be used in interesting contexts, such as the driver to CtrlP indexing. More info regarding the benefits of this use case are spelled out in @thoughtbot's blog post "Faster Grepping in Vim".

@svent
Copy link
Owner

svent commented Nov 18, 2015

Thanks for the suggestion and background info. This is somehow related to #10 - the option --path can be used to match the file paths against a regex pattern, but the option to just list the files that would be searched is still missing. That option ("just list files") will be implemented in the near future.

@Rican7
Copy link
Author

Rican7 commented Nov 18, 2015

Oh wow, sorry for missing #10.

Well thanks for the quick response and for considering the new feature 😃

@svent
Copy link
Owner

svent commented Jan 4, 2016

I implemented this with version 0.7.0, please see the release notes for details.

@svent svent closed this as completed Jan 4, 2016
@Rican7
Copy link
Author

Rican7 commented Jan 4, 2016

You're awesome! Thanks!

Rican7 referenced this issue in Rican7/dotfiles Jan 4, 2016
used when indexing files in the project. It's about 10x faster than Ack.

- https://sift-tool.org/
- https://github.com/svent/sift
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

2 participants