The thread comes to the conclusion that the whole state of the file would have to be retained in memory for that feature. That is not necessary: the file can be closed and then reopened, as I believe the point of this feature is user comfort, not speed.
I think it would be nice to have the feature as a configurable keyboard shortcut (and perhaps a tab bar context menu element for the lazy ones) -- I sometimes hit CTRL-W accidentally, or even worse, CTRL-SHIFT-W, and would like another shortcut to counteract it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do I understand you correctly saying that restoring the status of the last closed tab (cursor position, folding state, ...) is not necessary, you really just want a shortcut (and/or menu/toolbar/whatever item) to open the last closed tab again? If so, this could be done easily.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Implemented as trivial as it can be: the new keybinding "Re-open last closed tab" opens the most recently closed file (the first item in the recent file list). By default, the keybinding is unassigned.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See http://thread.gmane.org/gmane.editors.geany.general/3234 for a lengthy discussion about this feature and why it is not implemented.
As also mentioned in this thread, using the recent files menu might be enough.
The thread comes to the conclusion that the whole state of the file would have to be retained in memory for that feature. That is not necessary: the file can be closed and then reopened, as I believe the point of this feature is user comfort, not speed.
I think it would be nice to have the feature as a configurable keyboard shortcut (and perhaps a tab bar context menu element for the lazy ones) -- I sometimes hit CTRL-W accidentally, or even worse, CTRL-SHIFT-W, and would like another shortcut to counteract it.
Do I understand you correctly saying that restoring the status of the last closed tab (cursor position, folding state, ...) is not necessary, you really just want a shortcut (and/or menu/toolbar/whatever item) to open the last closed tab again? If so, this could be done easily.
Yes, it is what I meant.
Implemented as trivial as it can be: the new keybinding "Re-open last closed tab" opens the most recently closed file (the first item in the recent file list). By default, the keybinding is unassigned.