reddit / emacs

Prevent headlines in a file from being `org-go`able, easier narrowing

gregorie12 · 2022-11-18 23:38
`org-goto-all` and `org-goto` are probably my most used commands since I take a lot of notes. However, I have so much headlines that it takes some effort to narrow them down (headlines with similar words, so I end up parsing through lines of headlines to dig for what I'm looking for). Some headlines I don't need to `org-goto-all`, but I still it to use it as a headline for styling and if I'm in the file, `org-goto` is still useful. For my purposes, perhaps excluding headlines from an entire file and then whitelisting some significant headlines I want to `org-goto-all` is perfect. I've also heard of people having performance issues from too many headlines, so being able to exclude some from `org-goto-all` should alleviate this and allow quicker way of finding what I want. I could split into more files and just jump to them and `org-goto`, but I have a massive todo.org file and it has content relevant to what I'm looking for in addition to notes in a file-specific file if it has one. I'm open to any approaches as well. I use org-ql/org-super-agenda but only as a custom org agenda (it's from a template that I tweaked a little, I don't know any elisp).
github-alphapapa · 2022-11-20 15:37
Since you already use `org-ql`, why not use `org-ql-find` instead of `org-goto`? It's much faster and easier. It's matching algorithm is "smart" in that it matches against headings, outline-paths, and content, which is extremely effective and natural, if I do say so myself. Using it, you shouldn't have to spend much time narrowing the results and parsing irrelevant headings.