WT not respecting new tab index defined in default.json #15130

Open
opened 2026-01-31 04:29:24 +00:00 by claunia · 0 comments
Owner

Originally created by @elsaco on GitHub (Sep 8, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.0 1.9.1942.0

Other Software

No response

Steps to reproduce

  • open a new tab with ctrl+shift+1 for tab index 0
  • open a new tab with ctrl+shift+8 for tab index 7
  • open a new tab with ctrl+shift+9 for tab index 8
  • open a new tab with crtl+shift+0+9 <--this key combination should not be allowed but it opens a new tab

Expected Behavior

New tab to be assigned to the index specified in default.json.

Actual Behavior

New tabs are added sequentially. Using above example when opening a new tab with ctrl+shift+9 it became tab index 1. If crtl+shift+9 is used again tab index 2 is opened. So, crtl+alt+9 will not switch to tab index 8, because there is no such tab index.

crtl+shift+0+9 or any other 1-9 key should not open a new tab when an extra key is added to the combination. In fact, any additional key (numbers + letters) added to crtl+shift+number will open a new tab, i.e crtl+shift+a+1.

Originally created by @elsaco on GitHub (Sep 8, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.0 1.9.1942.0 ### Other Software _No response_ ### Steps to reproduce - open a new tab with ctrl+shift+1 for tab index 0 - open a new tab with ctrl+shift+8 for tab index 7 - open a new tab with ctrl+shift+9 for tab index 8 - open a new tab with crtl+shift+0+9 <--this key combination should not be allowed but it opens a new tab ### Expected Behavior New tab to be assigned to the index specified in default.json. ### Actual Behavior New tabs are added sequentially. Using above example when opening a new tab with ctrl+shift+9 it became tab index 1. If crtl+shift+9 is used again tab index 2 is opened. So, crtl+alt+9 will not switch to tab index 8, because there is no such tab index. crtl+shift+0+9 or any other 1-9 key should not open a new tab when an extra key is added to the combination. In fact, any additional key (numbers + letters) added to crtl+shift+number will open a new tab, i.e crtl+shift+a+1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15130