all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Archive done tasks and preserve tree structure
@ 2024-05-19 13:16 Naresh Gurbuxani
  2024-05-19 14:41 ` Ihor Radchenko
  2024-05-21 18:13 ` Joris Caravati via General discussions about Org-mode.
  0 siblings, 2 replies; 3+ messages in thread
From: Naresh Gurbuxani @ 2024-05-19 13:16 UTC (permalink / raw)
  To: emacs-orgmode

In my task list, items are grouped under various headings.  For example:

* Reading

** TODO Book 1

** TODO Book 2

* Programming

** TODO assignment 1

** TODO assignment 2


When an item is DONE, I want to archive it such that archive file 
preserves tree structure.  So when Book 1 above is DONE, I want C-c C-x 
C-a to send this subtree to archive file under the heading Reading.  I 
followed the suggestion here:

https://stackoverflow.com/questions/10143959/keeping-the-context-when-archiving-in-emacs-org-mode

My updated tasks file looks like this.

* Reading

:PROPERTIES:
:ARCHIVE: %s_archive::Reading
:END:

** TODO Book 1

** TODO Book 2


Adding this property does not change archive action.  After marking Book 
1 as DONE, then typing C-c C-x C-a sends this subtree to archive file as 
a top level heading.  As a result, my archive file has a long list of 
top level headings.

How can I get the archiving done to preserve tree structure of tasks?  
Any hope for already archived items to be reorganized?

Thanks,

Naresh



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-21 18:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-19 13:16 Archive done tasks and preserve tree structure Naresh Gurbuxani
2024-05-19 14:41 ` Ihor Radchenko
2024-05-21 18:13 ` Joris Caravati via General discussions about Org-mode.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.