Tab switching by "ctl + arrows" #4743

Closed
opened 2026-01-30 23:55:27 +00:00 by claunia · 5 comments
Owner

Originally created by @Malnasser on GitHub (Oct 31, 2019).

I would like to switch between tabs by keyboard shortcuts with "Ctrl + ➡" to switch to tabs in the right and "Ctrl + ⬅" to switch to tabs in the left.

I would like to develop it by myself if this is possible" 😁

Originally created by @Malnasser on GitHub (Oct 31, 2019). I would like to switch between tabs by keyboard shortcuts with "Ctrl + ➡" to switch to tabs in the right and "Ctrl + ⬅" to switch to tabs in the left. I would like to develop it by myself if this is possible" 😁
Author
Owner

@zadjii-msft commented on GitHub (Oct 31, 2019):

I'm pretty sure this is already possible, if you add the following keybindings:

        { "command": "nextTab", "keys": ["ctrl+right"] },
        { "command": "prevTab", "keys": ["ctrl+left"] },
@zadjii-msft commented on GitHub (Oct 31, 2019): I'm pretty sure this is already possible, if you add the following keybindings: ```json { "command": "nextTab", "keys": ["ctrl+right"] }, { "command": "prevTab", "keys": ["ctrl+left"] }, ```
Author
Owner

@Malnasser commented on GitHub (Oct 31, 2019):

@zadjii-msft can we have this by default with the right hand Ctrl key?

@Malnasser commented on GitHub (Oct 31, 2019): @zadjii-msft can we have this by default with the right hand Ctrl key?
Author
Owner

@zadjii-msft commented on GitHub (Oct 31, 2019):

I'm not totally sure we can differentiate between the two, though @lhecker can correct me if I'm wrong.

Even if we can, I'd be inclined to not add this as a default, simply because some shell applications (like powershell, cmd) already use ctrl+arrow as a "move-by-word" shortcut, and I'm fairly certain they don't differentiate between left vs right control. Additionally, we already have ctrl+tab/ctrl+shift+tab bound to these actions.

@zadjii-msft commented on GitHub (Oct 31, 2019): I'm not totally sure we can differentiate between the two, though @lhecker can correct me if I'm wrong. Even if we can, I'd be inclined to _not_ add this as a default, simply because some shell applications (like powershell, cmd) already use <kbd>ctrl+arrow</kbd> as a "move-by-word" shortcut, and I'm fairly certain they _don't_ differentiate between left vs right control. Additionally, we already have <kbd>ctrl+tab</kbd>/<kbd>ctrl+shift+tab</kbd> bound to these actions.
Author
Owner

@Malnasser commented on GitHub (Oct 31, 2019):

I see! I didn't know about ctrl+tab/ctrl+shift+tab!
In this case, I would agree with you.

@Malnasser commented on GitHub (Oct 31, 2019): I see! I didn't know about ctrl+tab/ctrl+shift+tab! In this case, I would agree with you.
Author
Owner

@lhecker commented on GitHub (Oct 31, 2019):

@zadjii-msft We can differentiate between them. It's just that the code related to settings doesn't support this yet.

@lhecker commented on GitHub (Oct 31, 2019): @zadjii-msft We can differentiate between them. It's just that the code related to settings [doesn't support this yet](https://github.com/microsoft/terminal/blob/b726a3d05d35928becc8313f6ac5536c9f503645/src/cascadia/TerminalSettings/KeyChord.idl#L20).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4743