Deft in Emacs. [1] I write my notes in Markdown or Org-mode, and Deft lets me search them all really fast. For cross-file references, I use Org’s delightful file hyperlink scheme. For export, I use Pandoc. I’ve got a project that I haven’t quite figured out how to get on home brew (I’m new at this) that takes a file in <format> and lets me read it like a Man page. [2]
Wow. Rifle looks neat. Thanks for mentioning that!
Deft will scan any plain-text file, according to the set of file endings you give it, and it will put your cursor at the point in the buffer where one of the search words occurs, but it won’t automatically extract the ending, AFAIK.
I should mention that deft does fuzzy matching, or at least words don’t have to be contiguous.
[1]: https://jblevins.org/projects/deft/ [2]: https://github.com/ashton314/homebrew-mm