Hacker News new | ask | show | jobs
by nextos 2632 days ago
You can simply use ripgrep to search. Either from a terminal, or from an editor it is integrated with.

I favor the same approach. In my case, I use org-mode instead of markdown as it offers a few niceties when editing from Emacs. But irrespective of that, IMHO plain text overrules any other choice as it is future-proof and can be composed with your favorite tools. For example, a VCS like Git.

I have many files in a flat zettelkasten-like structure [1]. That means, essentially, having one file per concept and using links to chain them.

[1] https://qr.ae/TW8ieU

1 comments

> You can simply use ripgrep to search

That assumes that the text in your notes uses the vocabulary you'd expect, and isn't misspelled. Neither of those are guaranteed if your notes are snippets of other documents (a common EN use-case) rather than text you wrote yourself. Especially not guaranteed if the snippets are images where their textual representation is the output of an OCR algorithm.

Is there something like ripgrep for fuzzy search?

You can pipe ripgrep into fzf for fuzzy searching. It works like a dream.