(What's the best way to deal with it? Are there plugins for the org/markdown etc. format that allow you to search the "invisible" markup-stripped text?)
(What's the best way to deal with it? Are there plugins for the org/markdown etc. format that allow you to search the "invisible" markup-stripped text?)
From Emacs, I just don't search in org-mode, I search into typically my entire user directory, in both .txt files, source code files, .org files, etc. using "counsel-rg" (just a wrapper around ripgrep).
It's super quick. I enter, say, at the Emacs rg prompt:
gmp lib
So that's "gmp<space>lib" and it'll find every line, in any single file, no matter it's format, where, on the same line, there's "gmp" followed by, anywhere else later on the line, "lib", no matter the capitalization.The wrapper around rg takes care of calling it with the correct magic invocation.
Say I type: "pi rypi" then Emacs/counsel shall spawn a call to rg looking like this (it's configurable):
/usr/bin/rg --max-columns 240 --with-filename --no-heading --line-number --color never -i "(pi).*?(rypi)"
And, well, I much prefer to enter simply "pi rypi" and have "(pi).*?(rypi)" generated for me.I've got the call to "counsel-rg" assigned to a shortcut.
I use it all the time.
P.S: ripgrep is an amazing tool written an HN'er, burntsushi. It's really fast and, by default, won't search into many files you don't care about anyway. It is so fast that on my relatively modern machine (AMD 3700X / NVME M.2 PCIe 3.0x4 SSD) I don't bother and typically search from the root of my home directory.
https://github.com/doomemacs/doomemacs/blob/master/modules/c...
https://orgmode.org/worg/org-tutorials/advanced-searching.ht...
1. Search link text only.
2. Search link URL only.
3. Search headings only.
4. Search under the current heading only.The first two are interesting use cases though, I'll reply again if I find something that works.
I, for one, will now go down this rabbit hole ...
1. only show the list of headings, not highlight the actual text (and I don't need a new pane for such a simple search, my regular search happens right in the text area)
2. doesn't ignore markup, so `/simply/ search` with one word italicized can't be found with `simply search`
In practice, I find org-mode to be much less "noisy" than latex or html for example, and about the same as markdown, so it's still a net win for me.
For more semantic searching I use https://github.com/alphapapa/org-ql
For my very large org-roam I'm investigating taking advantage of search in sqlite more.