Yuki Inoue
Yuki Inoue

Reputation: 3787

Restoring entries from archive in org-mode

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.

Upvotes: 27

Views: 4370

Answers (1)

Arthur叔
Arthur叔

Reputation: 40

Yes, there is a built-in org-mode function to restore archived headings to their original location. This function is called "org-archive-subtree-restore", and it can be used to restore archived headings to their original location based on the filename and OLPATH property stored in the archive file.

The "org-archive-subtree-restore" function does not automatically delete the heading from the archive file. After restoring the heading to its original location, you will need to manually delete the heading from the archive file if you want to remove it.

Upvotes: -7

Related Questions