From: Naresh Gurbuxani <naresh_gurbuxani@hotmail.com>
To: emacs-orgmode@gnu.org
Subject: Archive done tasks and preserve tree structure
Date: Sun, 19 May 2024 09:16:44 -0400 [thread overview]
Message-ID: <IA1P223MB049960F0E4D69A8BB8EB58C4FAE82@IA1P223MB0499.NAMP223.PROD.OUTLOOK.COM> (raw)
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
next reply other threads:[~2024-05-19 13:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-19 13:16 Naresh Gurbuxani [this message]
2024-05-19 14:41 ` Archive done tasks and preserve tree structure Ihor Radchenko
2024-05-21 18:13 ` Joris Caravati via General discussions about Org-mode.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=IA1P223MB049960F0E4D69A8BB8EB58C4FAE82@IA1P223MB0499.NAMP223.PROD.OUTLOOK.COM \
--to=naresh_gurbuxani@hotmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).