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

Fallback to matching filename with grepformat. #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DArtagan
Copy link

When one uses the -l option to look for just files containing a search term, but not every result:

:Ack -l search_term

The current results look like:

|| csc/models/staging/staging_factory.py
|| csc/models/factory_base.py
|| csc/models/protocols.py

Which breaks the quickfix list's ability to jump.

With this changes, the results will now look like:

csc/models/staging/staging_factory.py|| 
csc/models/factory_base.py|| 
csc/models/protocols.py|| 

Full confession: I'm a ag-based searcher. And this use case only appears when using a custom ackprg value. Otherwise the default -H and the -l options are mutually exclusive in ack.

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

Successfully merging this pull request may close these issues.

None yet

1 participant