Previous: Moving subtrees, Up: Archiving [Contents][Index]
If you want to just switch off (for agenda views) certain subtrees without
moving them to a different file, you can use the ARCHIVE tag
.
A headline that is marked with the ARCHIVE tag (see Tags) stays at its location in the outline tree, but behaves in the following way:
org-cycle-open-archived-trees
. Also normal outline commands like
show-all
will open archived subtrees.
org-sparse-tree-open-archived-trees
.
org-agenda-skip-archived-trees
, in which case these trees will always
be included. In the agenda you can press v a to get archives
temporarily included.
org-export-with-archived-trees
.
org-columns-skip-archived-trees
is configured to nil
.
The following commands help manage the ARCHIVE tag:
org-toggle-archive-tag
)Toggle the ARCHIVE tag for the current headline. When the tag is set, the headline changes to a shadowed face, and the subtree below it is hidden.
Check if any direct children of the current headline should be archived. To do this, each subtree is checked for open TODO entries. If none are found, the command offers to set the ARCHIVE tag for the child. If the cursor is not on a headline when this command is invoked, the level 1 trees will be checked.
org-force-cycle-archived
)org-archive-to-archive-sibling
)Move the current entry to the Archive Sibling. This is a sibling of the entry with the heading ‘Archive’ and the tag ‘ARCHIVE’. The entry becomes a child of that sibling and in this way retains a lot of its original context, including inherited tags and approximate position in the outline.
Previous: Moving subtrees, Up: Archiving [Contents][Index]