Delete unused file
[worg.git] / org-glossary.org
blobff71c659ff8a0838b6e5ebc4ec91e33e6aa56433
1 #+TITLE:      Org Glossary: An Explanation of Basic Org-Mode Concepts
2 #+AUTHOR:     Worg people
3 #+EMAIL:      mdl AT imapmail DOT org
4 #+OPTIONS:    H:3 num:nil toc:1 \n:nil ::t |:t ^:nil -:t f:t *:t tex:t d:(HIDE) tags:not-in-toc
5 #+STARTUP:    align fold nodlcheck oddeven lognotestate
6 #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
7 #+TAGS:       Write(w) Update(u) Fix(f) Check(c)
8 #+LANGUAGE:   en
9 #+PRIORITIES: A C B
10 #+CATEGORY:   worg
12 [[file:index.org][{Back to Worg's index}]]
14 # Please feel free to add items or to complete any of the unfinished items.
16 * The Glossary
18 #+index: Glossary!Definition
20 The org-manual does a great job of explaining the myriad features of
21 org-mode. But for new users, the sheer number of options and features
22 can be overwhelming.
24 #+begin_quote
26 What exactly are properties? How should I use them? Do I need to know
27 how they work in order to use org mode?
29 What are categories? How do they differ from tags?
31 #+end_quote
33 If you find yourself asking such questions, this document is for you.
34 In the table of contents, you will find an alphabetical list of basic
35 concepts/features in org-mode. Click on any of them to jump to a brief
36 definition, a more detailed explanation of the feature, and a
37 description of possible uses. And feel free to add your own
38 definitions by [[file:worg-about.org][editing Worg]].
40 * Agenda
41   :PROPERTIES:
42   :CUSTOM_ID: agenda
43   :END:
45 #+index: Agenda!Definition
47 ** Definition
49 The agenda allows you to create filtered views of the items in your
50 [[#agenda-files][agenda files]]. These include "day-planner" views of your schedule,
51 lists of your todos, and the results of queries (for tags, words,
52 regular expressions, etc.). You might think of the agenda as a
53 combination of a task manager and a very powerful search interface.
55 ** Details
57 Provided you have followed the manual's instructions on setting up
58 org-mode and have designated some [[#agenda-files][agenda files]], simply type =C-c C-a=
59 (or =M-x org-agenda=) to gain access to the various views available.
61 Here are brief explanations of the options:
63  - a (Agenda) :: Presents a view of today's (or, optionally, this
64    week's) scheduled items, appointments, and upcoming deadlines.
66  - t (Todo entries) :: Presents a list of all active [[#todo-keywords][todo
67    keywords]] in your agenda files.
69  - m (Match) :: Allows you to search your agenda files for headlines
70    with particular metadata (tags, properties, or TOD0s).
72      + The simplest way to query your files is to enter the name of a
73        tag, e.g., "@computer".
75      + To construct more advanced queries, please [[https://orgmode.org/manual/Matching-tags-and-properties.html][consult the manual]].
77  - L (Timeline for current buffer) :: Shows a chronological view of
78    all items with dates in the file you are currently visiting.
80  - s (Search) :: Allows you to search entries in your agenda files for
81    particular words or regular expressions.
83  - / (multi-occur) :: Shows all lines in your agenda files matching a
84    regular expression.
86  - < :: Restricts the agenda view to the file you are currently
87    visiting.
89  - << :: Restricts the agenda view to the subtree you are currently
90    visiting.
92 Within the agenda view, each item is linked to its location in your
93 files, so you can jump directly to that location from the agenda (by
94 pressing =TAB= or =RET=).
96 ** Uses
98 The uses of the agenda are limitless!
100 The agenda frees you from having to worry too much about the
101 organization of your org-mode files. If you are new to org-mode,
102 simply start by creating todos in your outlines and notes and
103 (optionally) adding tags and scheduling information to them. Even if
104 your file is cluttered with extraneous notes and ramblings, the agenda
105 will find the relevant lines and display them in a clean and readable
106 fashion.
108   - One use of the agenda is as a day planner system. If you prefer to
109     schedule your tasks and to see a daily agenda of TODOs, you'll
110     probably be pressing =C-c a a= a lot.
112   - The agenda can also be used for a powerful GTD system. If you like
113     to filter your "next actions" by context, then you'll probably
114     make frequent use of =C-c a t= to see a list of all your active
115     TODOs and to filter them by tag/context.
117   - While the agenda is a powerful task management tool, it is also a
118     fantastic research tool. If you keep a file full of reading notes,
119     for instance, you can use the agenda to locate entries containing
120     a particular word or labeled by a particular tag.
122 There are many more possibilities of configuring the agenda with
123 [[https://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php][custom agenda commands]].
125 * Agenda files
126   :PROPERTIES:
127   :CUSTOM_ID: agenda-files
128   :END:
130 #+index: Agenda Files!Definition
132 ** Definition
134 These are the files that are used to generate your [[#agenda][agenda]] views. When
135 you call your agenda, the TODOs and scheduling information in your
136 agenda files will be displayed.
138 ** Details
140 There are different ways to designate these files:
142   1. Add a file manually with =C-c [= (=M-x
143      org-agenda-file-to-front=).
145      - Remove with =C-c ]= (=M-x org-remove-file=).
147   2. Type =M-x customize-variable [RET] org-agenda-files= and enter
148      the names of your agenda files.
150      - If you enter a directory, all org files in that directory will
151        be included in your agenda files.
153 ** Tips: Organizing agenda files
155 One of the most common questions for new (and seasoned) users of
156 org-mode is how to organize agenda files. Should you put everything in
157 one big file organized by project? Should you create a new file for
158 each project? Or should you have separate "containers" for different
159 types of data: i.e., one file (or subtree) for appointments, one for
160 reference, one for todos, and so on.
162 The short answer: it doesn't matter. The agenda will be able to parse
163 and organize your TODOs, appointments, and deadlines no matter how
164 they are organized in your files.
166 If you are using org-mode for the first time, the simplest approach
167 may be to use a single file and to enter projects or todos as the
168 appear. Then, whenever you review your file, reorganize your todos and
169 projects into "groupings" (i.e., trees) that make sense to you. If a
170 tree starts to get too big, then start a new file. Perhaps you'll
171 discover that you want to keep your "work" and "personal" tasks in
172 different files.
174 Perhaps the main consideration in organizing your files is to consider
175 [[#inheritance][inheritance]] and [[#file-restriction][restriction]]. If you'd like a number of items to belong
176 to the same category or to have the same tags for easy agenda
177 filtering, then they probably belong in the same tree and/or file.
179 An example:
181   - If you'd like all your appointments to belong to the [[#category][category]]
182     "appts", then it probably doesn't make sense to scatter them as
183     first level headings among multiple files. It would make more
184     sense to create an appointments file or heading with the category
185     "appts".
187   - On the other hand, if you'd prefer to organize your appointments
188     by area of responsibility (e.g., work, personal, health, etc.),
189     then it would make perfect sense to place them in separate trees
190     and/or files.
192 * Archiving
193   :PROPERTIES:
194   :CUSTOM_ID: archiving
195   :END:
197 #+index: Archiving!Definition
199 ** Definition
201 Archiving is a way of hiding and/or getting rid of old or unwanted
202 items in your org files without deleting them altogether.
204 ** Details
206 Archiving works on [[#tree][subtrees]] in your org-file by doing the following:
208   - Preventing them from opening when you cycle visibility with =TAB=
209     or =Shift-TAB=. (They will stay closed unless you explictly open
210     them with =Control-TAB=.)
212   - Keeping them out of your [[#agenda][agenda]] views. (They will only be included
213     if you type =v a= or =v A= in the agenda.)
215 There are three different ways to archiving an item/tree:
217   - C-c C-x a :: Mark the subtree as archived (i.e., give it an
218      =:ARCHIVE:= tag) but leave it in its current location.
220        - The headline remains visible in your org file but its contents
221          will not open during cycling and it will not be included in
222          the agenda.
224   - C-c C-x A :: Move the subtree to a separate archive headline
225      within the parent tree and/or file.
227        - This is useful for maintaining a clean org-file, since it
228          removes archived headlines from view.
230   - C-c C-x C-s :: Move the subtree to a separate file. The default
231      name of the file is =[filename].org_archive=.
233        - This is useful for getting rid of subtrees altogether. You
234          might want to use this when you finish a project.
236        - Since this is a relatively drastic action, org-mode offers an
237          alternate version of the command (=C-u C-c C-x C-s=) that
238          checks the subtree to make sure there are no active TODOs
239          before archiving it.
241 ** Uses
243 Archiving is very useful for keeping your org files free of clutter.
244 But which type of archiving should you use?
246 Here are a few ideas:
248   - Use =C-c C-x a= when you'd like to archive an entry/subtree but
249     want to be reminded of its presence (e.g., to be reminded of a
250     completed task) when you view your org file.
252   - Use =C-c C-x A= when you want to remove an entry/subtree from view but
253     want it to remain together with its context (i.e., within the file
254     or parent tree). This is often useful for archiving TODO items
255     that are part of an incomplete project.
257   - Use =C-c C-x C-s= when you are sure you no longer require an
258     entry/subtree except for reference. This is often useful for
259     archiving completed projects.
261 * Attachment
262   :PROPERTIES:
263   :CUSTOM_ID: Attachment
264   :END:
266 #+index: Attachment!Definition
268 ** Definition
269 Attachments allow the addition of arbitrary reference material (e.g. binary files, images, audio, etc.)
270 to a node in an org file.
272 ** Details
273 Attachments are files located in a directory belonging to an outline
274 node.  Org uses directories named by the unique ID of each entry
275 and stored the ID as a special property of the node
276 These directories are located in the `data' directory which lives in
277 the same directory where your Org file lives(1).  If you initialize
278 this directory with `git init', Org will automatically commit changes
279 when it sees them.
281 ** Uses
282 Attachments can be used essentially for the purposes as links, to allow
283 access to documents related to a particular node. If there is a large number
284 of such links, it may be more convenient to just put them in a directory
285 and plant a link to the directory. Attachments provide a more convenient
286 way to do this latter task.
288 * Category
289   :PROPERTIES:
290   :CUSTOM_ID: category
291   :END:
293 #+index: Category!Definition
295 ** Definition
296 A category is the group an item belongs to.
298 ** Details
299 The category of an item is shown in the left hand column of the
300 daily/weekly agenda view.
302 : Day-agenda (W38):
303 : Wednesday  16 September 2009
304 :   badclient:  Scheduled:  TODO Call angry client to calm him down
305 :   appts:      Dinner at Julio's
307 By default an item's category is the name of the file (minus the
308 extension) to which it belongs.
310 You can specify a different category for a file by placing the
311 following line at the top of your org file:
313 #+begin_src org
314   ,#+CATEGORY: CompanyABC
315 #+end_src
317 Or, you can set a category as the property of a [[#tree][tree]]. All items in
318 that tree will [[#inheritance][inherit]] that category and be labeled with it in the
319 agenda.
321 #+begin_src org
322   ,* Birthdays
323     :PROPERTIES:
324     :CATEGORY: birthdays
325     :END:
326 #+end_src
328 ** Uses
330 The main purpose of a category is to increase visibility in the
331 daily/weekly agenda --- i.e., to allow you to see which "group" an
332 item belongs to.
334 Apart from visibility and compartmentalization, categories do not add
335 much additional functionality to an item. It is certainly *not*
336 necessary to set them for every file and/or heading.
338 You can search for items by category in the agenda using the following
339 key sequence:
341 : C-c C-a m CATEGORY="birthdays"
343 In general, categories are *not* an efficient way of searching
344 for and/or filtering tasks. It is much faster to use [[#tag][tags]] or filetags
345 for this.
347 Here's one way to distinguish between categories and tags: an entry
348 can belong to only one category but it can have multiple tags.
350 * DEADLINE
352 #+index: DEADLINE!Definition
354 ** Definition
356 A deadline is a special timestamp for indicating items that should be
357 performed by a certain time. Reminders about deadlines appear in your
358 agenda a specified number of days before they due.
360 ** Details
362 You can add a deadline to a headline/entry by typing C-c C-d. You can
363 remove a deadline by typing C-u C-c C-d.
365 Here is the syntax for deadlines:
367 #+begin_src org
368   ,* My big project
369     DEADLINE: <2009-09-20 Sun>
370 #+end_src
372 You will be alerted of this deadline ahead of time when you select the
373 daily/weekly agenda (=C-c C-a a=).
375 :  index:      In   3 d.:  My big project
377 How soon the warning appears in your agenda is controlled by the
378 variable =org-deadline-warning-days=. The default number of days is 14.
380 The deadline will remain in your agenda (as an overdue item) until it
381 is marked done.
383 You can change the a warning period for a particular headline by
384 adding something like "-3d" (3 days) or "-2m" (two months) to the
385 timestamp:
387 #+begin_src org
388   ,* My big project
389     DEADLINE: <2009-09-20 Sun -2m>
390 #+end_src
392 ** Uses
394 The obvious use of a deadline is to reminder yourself of tasks that
395 need to be completed by a certain date.
397 Deadlines can also be useful as an "advanced notice" system --- e.g.,
398 reminding yourself to prepare for an event or project.
400 You can add both a deadline and a scheduling timestamp to the same
401 entry.
403 * Docstring
404   :PROPERTIES:
405   :CUSTOM_ID: docstring
406   :END:
408 #+index: Docstring!Definition
410 ** Definition
411 A [[https://en.wikipedia.org/wiki/Docstring][docstring]] is the documentation written as part of a emacs lisp
412 variable or a function. It is part of Emacs' wonderful interactive
413 help system.
415 (Note: This definition is not org-mode specific, but is rather a more
416 general org-mode/lisp/coding concept. It's included here because
417 mailing list posts often reference a "docstring," an obscure phrase
418 for anyone not familiar with coding lingo.)
420 ** Details and uses
422 If you are wondering what a particular org-mode key combination,
423 function, or variable does, the manual is not your only source of
424 information. Carsten has also embedded a wealth of resources into the
425 org-mode source code itself. These can be easily viewed using Emacs
426 built-in help functions.
428 For instance, let's say you want to learn more about creating a clock
429 report in org mode. One way to do this is to type =C-h k= or =M-x
430 describe-key= and then to enter the relevant key combination (=C-c
431 C-x-C-r=). This will provide the following very helpful information:
433 : org-clock-report is an interactive compiled Lisp function in
434 : `org-clock.el'.
436 : It is bound to C-c C-x C-r, <menu-bar> <Org> <Logging work> <Create
437 : clock table>.
439 : (org-clock-report &optional arg)
441 : Create a table containing a report about clocked time.
442 : If the cursor is inside an existing clocktable block, then the table
443 : will be updated.  If not, a new clocktable will be inserted.
444 : When called with a prefix argument, move to the first clock table in the
445 : buffer and update it.
447 : [back]
449 If you happened to know the name of the function, you could also
450 locate the same information using =C-h f= or =M-x describe-function=
451 and entering =org-clock-report=. Or you could use =C-h a= or
452 =apropos-command= to browse all functions that contain the words "org
453 clock".
455 Finally, if you want to learn more about variables, you can read their
456 docstrings by browsing the customize interface (=M-x customize-group
457 [RET] org=) or by typing =C-h v= or =M-x describe-variable=).
459 * Drawers
460   :PROPERTIES:
461   :CUSTOM_ID: drawer
462   :END:
464 #+index: Drawers!Definition
466 ** Definition
468 A drawer is a container that can hide information you don't want to
469 see during normal viewing and/or cycling of your outline.
471 ** Details
473 A drawer looks like this:
475 #+begin_src org
476   ,* Daily sleep log
477     :LOGBOOK:
478     - Note taken on [2009-09-16 Wed 04:02] \\
479       Didn't sleep at all.
480     - Note taken on [2009-09-15 Tue 05:25] \\
481       Slept fitfully.
482     - Note taken on [2009-09-14 Mon 09:30] \\
483       Slept like a log.
484     :END:
485 #+end_src
487 When you cycle the visibility of your outline, the contents of the
488 drawer will remain hidden.
490 #+begin_src org
491   ,* Daily sleep log
492       :LOGBOOK:
493       :END:
494 #+end_src
496 The only way to view the contents is to press =TAB= directly on the
497 drawer.
499 If you want a new name for a drawer, such as :NOTES:, you must
500 customize the variable "org-drawers". Simply type =M-x
501 customize-variable [RET] org-drawers" and add a new label.
503 ** Uses
505 By default, org-mode uses drawers to hide a variety of information,
506 such as [[#property][properties]] and clocked times.
508 But drawers are also quite useful for storing comments that you don't
509 want to see all the time. For instance, if you are writing a paper,
510 you might add a =:NOTE:= drawer to the variable =org-drawers=. Then
511 you can deposit any notes to yourself in such drawers. By default, the
512 information you put in drawers will not be exported to HTML, LaTeX,
513 etc.
515 * Entry
516   :PROPERTIES:
517   :CUSTOM_ID: entry
518   :END:
520 #+index: Entry!Definition
522 ** Definition
524 An entry is the basic unit of data in org-mode. It consists of a
525 [[#headline][headline]], metadata (tags, todo keyword, properties, priority, etc.),
526 and whatever other text it contains.
528 ** Details
530 An entry is to be distinguished from a [[#tree][tree]], which consists of all
531 headlines and entries beneath a particular entry within the outline
532 structure. Entries nested within other entries form a tree.
534 Here is a sample entry with a lot of data:
536 #+begin_src org
537   ,* TODO [#B] Headline                                                   :tags:
538      :PROPERTIES:
539      :DESCRIPTION: This is a sample property.
540      :CATEGORY: documentation
541      :CUSTOM_ID: an-extra-special-headline
542      :END:
544    And here is the text of an entry. You can put an unlimited amount of
545    text in an entry!
547    You can also add lists:
549     - First item
551     - Second item
553     - Third item
555    And tables:
557    | Meal      | Food            | Calories |
558    |-----------+-----------------+----------|
559    | Breakfast | Eggs            |      500 |
560    | Lunch     | Escargot        |      800 |
561    | Dinner    | Bread and Water |      200 |
562    |-----------+-----------------+----------|
563    | Total     |                 |     1500 |
564 #+end_src
566 * Headline
567   :PROPERTIES:
568   :CUSTOM_ID: headline
569   :END:
571 #+index: Headline!Definition
573 ** Definition
574 A headline is the name for an outline heading in an org file.
576 ** Details
577 Headlines begin with one or more asterisks.
579 #+begin_src org
580   ,* A headline
581 #+end_src
583 The "level" of a headline corresponds to the number of asterisks. The more asterisks,
584 the deeper the level in the outline.
586 #+begin_src org
587   ,***** A "level 5" outline heading
588 #+end_src
590 As are all outlines, org-files are organized hierarchically. Deeper
591 headlines are "children" of higher-level "parent" headlines (and can
592 "inherit" their properties). Headlines on the same level are known as
593 siblings.
595 #+begin_src org
596   ,* A parent
597   ,** A child
598   ,*** Sibling one (also a child of "A child")
599   ,*** Sibling two
600   ,*** Sibling three
601 #+end_src
603 You can move headlines (and their corresponding [[#entry][entries]]) by using the
604 cursor keys in conjunction with the =Meta= key.
606  - =M-Left= and =M-Right= move the headline horizontally (i.e., change
607    its level).
609    - The org documentation often uses the terms "promote" and "demote"
610      for this action.
612  - =M-Up= and =M-Down= move the headline vertically.
614 You can easily jump to another headline using =M-x org-goto= (=C-c
615 C-j=).
617 You can easily "refile" a headline in a different location using =M-x
618 org-refile= (=C-c C-w=).
620 ** Uses
622 The basic use of headings, of course, is to distinguish separate
623 sections within your outline and to organize them hierarchically.
625 The other major use of headings is as TODO "items" that appear in your
626 agenda.
628 The power of org-mode lies in its treatment of headlines as
629 "containers" of information to which you can attach all sorts of data
630 ([[#todo-keywords][todo keywords]], [[#tag][tags]], priorities, timestamps, [[#property][properties]], and an
631 unlimited amount of text). This turns org-mode's deceptively simple
632 outline structure into a powerful "database" of information, in which
633 units of data can be nested within one another.
635 * Inheritance
636   :PROPERTIES:
637   :CUSTOM_ID: inheritance
638   :END:
640 #+index: Inheritance!Definition
642 ** Definition
644 Inheritance is a term used to describe the way in which [[#entry][entries]] in a
645 [[#tree][tree]] can share the properties of their "parent" [[#headline][headlines]].
647 ** Details
649 Org-mode takes full advantage of the hierarchical structure of
650 outlines by allowing lower level headlines to "inherit" (or share) the
651 properties of their parents.
653 The most common form of inheritance in org-mode is "[[https://orgmode.org/manual/Tag-inheritance.html][tag inheritance]]".
654 This is controlled by the variable org-use-tag-inheritance (true by
655 default). When turned on, lower level outline headings share the tags
656 of their parents. Thus in the following tree, all the headlines have
657 the tag "=:reading:=", even though it is only explicitly set for the
658 top level headline:
660 #+name: tag-inheritance-example
661 #+begin_src org
662   ,* Summer reading list                                               :reading:
663     DEADLINE: <1965-06-06 Sun>
665   ,** /To Kill a Mockingbird/
667   ,** /Catch 22/
669   ,** /Herzog/
670 #+end_src
672 Some properties, such as [[#category][category]], are also inherited by default. See
673 [[https://orgmode.org/manual/Property-inheritance.html][the manual]] for more details.
675 ** Uses
677 The most common use of tag inheritance is in agenda views and agenda
678 filtering. For instance, if you searched for the tag "reading" in your
679 agenda files, all of the headings in the [[tag-inheritance-example][example above]] would appear.
681 As a result it is easy to add a tag and/or category to a whole subtree
682 of items simply by adding a single tag to the parent headline.
684 Let's say for instance, that you want to designate a whole bunch of
685 tasks as belonging to the project "topsecret". By adding =:topsecret:=
686 to the top headline of the group, you are in effect labeling all the
687 items in the tree as "topsecret". An agenda search for the TODOs with
688 the tag "topsecret" (=C-c a M [RET] topsecret=) would then return any
689 active TODOs in the entire tree.
691 Another common use of inheritance is to allow a special setting (e.g.,
692 logging or archive location) to apply to an entire subtree.
694 Finally, inheritance plays an important role in org-mode's column
695 view.
697 * Property
698   :PROPERTIES:
699   :CUSTOM_ID: property
700   :END:
702 #+index: Property!Definition
704 ** Definition
706 A property is an arbitrary piece of "metadata" you can attach to an
707 entry. A property takes the form of a "data pair," which consists of
708 a key and its value.
710 ** Details
711 Properties are stored in [[#drawer][drawers]] beneath a headline. Here is a sample
712 property drawer:
714 #+begin_src org
715   ,* Invoice for fixing the toilet
716      :PROPERTIES:
717      :LOGGING:  lognoterepeat
718      :BILLED: 102.13
719      :BILLING_DATE: 2009-09-11
720      :CLIENT:   ABC Company
721      :END:
722 #+end_src
724 Though org-mode reserves a handful of property keys for special uses
725 (e.g., LOGGING in the example above), you are otherwise free to add
726 whatever property keys and values you'd like.
728 Though you can type properties by hand, the simplest way to add them
729 is to type =C-c C-x p= or =M-x org-set-property=.
731 ** Uses
733 For new org users, properties can seem a bit puzzling. What exactly
734 are they for? Here are some of their uses:
736    1. To specify settings for the local org-mode [[#tree][tree]].
738       - For instance, though you may not normally want to be prompted
739         for a note when you mark an item as DONE, you might want to
740         make an exception for a particular task or project. To do so,
741         you would set the LOGGING property to "lognotedone" in the
742         relevant subtree.
744    2. To create a small database of information.
746       - The manual offers an nice example of this: [[https://orgmode.org/manual/Property-syntax.html#Property-syntax][keeping track
747         of a information about a CD collection]].
749       - Similarly, you might keep bibliographical information about
750         books you've read in properties.
752    3. To enter data that can be viewed as a "spreadsheet" in column view.
754    4. To create more specific labels for headlines than generic tags allow.
756       - For instance, if you are keeping track of expenses, you could
757         put the type of expense in a tag, but then it would be mixed
758         up with your other tags. A solution would be to create a
759         special property (e.g., EXPENSE_TYPE) to hold the information.
761    5. To label a particular tree with a unique ID so that it can be
762       referenced easily via hyperlinks.
764 * Tag
765   :PROPERTIES:
766   :CUSTOM_ID: tag
767   :END:
769 #+index: Tag!Definition
771 ** Definition
773 A tag is a label (or piece of "metadata") that is attached to a
774 headline for easy identification and filtering later. Several tags can
775 be attached to the same headline.
777 ** Details
779 Tags can be added to headlines with the key combination =C-c C-q= or
780 =C-c C-c=.
782 Tags have the following syntax:
784 #+begin_src org
785   ,* A headline with tags                               :Richard:URGENT:errands:
786 #+end_src
788 You may be familiar with tags from blogs or sites like [[http://del.icio.us][del.icio.us]].
789 Tags are a way of labeling information without having to rely on a
790 rigid hierarchical structure. Unlike categories, you can give a
791 headline/entry multiple tags. In many ways, org-mode offers the best
792 of both worlds: the hierarchical organization of an outline and the
793 impromptu labeling of tags.
795 The entry above would appear in queries for any of the tags:
796 "Richard", "URGENT", or "errands".
798 The syntax for searching tags via the [[#agenda][agenda]] is quite simple. For
799 instance, you could create a targeted agenda search for all items
800 tagged "Richard" and "urgent".
802 : C-c a m Richard+URGENT
804 Or for items tagged Richard that are not urgent:
806 : C-c a m Richard-URGENT
808 You can also use sparse view searches to display all tags within a
809 particular org-file.
811 If you find yourself commonly using certain tags, you can create a
812 list of shortcuts for them by typing =M-x customize-variable [RET]
813 org-tags-alist=. You can also set special tags for a particular file.
814 See [[https://orgmode.org/manual/Setting-tags.html][the manual]] for more details.
816 ** Uses
818 One common use of tags is as [[https://en.wikipedia.org/wiki/Getting_Things_Done#GTD_methodology][GTD contexts]]. You might, for instance,
819 define a list of tags in org-tags-alist that correspond to the various
820 contexts in a "next action" can be completed: @computer, @home,
821 @errands, @work, and so on. Then you can quickly filter for these tags
822 by pressing "=/=" in the agenda. See [[https://orgmode.org/manual/Agenda-commands.html#Agenda-commands][the manual]] for more details.
824 Another common use of a tag is to label a group of tasks as belonging
825 to a particular project or area of responsibility. For instance, you
826 might create a subtree in your file that contains all your house
827 repair projects and tag it with ":houserepair:". Let's say that when
828 Saturday rolls around, you decide to work exclusively on repairs.
829 Thanks to [[#inheritance][inheritance]], you can quickly locate all your tasks that
830 inherit the ":houserepair:" tag.
832 Here's what this would look like:
834 #+begin_src org
835   ,* Tasks around the house                                        :houserepair:
837   ,** TODO Fix sink
839   ,** TODO Mow lawn
841   ,** TODO Tear up carpet
842 #+end_src
844 Tags are also extremely useful for notetaking and research. You might,
845 for instance, create a file of reading notes in which each entry is a
846 snippet of information tagged with relevant keywords. The beauty of
847 org-mode is that these snippets can be easily rearranged within the
848 outline and yet remain easy to find via tags.
850 ** Considerations: Tags vs. TODO keywords vs. Properties
852 One question that often emerges for new users of org mode is how to
853 decide when tags, [[#todo-keywords][TODO keywords]], or [[#property][properties]] are appropriate.
855 For instance, should you define your projects by creating a special
856 todo keyword for them (=PROJECT=) or by giving them a "=:project:="
857 tag? Similarly, should you create a TODO keyword for items that are
858 waiting, or should you add a "=:waiting:=" tag?
860 Either choice would be fine, of course, but here are a few
861 considerations to keep in mind:
863 1. Do you want quickly to filter for the item in the agenda view? If
864    so, a tag is probably your best choice.
866    - Note, you can add a setting to your .emacs that automatically
867      adds a tag whenever you assign a particular TODO keyword. Type
868      "=C-c v org-todo-state-tags-triggers=" for more information.
870 2. How visible do you want the keyword and/or tag to be? When viewing
871    an org-mode file, TODO Keywords are highly visible, tags somewhat
872    less so, and properties not at all.
874 3. Is the keyword part of your workflow? Do you want to be able to log
875    information (such as a timestamp and a note) when you add or remove
876    the keyword? If so, then use a TODO keyword.
878    - An example: While a "waiting" tag might make it easier to filter
879      for items in your todo list that are waiting/pending, a =WAITING=
880      todo keyword would allow you to keep track of when an item
881      entered the "waiting" state and when it left it.
883    - Similarly, if you want to keep track of a sequence of actions on
884      phone calls you receive, it would be relatively inefficient to
885      add and remove tags to designate each stage. It would probably be
886      better to set up a TODO sequence, such as ACT -> CALL -> MESSAGE
887      -> FOLLOWUP -> etc.
889 * Tree (subtree)
890   :PROPERTIES:
891   :CUSTOM_ID: tree
892   :END:
894 #+index: Tree!Definition
895 #+index: Subtree!Definition
897 ** Definition
899 A tree is created by the structure of an outline. It consists of a
900 heading and all subheadings/entries beneath it within the outline
901 hierarchy.
903 ** Details
905 A tree is to be distinguished from an [[#entry][entry]]. Whereas an entry
906 indicates only a single headline and its data, a tree consists of
907 multiple nested entries. And, of course, subtrees are nested within
908 larger trees.
910 * Todo Keywords
911   :PROPERTIES:
912   :CUSTOM_ID: todo-keywords
913   :END:
915 #+index: Todo Keywords!Definition
917 ** Definition
919 A TODO keyword is a small keyword at the beginning of a headline that
920 defines the TODO state of the entry.
922 ** Details
924 The default TODO keywords in org-mode are TODO and DONE. They are
925 automatically given nice colors to make them stand out.
927 #+begin_src org
928   ,* DONE Check cupboard to see if I'm out of bread
929     CLOSED: [2009-09-16 Wed 13:14]
930   ,* TODO Buy bread at the store
931 #+end_src
933 Org mode distinguishes between two types of keywords, active and
934 inactive (corresponding with the default TODO and DONE). By default,
935 active TODOs will be shown in [[#agenda][agenda views]]. Inactive todos will not be
936 shown.
938 You can select a TODO keyword by typing =C-c C-t= on an item. Or you
939 can move sequentially through TODOs by typing =Shift-Left= or
940 =Shift-Right=.
942 While the default keywords TODO and DONE will suffice for many users,
943 you can define your own TODO keywords (such as PROJECT, WAITING,
944 etc.) by following the instructions in the manual:
946 - https://orgmode.org/manual/TODO-items.html
948 ** Uses
949 :PROPERTIES:
950 :ID:       e0f76b6c-411f-4df1-88f5-445e11d9ca1d
951 :END:
953 Not surprisingly, the most common use of TODO keywords is to indicate
954 items in your outline files that require action. Where other task
955 management systems often separate notes and todos, org-mode allows you
956 to mark items in your notes as TODOs.
958 Another common use of TODO keywords is to follow a single item through
959 an extended workflow. For instance, you might create a special TODO
960 keyword sequence for invoices by placing the following at the top of
961 your org file:
963 #+begin_src org
964   ,#+SEQ_TODO: INVOICE(i) MAIL(m) WAITING(w) FOLLOWUP(f) | RECEIVED(r)
965 #+end_src
967 Note: The "|" separates active from inactive todos.
969 You can combine such todo sequences with logging in order to keep a
970 record of when each event in the sequence happened.
972 * TODO Awaiting definitions
973 ** Agenda filtering
975 #+index: Agenda filtering!Definition
977 ** CLOCK
979 #+index: Clock!Definition
981 ** Column view
983 #+index: Column view!Definition
985 ** Cycling
987 #+index: Cycling!Definition
989 ** Effort estimate
991 #+index: Effort estimate!Definition
993 ** Filetag
995 #+index: Filetag!Definition
997 ** Project
999 #+index: Project!Definition
1001 ** Note
1003 #+index: Note!Definition
1005 ** List
1007 #+index: List !Definition
1009 ** Level
1011 #+index: Level!Definition
1013 ** Logging
1015 #+index: Logging!Definition
1017 ** SCHEDULED
1019 #+index: SCHEDULED!Definition
1021 ** Restriction lock
1022   :PROPERTIES:
1023   :CUSTOM_ID: file-restriction
1024   :END:
1025 # roklein AT roklein DOT de: is this the right place for the tag?
1026 #+index: Restriction lock!Definition
1028 ** Table
1030 #+index: Table!Definition
1032 ** Timestamp
1034 #+index: Timestamp!Definition