Try to flow together JSON serialization for keybindings #1829

Open
opened 2026-01-30 22:39:02 +00:00 by claunia · 0 comments
Owner

Originally created by @Jaykul on GitHub (Jun 22, 2019).

Originally assigned to: @zadjii-msft on GitHub.

I would love it if we could see all the keybindings ...

Wouldn't it be better if the default profiles.json could be formatted like ...

        "keybindings": [
            { "command": "closeTab",       "keys": [ "ctrl+w" ] },
            { "command": "newTab",         "keys": [ "ctrl+t" ] },
            { "command": "newTabProfile0", "keys": [ "ctrl+shift+1" ] },
            { "command": "newTabProfile1", "keys": [ "ctrl+shift+2" ] },
            { "command": "newTabProfile2", "keys": [ "ctrl+shift+3" ] },
            { "command": "newTabProfile3", "keys": [ "ctrl+shift+4" ] },
            { "command": "newTabProfile4", "keys": [ "ctrl+shift+5" ] },
            { "command": "newTabProfile5", "keys": [ "ctrl+shift+6" ] },
            { "command": "newTabProfile6", "keys": [ "ctrl+shift+7" ] },
            { "command": "newTabProfile7", "keys": [ "ctrl+shift+8" ] },
            { "command": "newTabProfile8", "keys": [ "ctrl+shift+9" ] },
            { "command": "nextTab",        "keys": [ "ctrl+tab" ] },
            { "command": "prevTab",        "keys": [ "ctrl+shift+tab" ] },
            { "command": "openSettings",   "keys": [ "ctrl+," ] },
            { "command": "scrollDown",     "keys": [ "ctrl+shift+down" ] },
            { "command": "scrollDownPage", "keys": [ "ctrl+shift+pgdn" ] },
            { "command": "scrollUp",       "keys": [ "ctrl+shift+up" ] },
            { "command": "scrollUpPage",   "keys": [ "ctrl+shift+pgup" ] },
            { "command": "switchToTab0",   "keys": [ "ctrl+1" ] },
            { "command": "switchToTab1",   "keys": [ "ctrl+2" ] },
            { "command": "switchToTab2",   "keys": [ "ctrl+3" ] },
            { "command": "switchToTab3",   "keys": [ "ctrl+4" ] },
            { "command": "switchToTab4",   "keys": [ "ctrl+5" ] },
            { "command": "switchToTab5",   "keys": [ "ctrl+6" ] },
            { "command": "switchToTab6",   "keys": [ "ctrl+7" ] },
            { "command": "switchToTab7",   "keys": [ "ctrl+8" ] },
            { "command": "switchToTab8",   "keys": [ "ctrl+9" ] }
        ],

And I just mean getting rid of the terribly redundant white space so that all the keys fit on screen at the same time ... not the fact that these key defaults are clearly superior (who's idea was it to use ALT for switching tabs, anyway?).

Originally created by @Jaykul on GitHub (Jun 22, 2019). Originally assigned to: @zadjii-msft on GitHub. # I would love it if we could see all the keybindings ... Wouldn't it be better if the default profiles.json could be formatted like ... ```json "keybindings": [ { "command": "closeTab", "keys": [ "ctrl+w" ] }, { "command": "newTab", "keys": [ "ctrl+t" ] }, { "command": "newTabProfile0", "keys": [ "ctrl+shift+1" ] }, { "command": "newTabProfile1", "keys": [ "ctrl+shift+2" ] }, { "command": "newTabProfile2", "keys": [ "ctrl+shift+3" ] }, { "command": "newTabProfile3", "keys": [ "ctrl+shift+4" ] }, { "command": "newTabProfile4", "keys": [ "ctrl+shift+5" ] }, { "command": "newTabProfile5", "keys": [ "ctrl+shift+6" ] }, { "command": "newTabProfile6", "keys": [ "ctrl+shift+7" ] }, { "command": "newTabProfile7", "keys": [ "ctrl+shift+8" ] }, { "command": "newTabProfile8", "keys": [ "ctrl+shift+9" ] }, { "command": "nextTab", "keys": [ "ctrl+tab" ] }, { "command": "prevTab", "keys": [ "ctrl+shift+tab" ] }, { "command": "openSettings", "keys": [ "ctrl+," ] }, { "command": "scrollDown", "keys": [ "ctrl+shift+down" ] }, { "command": "scrollDownPage", "keys": [ "ctrl+shift+pgdn" ] }, { "command": "scrollUp", "keys": [ "ctrl+shift+up" ] }, { "command": "scrollUpPage", "keys": [ "ctrl+shift+pgup" ] }, { "command": "switchToTab0", "keys": [ "ctrl+1" ] }, { "command": "switchToTab1", "keys": [ "ctrl+2" ] }, { "command": "switchToTab2", "keys": [ "ctrl+3" ] }, { "command": "switchToTab3", "keys": [ "ctrl+4" ] }, { "command": "switchToTab4", "keys": [ "ctrl+5" ] }, { "command": "switchToTab5", "keys": [ "ctrl+6" ] }, { "command": "switchToTab6", "keys": [ "ctrl+7" ] }, { "command": "switchToTab7", "keys": [ "ctrl+8" ] }, { "command": "switchToTab8", "keys": [ "ctrl+9" ] } ], ``` And I just mean getting rid of the terribly redundant white space so that all the keys fit on screen at the same time ... not the fact that these key defaults are clearly superior (who's idea was it to use ALT for switching tabs, anyway?).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1829