[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Restore previous folded state of org buffer

From: User
Subject: [Orgmode] Restore previous folded state of org buffer
Date: Sat, 25 Jul 2009 19:34:01 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bastien <bastienguerry <at> googlemail.com> writes:
> Nope.  As this is becoming a FAQ, I've added this sad answer to the
> org-faq.org file in Worg.

I don't need this feature at the moment, but the problem
intrigued me, so I came up with a quick implementation.

I don't plan to work on it further, since I don't really need it
yet (I'm a novice org user), but I put it here if someone wants
to develop the idea.

You simply load the elisp file and from that on folding state is
automatically saved and restored for org mode files. The folding
information is saved at the end of the org file itself every time
the buffer is saved.

It seemed to work pretty well. The only faulty case I discovered
is when the very last branch is folded in the file, because it
contains the saved folding info, but this bug is probably easy to
fix with a little thinking.

Here it is. I hope someone takes the idea further:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]