Neil Hodgson wrote:
A possible way to do this is via a Lua script, perhaps watching the OnOpen event: new file coming up -> update session.
For closed buffers, perhaps OnSwitchFile?
I can be wrong, but it seems that buffer management in Lua is still a bit primitive.
And we don't have, AFAIK, an OnSciTEExit command...

An OnQuit or similar would be reasonable but Robert would need the name of the opened session file. There are consequent issues if you head down this route such as whether the current named session is saved when opening another.

Hmmm. I wasn't trying to to turn this into a learning how Lua integrates with SciTE session (but thanks Philippe) OR one of the perennial let's make SciTE into a [more serious] IDE discussion... :)

It just seemed that since a) SciTE can already save the current set of buffers and minimal state info, b) bring this back, and c) handle explicit loads and saves of *named* buffer "bundles" ("sessions"), substituting in the "last" named bundle for a) and b) shouldn't be all that difficult... and might even be desirable.

I even invoked the example of everyone's favorite IDE, VS - and emulating its behavior I would take as the guide for how this should work in cases such as the one Neil brings up (and for this, I believe that it silently updates the current project first - yup, it does, I just checked on VS 2003). ;)

So, this still looks fairly straightforward and even easy to me - the code already exists for almost all of it. All that really should be left is saving the loaded project name, adding the requisite decision points for for doing the autosave, and integrating this functionality into the existing defined properties and documentation... *would* something like "save.session=2" be reasonable/adequate?

Since you don't sound like you want to do this yourself, Neil, would this come under one of your "I'll accept a well-written patch..." edicts?

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to