Ideally, Ctrl + Tab could be used to navigate between tabs in Most Recently Used order.
You can see MRU in browsers or Notepad++ - very convenient to repeatedly switch between two tabs.
The Matlabesque Ctrl+ PgUP/PgDwn becomes painful if the tabs are not close, and the Ctrl + Tab is easy to remember, by analogy with the Alt + Tab.
Comment #1
Posted on Sep 14, 2009 by Happy Camel(No comment was entered for this change.)
Comment #2
Posted on Sep 18, 2009 by Happy Camel(No comment was entered for this change.)
Comment #3
Posted on Sep 18, 2009 by Helpful DogTrying the brand new version. Begins to look good.
About MRU, we are nearly there.
In tab1, I click tab3, then I click tab2. Then 2 times Ctrl + Tab -> back to tab1, everything is fine. Then from tab1, one time Ctrl + Tab -> back to 2. It should be back to tab3, my most recently used tab before my second access to tab1.
Spyder acts as is the history was updated on "click on tab to access tab" events, but not on "Ctrl + Tab to access tab" events.
Comment #4
Posted on Sep 19, 2009 by Happy CamelActually no, it should be back to 2: anyway, that's the behavior I have with Google Chrome for example.
Comment #5
Posted on Sep 19, 2009 by Helpful DogDamn, you're right. So I formulated the problem badly. One more time :
In tab1, I click tab3, then I click tab2. Then 2 times Ctrl + Tab -> back to tab1, everything is fine. Then from tab1, one time Ctrl + Tab -> back to 2. Normal. Then from tab2, one time Ctrl + Tab -> we go to tab3. We should be going to tab1, the MRU tab.
Put more simply : with MRU, if you keep on Ctrl + Tab-ing, you should switch between your two more recent tabs - veeery handy. In this version, this doesn't happen like this.
... Hope I got this right this time.
Comment #6
Posted on Sep 22, 2009 by Happy CamelI understand what behavior you're expecting, but again, when I'm doing this on Firefox, I get the same behavior as Spyder. And this is very close to the Windows Alt+Tab feature too.
Comment #7
Posted on Sep 22, 2009 by Helpful DogThe behavior I'm thinking about is indeed Windows' Alt+Tab but it's not what there is in Spyder, and it's different again from what I get from "safe mode, no plugins" Firefox tabs (it just cycle trough tabs on my machine).
I realize my example was needlessly convoluted. Sorry for the noise, I'll try again, with Windows' Alt+Tab as a benchmark :
in Windows, open 3 apps successively (apps 1, 2 and 3 respectively). Then Alt+Tab, then another Alt+Tab. What happens is that you cycle between apps 2 and 3.
in Spyder, click on tab 1, then 2 then 3. Then Ctrl+Tab, then another Ctrl+Tab. What happens is that you go to tabs 2, then 1, then 3 etc.
I hope we are not too far here in "personal preference" territory. The Alt+Tab behavior is for me the Right One because it allows back and forth fast between the recent apps (tabs) (which is a Good Thing), and that the current behavior doesn't allow this.
Comment #8
Posted on Sep 22, 2009 by Happy CamelOk, so in other words, you simply want that when Ctrl+Tab is pressed, the last tab is selected -- it means that pressing several times Ctrl+Tab won't cycle through available tabs (that is the behavior I would personnaly expect) because it would simply cycle between the last two selected tabs. Even if I was at first thinking of Firefox or Google Chrome's behavior, I understand that to simply select the last tab would be useful if one has to switch between two opened files several times.
BTW, when you have several files opened at the same time, remember that the "Opened files" feature may be useful (that is the toolbox on the right panel below the "Class browser") to switch quickly to another tab. The horizontal/vertical splitting feature may also be useful in that context.
Comment #9
Posted on Sep 22, 2009 by Helpful DogNot exactly. I was using the "cycle between the two last tabs" just because for me, it is a sign that the "Ctrl+Tab in Spyder like Alt+Tab in Windows" is not there. Actually, I was thinking about Windows' full app switching feature : if you keep on Alt+Tab several times, you switch between the two most recents apps, if you Alt+Tab, Tab, Tab, you go to the next apps in your "focused apps" history.
Note that there is no need to have a special popup (as Windows does) and to switch on Alt release - you can switch directly on each Tab, it's the order that matters.
I should have begun with the Alt+Tab analogy, I think it clears things up. Others examples on the top of my mind are Tab Mix Plus addon in Firefox, Np++, or the Ido mode in Emacs.
Maybe the gain is not worth the pain? If you think so, maybe then a simple "alternate 2 most recent tabs" would be doable?
Comment #10
Posted on Aug 1, 2013 by Grumpy LionCompletely agree with Y. Bonnemay. The aim should be for Ctrl+Tab in Spyder to work like Alt+Tab in Ubuntu or Windows. He explained it best:
"If you keep on Alt+Tab several times, you switch between the two most recents apps. If you Alt+Tab, Tab, Tab, you go to the next apps in your history."
Quickly toggling back and forth between two most recently used scripts in Spyder is not possible without lifting off the keyboard and using the mouse. This is less efficient and productive. This is also how tab switching works with most other applications I've used.
Comment #11
Posted on Aug 10, 2013 by Quick HorseWe'll see what we can to improve the situation in our next release because current Tab behavior also confuses me.
Comment #12
Posted on Oct 11, 2013 by Happy CatIt always surprises me when such a detailed discussion occurs regarding a question with multiple correct answers and nobody mentions config options. If at all feasible, the tabbing behavior should clearly be configurable in the preferences. Ideally through the keyboard shortcuts.
As things are now, all I'd need is the ability to rewire the alt tab and control page up/down shortcuts. That should be simple, right? Any future variants of the MRU approach can be added in as further optional keyboard shortcuts.
Comment #13
Posted on Feb 17, 2015 by Quick Horse(No comment was entered for this change.)
Comment #14
Posted on Feb 17, 2015 by Quick HorseThis issue was migrated to https://github.com/spyder-ide/spyder/issues/
The issue number is exactly the same
Status: Accepted
Labels:
Type-Enhancement
Priority-Medium
Cat-Editor
MS-v2.4
Restrict-AddIssueComment-Commit