I've started using org-mode and am now at the point where I really need archiving. However, I often have sub-projects which are hard to understand without the containing project (i.e., the ancestors in the tree).
Is it possible to archive a subtree while creating the super-tree (if it does not exist yet)?
Concrete example. Say my gtd.org
file looks like this:
* Private
** TODO Organize all my Todos
[…]
* Work
[…]
** TODO Awesome Project
*** DONE Organize all my Todos
**** DONE Do X
**** DONE Do Y
*** TODO Get Work Done
And my gtd.org_archive
file is empty. Now, when I archive the "DONE Organize all my Todos" task, this is what I want my archive file to look like:
* Work
** Awesome Project
*** DONE Organize all my Todos
**** DONE Do X
**** DONE Do Y
Obviously, when later archiving other stuff, it should figure out whether the containing tree must be created or is already there. E.g., if I later set the "Get Work Done" to DONE and archive it, this is how the archive should look like:
* Work
** Awesome Project
*** DONE Organize all my Todos
**** DONE Do X
**** DONE Do Y
*** DONE Get Work Done
It should not create a new * Work / ** Awesome Project
tree. However, when I later archive the "Organize all my Todos" under "Private", it should not be mixed up with the one under work, but look like this:
* Private
** DONE Organize all my Todos
* Work
** Awesome Project
*** DONE Organize all my Todos
**** DONE Do X
**** DONE Do Y
*** DONE Get Work Done
Is there any way of achieving this using org-mode?
Thanks in advance.