Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Colon in file path confuses grep-based search #56

@kaorahi

Description

@kaorahi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions