Search code examples
org-mode

org-mode: How to perform an agenda keyword search limited to headline text?


The org-mode agenda command 's' will perform a keyword search over both the headline and the body text of org-mode items. Is there a way to limit the search to just the headline text?


Solution

  • You can enter a regular expression to match only headlines.

    For example:

    {^\*+.*mykeyword}
    

    will search for lines starting with one or more *, and containing "mykeyword".