There is something really annoying, that happens from time to time (much to often of course):
I accidently close an editor tab and have to search allover the disk or through a large project/workspace to reopen it.
Firefox/Iceweasel has a great feture, that stores the last closed editors on a stack and allows to reopen them with pressing Ctrl+Shift+T.
I developped a plugin for C::B, that does exact the same.
It's not possible to restore the tab-position, because we can not retrieve the position of the closed editor without (many) changes to the sdk.
If a project is closed all editor that belong to it will be removed from the stack. The stack will not be saved (at the moment) if the project closes.
It's designed as LIFO (last in first out).
Tested on linux and windows7.
Needed changes to the automake system (not to any distro-specific package files [rpm or debian]) are also included.