On Tue, 31 Mar 2009 20:05:18 +0200, Thomas wrote:
Enrico Tröger schrieb:
On Tue, 31 Mar 2009 11:19:21 +0200, jerome wrote:
Harold Aling a écrit :
On Tue, 31 Mar 2009 11:00:39 +0200, jerome mister.jerome@gmail.com wrote:
Hello,
Sometimes, I close tab by cliking on the cross accidentally.
It's possible to include the possiblilty to restore the last close tab by history as in Firefox ?
The last file you've closed should be on top of the "recent files" list but reopening that file doesn't restore the undo history and such...
A 'undo close tab' function under the right mouseclick menu of the tabs could be handy though...
-H- _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Yes. it's right for the recent files.
As you say, to restore the history and other functions related to the file is good idea. And why not enlarge this functinnality to all file open with Geany. When close a file, save the history and restore it when reopen the file. A maximum size may be specified to prevent using too much disk space.
I don't know if this is really useful but it is original :D
And there goes it away: Geany, a fast and lightweight IDE.
This would be a major step in not being fast and not being lightweight anymore. See Firefox...once praised as fast, small new webbrowser and what is it now? A damn huge slow big chunk of software which feels slow and sluggish even on modern computers.
As Harold said already, the top most item of the recent files list re-opens the file again. I don't see any need to restore (and therefore keep) any previous data of the closed tab.
Regards, Enrico
How about giving actual reasons to not do it, instead of complaining about totally unrelated software?
Here we go: to restore the undo history of the last closed tab we need to keep it in memory somehow, this also means we need to get it from Scintilla and then on restoring we need to get it back into Scintilla. There is no such API for that, AFAIK. So, we would need lots of new code in Geany *and* in Scintilla. Or we would have to keep the whole Scintilla object when closing a tab.
The above is only for *one* tab and only for the undo history, not to mention saving/restoring symbol list state, folding state, selection state or whatever. Jerome even requests this for many/all files and want to save it even on disk between sessions.
Some time ago, there was a similar discussion[1] about saving things like cursor position, selection state and more not only for session files but for files in general. One solution how this could be solved would be to use xattr and similar techniques or some kind of database which stores metadata for each files which was ever opened in Geany (and maybe with some cleanup mechanism).
I don't want something like this in Geany. If anyone wants to write a plugin which implements any of the above mentioned functionality, this is completely ok and cool.
[1] http://lists.uvena.de/pipermail/geany-devel/2008-December/000365.html
Regards, Enrico