Commands nextTab and prevTab have unexpected behaviour #11392

Closed
opened 2026-01-31 02:46:20 +00:00 by claunia · 6 comments
Owner

Originally created by @VisserJ-RTT on GitHub (Nov 13, 2020).

There is either a change or a bug resulting in new (erratic) behavior of the nexttTab and prevTab commands. Previously when using these commands you'd switch between tabs left and right of your current one. Currently it appears this is happening in the order they were last active.

The documentation still states the previous (left+right) behavior: https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions

If this is supposed to happen and is new behavior, I am unable to find any relevant info to that change. Also would there be a way to disable this "new" behavior?

Environment :

Microsoft Windows [Version 10.0.19042.630]
Windows Terminal 1.4.3141.0

Steps to reproduce

Use CTRL+TAB to swtich between tabs.

Expected behavior

Swap between tabs left and right of the currently active one.

Actual behavior

Swapping between tabs in the order they were last active.

Originally created by @VisserJ-RTT on GitHub (Nov 13, 2020). There is either a change or a bug resulting in new (erratic) behavior of the nexttTab and prevTab commands. Previously when using these commands you'd switch between tabs left and right of your current one. Currently it appears this is happening in the order they were last active. The documentation still states the previous (left+right) behavior: https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions If this is supposed to happen and is new behavior, I am unable to find any relevant info to that change. Also would there be a way to disable this "new" behavior? # Environment : ``` Microsoft Windows [Version 10.0.19042.630] Windows Terminal 1.4.3141.0 ``` # Steps to reproduce Use CTRL+TAB to swtich between tabs. # Expected behavior Swap between tabs left and right of the currently active one. # Actual behavior Swapping between tabs in the order they were last active.
claunia added the Resolution-Fix-AvailableNeeds-Tag-Fix labels 2026-01-31 02:46:21 +00:00
Author
Owner

@Don-Vito commented on GitHub (Nov 13, 2020):

@VisserJ-RTT - This is a gap in documentation, starting from 1.4.3141.0 the navigation might occur either "in order" or "MRU" with a default value being MRU.

@Don-Vito commented on GitHub (Nov 13, 2020): @VisserJ-RTT - This is a gap in documentation, starting from 1.4.3141.0 the navigation might occur either "in order" or "MRU" with a default value being MRU.
Author
Owner

@VisserJ-RTT commented on GitHub (Nov 13, 2020):

Thank you for the info. You comment also handed me the right search terms to find the blog post to this change.

https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-5-release/

For finding this issue and looking for a solution (this is from the blogpost):

"useTabSwitcher": "mru",
"useTabSwitcher": "inOrder"

// Disables the tab switcher
"useTabSwitcher": "disabled"
@VisserJ-RTT commented on GitHub (Nov 13, 2020): Thank you for the info. You comment also handed me the right search terms to find the blog post to this change. https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-5-release/ For finding this issue and looking for a solution (this is from the blogpost): ```// Enables the tab switcher "useTabSwitcher": "mru", "useTabSwitcher": "inOrder" // Disables the tab switcher "useTabSwitcher": "disabled"
Author
Owner

@Don-Vito commented on GitHub (Nov 13, 2020):

@cinnamon-msft - I could create a PR for docs, but:

  1. My English is far from perfect.
  2. I have no clue how to explain it without confusing the end-user (good luck explaining the difference between move to next tab and move to previous tab in MRU mode)
@Don-Vito commented on GitHub (Nov 13, 2020): @cinnamon-msft - I could create a PR for docs, but: 1. My English is far from perfect. 2. I have no clue how to explain it without confusing the end-user (good luck explaining the difference between move to next tab and move to previous tab in MRU mode)
Author
Owner

@Don-Vito commented on GitHub (Nov 13, 2020):

Thank you for the info. You comment also handed me the right search terms to find the blog post to this change.

https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-5-release/

For finding this issue and looking for a solution (this is from the blogpost):

"useTabSwitcher": "mru",
"useTabSwitcher": "inOrder"

// Disables the tab switcher
"useTabSwitcher": "disabled"

@VisserJ-RTT - starting from 1.5 you are encouraged to use "tabSwitcherMode" rather than "useTabSwitcher" (which is still supported, but is marked as deprecated).

I guess that introduction of MRU in the late 1.4 release and introduction of "tabSwitcherMode" configuration in the next preview, created some sort of confusion.

Here you can can see another discussion from today, that might help if you want to use to the old behavior: https://github.com/microsoft/terminal/issues/973#issuecomment-726665238

@Don-Vito commented on GitHub (Nov 13, 2020): > > > Thank you for the info. You comment also handed me the right search terms to find the blog post to this change. > > https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-5-release/ > > For finding this issue and looking for a solution (this is from the blogpost): > > ``` > "useTabSwitcher": "mru", > "useTabSwitcher": "inOrder" > > // Disables the tab switcher > "useTabSwitcher": "disabled" > ``` @VisserJ-RTT - starting from 1.5 you are encouraged to use `"tabSwitcherMode"` rather than `"useTabSwitcher"` (which is still supported, but is marked as deprecated). I guess that introduction of MRU in the late 1.4 release and introduction of `"tabSwitcherMode"` configuration in the next preview, created some sort of confusion. Here you can can see another discussion from today, that might help if you want to use to the old behavior: https://github.com/microsoft/terminal/issues/973#issuecomment-726665238
Author
Owner

@AntonOfTheWoods commented on GitHub (Nov 16, 2020):

This is a bit of a WTF. Is there any way to opt out of having our options randomly changed? I can understand wanting to change default settings for new users (or new profiles) but this just seems pointlessly annoying. Aren't we all grumpy old fart(ette)s that don't like people changing our shortcuts without asking VERY nicely first? Couldn't there be a "update me to the latest snazziest whatever as you please" option (on by default if you must) but then have a way to say "don't change my shortcuts unless the code to make them work has actually been removed from the codebase"?

That way you get less friction and still migrate (probably) the bulk of users to your new fandangle settings, no?

@AntonOfTheWoods commented on GitHub (Nov 16, 2020): This is a bit of a WTF. Is there any way to opt out of having our options randomly changed? I can understand wanting to change default settings for *new* users (or new profiles) but this just seems pointlessly annoying. Aren't we all grumpy old fart(ette)s that don't like people changing our shortcuts without asking VERY nicely first? Couldn't there be a "update me to the latest snazziest whatever as you please" option (on by default if you must) but then have a way to say "don't change my shortcuts unless the code to make them work has actually been removed from the codebase"? That way you get less friction and still migrate (probably) the bulk of users to your new fandangle settings, no?
Author
Owner

@DHowett commented on GitHub (Nov 20, 2020):

@AntonOfTheWoods Right now, there's not. I'm sorry about that. I wrote up a bit more in https://github.com/microsoft/terminal/issues/8247#issuecomment-730169446.

In short, we're reverting the change on both preview and stable and making it opt-in.

I recall being upset when Firefox switched Ctrl+Tab to do a switcher like this by default. I am not sure why I felt like we were alright doing the same thing. 🤔

Marking closed w/ the updates that are going out today.

@DHowett commented on GitHub (Nov 20, 2020): @AntonOfTheWoods Right now, there's not. I'm sorry about that. I wrote up a bit more in https://github.com/microsoft/terminal/issues/8247#issuecomment-730169446. In short, we're reverting the change on both preview and stable and making it opt-in. I recall being upset when Firefox switched Ctrl+Tab to do a switcher like this by default. I am not sure why I felt like we were alright doing the same thing. :thinking: Marking closed w/ the updates that are going out today.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11392