patch for saving/restoring sessions
Brought to you by:
tringali
This is a patch for NEdit to provide the capability
to save current session and restore it later. With it,
you can save what you are doing, close NEdit and go
home, then return to where you left off (most of it)
the next morning.
In addition, the states of a file will be saved before
its window is closed, which will be restored the next
time the file is opened (when a session is restored, or
by simply opening the file as normal). This recent-file
feature is independent of the session records, and may
be viewed as an extension to the original "previous
file" menu of NEdit.
(see README in the diff package for more)
cvs diff v0.1 for nedit-session
v0.1a - removed changes in makefiles
Logged In: YES
user_id=411637
removed changes in makefiles which was only meant for
debugging (-g)
Logged In: YES
user_id=411637
removed changes in makefiles which was only meant for
debugging (-g)
patch over 5.3RC1, can disable recent-file
Logged In: YES
user_id=411637
this patch is for 5.3RC1. The recent-file feature may now be
disabled using X-resource.
patch v3 for 5.3, bugfix and enhancement
README for v3 patch
Logged In: YES
user_id=411637
From ChangeLog in the README file:
v3, 2002-07-05, tksoh
- patch against REL-5-3
- added more state data to recentf-file record: window
dimension, split panes settings, all local pref settings
(except text font)
- fixed a bug where recent-file records weren't saved if
files were closed by WM's close command.
Logged In: YES
user_id=11321
How does this integrate with the current session saving
code? Is it a replacement, or a second implementation? I'm
leary of having two separate implementations. If this is a
better implementation then perhaps the old implementaton
should be discarded.
Logged In: YES
user_id=411637
It's fundamentally a second implementation. But the version
I'm updating allows users the option to restore the last
session when starting nedit again. Personally, I find the
current session saving feature isn't as useful in practice.
Logged In: YES
user_id=11321
OK, the duplicate name confused me a for a bit. So this
more like a project file.
It seems to me that you could build checkpointing
(traditional sessions) on top of this? To checkpoint, you
can probably just save the project file. Does this mean we
can throw away some redundant code?
Logged In: YES
user_id=411637
I borrowed the word 'session' from DDD, I supposed 'project'
is the better word.
The patch actually does checkpointing (which I casually
named it as 'recent-file'), a feature that I personally find
to be more useful than project management.
What redundant code you are refering to?
The latest update of this patch can be found on github:
https://github.com/tksoh/nedit-git/commits/save-restore-edit-session