How to include org-mode headers in consult-rg ripgrep searchI have a collection of notes files (.or…
انتشار: 2026/07/26 20:07 UTC
How to include org-mode headers in consult-rg ripgrep searchI have a collection of notes files (.org files) and I recently started retrieving information from them using consult-rg. Is there a way to have consult-rg (or something similar) "propagate" parent headings into children for matching purposes?For example, if I have this structure:* Emacs** MermaidSome notes about using Mermaid.** Customize variables and optionsuse M-x customize-variableIf I search for "emacs customize variable," consult-rg won't find it, because the header "Emacs" is many lines above the subheader "customize variable".I considered tagging the subsection with :emacs: but that's kind of a redundant way to say "this is realated to emacs." Redundant because it's already under the overall "* Emacs" heading.EDIT: consult-org-heading exhibits the behavior I want within headings (the overall Emacs heading gets connected to all of its children), but does not search inside the body, just the headings. So I guess I'm looking for some way to incorporate consult-org-heading behavior into consult-rg?redd.it/1v7eee2@r_emacs