Skip to content

Try to flow together JSON serialization for keybindings #1378

@Jaykul

Description

@Jaykul

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?).

Metadata

Metadata

Assignees

Labels

Area-SettingsIssues related to settings and customizability, for console or terminalIssue-TaskIt's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions