Skip to content

Colon in file path confuses grep-based search #56

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

Open
kaorahi opened this issue Mar 2, 2025 · 0 comments
Open

Colon in file path confuses grep-based search #56

kaorahi opened this issue Mar 2, 2025 · 0 comments

Comments

@kaorahi
Copy link
Owner

kaorahi commented Mar 2, 2025

For example, a file named foo:bar does not appear in the search results when grep is used as the backend.

Howm runs the following command internally and parses its output (howm-grep-parse-line). A colon in the filename obviously confuses parsing here.

echo 'foobar' | \grep -F -i -Hnr -f - ~/BAZ/QUX

I don't believe there's a perfect solution for the default grep command. If you really can't stand it, probably the only way would be to use a non-standard version of grep that supports JSON or something similar. Personally, I don't think it's worth worrying about that much, at the cost of losing its out-of-the-box usability.

Is "won't fix" reasonable?

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