I use org-mode.
When I archive some headings, they are moved to FILENAME_archive
, along with the filename and OLPATH property.
From the information stored as property in the archive file I think it is possible to define a some kind of restoration operation which puts back the heading to where it originally belong.
My question is, is there any org function to achieve such task? I want this function because I now have the archived entries which I want to put back to the original file.
(setq org-refile-targets (quote ((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))))
The only thing you would need is something to remove the archived log information and restore the todo to an active status.org-archive-location
to set the file and the heading and follow it up with functionorg-archive-subtree
. To do it manually,org-refile
is your best bet. If you would like to post what your sample archived entry looks like, along with a sample of what you would like it to look like when it has been restored, then someone will probably be kind enough to write a sample function for you (if you find you still need some assistance).