added keymap style to the command line

This commit is contained in:
Jack 2020-08-11 23:19:45 +01:00
parent c70e1f62ea
commit 437d62f30c

View file

@ -264,6 +264,15 @@ let commands = {
showCommandLine();
},
},
{
id: "changeKeymapStyle",
display: "Change keymap style...",
subgroup: true,
exec: () => {
currentCommands.push(commandsKeymapStyle);
showCommandLine();
},
},
{
id: "changeKeymapLayout",
display: "Change keymap layout...",
@ -389,6 +398,40 @@ let commandsCaretStyle = {
],
};
let commandsKeymapStyle = {
title: "Change keymap style...",
list: [
{
id: "setKeymapStyleStaggered",
display: "staggered",
exec: () => {
changeKeymapStyle("staggered");
},
},
{
id: "setKeymapStyleMatrix",
display: "matrix",
exec: () => {
changeKeymapStyle("matrix");
},
},
{
id: "setKeymapStyleSplit",
display: "split",
exec: () => {
changeKeymapStyle("split");
},
},
{
id: "setKeymapStyleSplitMatrix",
display: "split matrix",
exec: () => {
changeKeymapStyle("split_matrix");
},
},
],
};
let commandsTimerStyle = {
title: "Change timer/progress style...",
list: [