Zettelkasten Forum


CLI tool isamert/marks brings sensible file search to the Terminal

For you command-line warriors and scripters: there's a supposedly fast tool to "naturally" search in a folder of files like you would search on Google.

https://github.com/isamert/marks

That's different from your regular expression based filters. You can search for "foo bar baz" and get items that contain any of these words, instead of only items that contain these words in that order with only 1 space in between, aka literal matches.

Author at Zettelkasten.de • https://christiantietze.de/

Comments

  • I would just add my hint, which I find quite useful.

    macOS users could use the "standard" mdfind command for this as well. The mdfind command consults the central Spotlight metadata store and returns a list of files that match the given metadata query. The query can be a string or a query expression. All Spotlight search criteria including metadata attributes and Boolean search operators are supported.

    mdfind -onlyin ./ -interpret "emacs AND elisp"
    

    or just

    mdfind -onlyin ./ -interpret "emacs elisp"
    

    Adding -name option will limit search scope to file names only. Consult manpage for more details.

Sign In or Register to comment.