Home Download Buy Blog Forum Support

Close document = prev in stack

Close document = prev in stack

Postby alexrussell on Tue Aug 09, 2011 9:32 am

This may not be working how I want because of my settings, so sorry if I'm asking for something that's already in.

Basically, I've remapped my keyboard shortcuts so that ctrl+tab/ctrl+shift+tab act like next/prev (visual) tab. The stack thing was seriously getting to me, as I was dipping in and out of files and the stack order thing didn't make a lot of sense to me. However, I do think that on closing a tab, going back to the previous tab I the stack (rather than the tab to the left of the one you just closed) makes a lot of sense.

Use case: I have 5 tabs open. I'm on tab #3, and realise I quickly need to change something in a non-open file. I press ctrl+p and type in the file name (or double click it from the sidebar). The file opens in a new tab at the end of the tabbar (tab #6). I do the change, save, and then ctrl+w to close. Now I'm on tab #5. I should be back on tab #3.

The alternative there is to open the new tab next to the current one, like what happens if I drag a file in from outside the editor. In fact that's probably the better idea and it may even be a bugfix...?
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: Close document = prev in stack

Postby adzenith on Tue Aug 09, 2011 9:42 am

I've got a lonely 0-vote post for this on UserEcho: http://sublimetext.userecho.com/topic/4 ... the-stack/
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: Close document = prev in stack

Postby jbjornson on Tue Aug 09, 2011 10:58 am

adzenith wrote:I've got a lonely 0-vote post for this on UserEcho: http://sublimetext.userecho.com/topic/4 ... the-stack/


I agree. Now you have a lonely 1-vote post on UserEcho.
jbjornson
 
Posts: 344
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland

Re: Close document = prev in stack

Postby alexrussell on Wed Aug 10, 2011 8:01 am

jbjornson wrote:
adzenith wrote:I've got a lonely 0-vote post for this on UserEcho: http://sublimetext.userecho.com/topic/4 ... the-stack/


I agree. Now you have a lonely 1-vote post on UserEcho.


Make that 2 votes. Sorry, I thought it was such a small bug/feature that I didn't even bother checking the UserEcho list.
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: Close document = prev in stack

Postby adzenith on Wed Aug 10, 2011 2:32 pm

This feature made it into 2101! Excellent.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: Close document = prev in stack

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

Indeed, this is great stuff!

However, I've left a comment in the 2101 thread saying that it'd actually be nice to have it for any closing of a file, not just on using a keybinding. Seems more normal to me.
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: Close document = prev in stack

Postby vorg on Mon Mar 11, 2013 10:38 pm

Is there a way to revert this behaviour? I.e. On close file I want to go to tab on the left of the closed file like in any web browser.
vorg
 
Posts: 1
Joined: Mon Mar 11, 2013 10:37 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 12 guests