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

ptgrep / ptig - -l, --files-with-matches - only searches for filenames #69

Closed
clach04 opened this issue Sep 3, 2023 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@clach04
Copy link
Owner

clach04 commented Sep 3, 2023

Search only file name support is great... but it's enabled with the regular grep flags:

-l, --files-with-matches  print only names of FILEs containing matches

TODO

  1. ✅ new flag for search only filenames, specific to ptgrep / ptig - based on https://github.com/clach04/puren_tonbo/wiki/grep%E2%80%90like-tools
    • short -y would not collide
    • long --find_only_filename would match internal search() API, --search-filenames-only
  2. ✅ implement real support
@clach04 clach04 added the bug Something isn't working label Sep 3, 2023
clach04 added a commit that referenced this issue Sep 8, 2023
@clach04 clach04 closed this as completed in c2be4c5 Sep 8, 2023
clach04 added a commit that referenced this issue Sep 8, 2023
Previously -l, --files-with-matches was being treated as
-y, --find-only-filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant