Home Download Buy Blog Forum Support

Undo tab close / recently closed tabs

Undo tab close / recently closed tabs

Postby jburnett on Fri Jul 29, 2011 1:53 am

It might be nice if there were a "undo tab close" command, or a list of recently closed tabs that you could click on to restore the tab. Basically duplicate the same functionality as Firefox browser tabs (including ctrl-shift-t hotkey).

The use case is slightly different than the "open recent" menu (as you might have accidentally closed a file that you've been keeping open for reference, but haven't save in a while so it wouldn't be in the recent file menu. I just did this, and almost pressed ctrl-shift-t out of habit to try and get it back (my web browser has conditioned me to this).
jburnett
 
Posts: 89
Joined: Wed Jul 27, 2011 9:23 pm

Re: Undo tab close / recently closed tabs

Postby nocred on Fri Jul 29, 2011 5:06 pm

Hey, there already are a couple of user made plugins here: http://www.sublimetext.com/forum/viewtopic.php?f=5&t=1083, one with a list of recently opened files.
nocred
 
Posts: 1
Joined: Fri Jul 29, 2011 5:00 pm

Re: Undo tab close / recently closed tabs

Postby rlyeh on Wed Aug 10, 2011 9:36 am

jburnett wrote:Basically duplicate the same functionality as Firefox browser tabs (including ctrl-shift-t hotkey).

yeah useful! +1. chrome also works this way
rlyeh
 
Posts: 8
Joined: Fri Jul 01, 2011 7:56 pm

Re: Undo tab close / recently closed tabs

Postby alexrussell on Wed Aug 10, 2011 3:18 pm

While admittedly this does replicate the 'open recent' menu item, I've never had an issue with it doing something unexpected - the command is built-in and this is what I use (I got it form another post on the forum somewhere - not my own work):

Code: Select all
{ "keys": ["ctrl+shift+t"], "command": "open_recent_file", "args": {"index" : 0} }


Now this has the major drawback of only being able to open the last one, and that's it - it'll just focus it from then on until you close a new tab. No nice history like FF and Chrome, but still useful and saves having a plugin.
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 10 guests