Home Download Buy Blog Forum Support

switch back and forth between two tabs

switch back and forth between two tabs

Postby barty on Thu Nov 12, 2009 3:43 pm

In windows, you can switch back and forth b/t 2 windows with quick alt+tab, ignoring all other windows. I like to be able to do the same in sublime, switching back and forth b/t 2 tabs, regardless what other tabs there are, something like prevActiveView
barty
 
Posts: 47
Joined: Thu Sep 10, 2009 5:39 am

Re: switch back and forth between two tabs

Postby vim on Thu Nov 12, 2009 4:09 pm

ctrl+tab
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: switch back and forth between two tabs

Postby barty on Fri Nov 13, 2009 4:26 pm

maybe ctrl+tab does something different for you. for me, it just goes to the next tab in the cycle. I want to switch to the previous active view, no matter where it is.

say I have 10 views opened A B C D E F G H I J, I want to switch back and forth between C and H, using the same key binding, b/c very often I'm focused on just 2 files out of the ones I have opened, e.g., I'm copying text from one to the other. I could rearrange the tabs so C and H are next to each other, but I still have to think whether to hit ctrl+tab / ctrrl+pgdn or ctrl+shift+tab / ctrl+pgup. That's more work than I want to do :)
barty
 
Posts: 47
Joined: Thu Sep 10, 2009 5:39 am

Re: switch back and forth between two tabs

Postby vim on Fri Nov 13, 2009 4:44 pm

barty wrote:I want to switch back and forth between C and H, using the same key binding


1. select C with either mouse or ctrl+tab
2. select H with either mouse or ctrl+tab (keep ctrl pressed if using ctrl+tab)
3. now release ctrl
4. when using ctrl+tab you will be back to C
5. now release ctrl
6. when using ctrl+tab you will be back to H

they key is to release the ctrl key when jumping back and forth.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: switch back and forth between two tabs

Postby jps on Fri Nov 13, 2009 9:34 pm

Also, you may want to check that ctrl+tab is bound to nextViewInStack, and not nextView: the latter always selects the view to the left/right
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: switch back and forth between two tabs

Postby barty on Sat Nov 14, 2009 6:11 am

that's it! mine was bound to nextview. thanks.
barty
 
Posts: 47
Joined: Thu Sep 10, 2009 5:39 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 11 guests