orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Advanced search regex

Open lucasmyers97 opened this issue 1 year ago • 1 comments

Does this feature exist in Emacs orgmode core?

Yes

Orgmode link

https://orgmode.org/worg/org-tutorials/advanced-searching.html#regexps-in-org-search-view

Feature value

No response

Additional context

In the orgmode manual section linked above, it appears that they do a regex search on the actual content of a headline. My intended use case is actually detailed here, and seems to involve expanding a regex when searching for a tag match. I'm not exactly sure where that behavior is documented, but it would be nice to have such a filter.

I may be able to help implementing this if given someplace to start.

lucasmyers97 avatar Jun 10 '24 03:06 lucasmyers97

This can be done with the recent addition of custom agenda commands, but slightly differently from the link you provided. Something like this would work:

  org_agenda_custom_commands = {
    i = {
      description = 'Inbox',
      types = {
        {
          type = 'tags',
          match = '+inbox/!+TODO|+STARTED|+WAITING',
          org_agenda_todo_ignore_scheduled = 'all'
        },
      },
    },
  }

kristijanhusak avatar Jan 25 '25 19:01 kristijanhusak