gpduck / MSTerminalSettings

MIT License
118 stars 15 forks source link

Keybindings have no mapping #59

Open covamalia opened 4 years ago

covamalia commented 4 years ago

This is in relation to v2.0 branch and the current Pre-release version available from PowershellGet.

When custom keybindings are present, converting from JSON fails in the Get-MSTerminalConfig function with the error message

Exception calling "FromJson" with "1" argument(s): "Cannot unmarshal type Command"

The only way around this is to remove custom key bindings. As there are three now added in the default settings.json then these will need to be mapped. It looks like these consist of command and keys names, with command taking either a single value or a JSON object and keys taking a single value consisting of a key combination represented as a string.