Tags
Basics
Tags are labels one assigns to org headlines. They function like keywords. You use them to categorize and identify content, making it easier to organize, search, and filter information within your documents.
- If you want to get access to specific information quickly, use tags
- If you want to mark certain information in org-agenda use tags
- If you want to group information based on shared characteristics
Any headline can contain one or more tags. Tags are marked by colons: :tag:
Headline 1 tag
Tags can contain LETTERS, NUMBERS, _ and @
You can assign multiple tags to any headline :john:bank:gold:
Tags make use of the hierarchical structure of outline trees. If a heading has a certain tag, all subheadings inherit the tag as well.
#+beginexample
Meeting with the French group work
Summary by Frank boss notes
TODO Prepare slides for him action
#+endexample
Commands to set tags test
test alignment align
M-TAB
offers to complete tags (one often needs to reallocate this key in both Windows and Linux)
C-c C-q (org-set-tags-command)
(with a prefix realigns all tags in current buffer)
C-c C-c
is just as above (but only when the cursor is on a heading)
Lists of tags
You can create lists of tags and insert them that way (which saves having to type them up)
There are three kinds of tag lists:
- Dynamic (the tags org remembers automatically)
- Global list you specify and available in every org buffer (
org-tag-alist
) File specific tags
#+TAGS: @work @home @tennisclub #+TAGS: laptop car pc sailboat #+TAGS: @work(w) @home(h) @tennisclub(t) laptop(l) pc(p) #+TAGS: visit(v) appointment(a) event(e) meeting(m) birthday(b) medical(k) worship(w) (setq org-tag-alist '(("visit" . ?v) ("appointment" . ?a) ("event" . ?e) ("meeting" . ?m) ("birthday" . ?b) ("medical" . ?k) ("worship" . ?w)))
Finding tags laptop
In a buffer
C-c / m
sparse tree search
Anywhere
The main command is org-tags-view
This command is also available through the org-agenda dispatcher.
(global-set-key (kbd "<f7>") 'org-tags-view)
My simple note take system in Emacs
Searches follow Boolean logic:
+boss+urgent-project1 Kathy|Sally
See this link for many examples:
https://orgmode.org/manual/Matching-tags-and-properties.html
Consider a donation
1 USD = 18.8223 ZAR