aartist
aartist

Reputation: 3236

Emacs untagged agenda items in org-agenda

How I can find the agenda items which are not tagged in org-agenda mode? If I use the filtering option org-agenda-filter-by-tag (/ - or C=u /) I have to exclude one by one all tags to achieve this and that is not what I want exactly.

Upvotes: 2

Views: 401

Answers (3)

loki
loki

Reputation: 10340

based on the other answers I designed a custom agenda view like this:

(setq org-agenda-custom-commands
      '(("c" . "My Custom Agendas")
        ("cU" "Untagged items"
         ((tags-todo "ALLTAGS=\"\""
                ((org-agenda-overriding-header "Untagged TODO items")
                 (org-agenda-skip-function '(org-agenda-skip-entry-if 'todo '("PROJ")))))))
        ))

Thus I have all untagged items quickly at hand with C-c a c U.

Upvotes: 0

a-lex-anders
a-lex-anders

Reputation: 11

As for people who make heavy use of tag inheritance [1] you may want to only display headlines without any kind of tags, excluding also those with inherited tags.

You can do so by using the special property ALLTAGS, in the same way, as NickD pointed out:

ALLTAGS=""

[1] Tag inheritance https://orgmode.org/org.html#Tag-Inheritance

Upvotes: 1

NickD
NickD

Reputation: 6402

Use the special property TAGS:

TAGS=""

will match headlines with no tags.

See http://orgmode.org/org.html#Special-properties.

Upvotes: 3

Related Questions