mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
added keymap style to the command line
This commit is contained in:
parent
c70e1f62ea
commit
437d62f30c
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue