2022-02-24 16:24:49 +00:00
|
|
|
{
|
|
|
|
"commands": {
|
|
|
|
"Count Words": {
|
2022-02-26 12:26:31 +00:00
|
|
|
"invoke": "word_count_command"
|
2022-02-24 16:24:49 +00:00
|
|
|
},
|
|
|
|
"Navigate To page": {
|
2022-02-27 09:17:43 +00:00
|
|
|
"invoke": "linkNavigate",
|
2022-02-24 16:24:49 +00:00
|
|
|
"key": "Ctrl-Enter",
|
2022-02-26 12:26:31 +00:00
|
|
|
"mac": "Cmd-Enter"
|
2022-02-24 16:24:49 +00:00
|
|
|
},
|
|
|
|
"Insert Current Date": {
|
2022-02-26 16:50:50 +00:00
|
|
|
"invoke": "insertToday",
|
|
|
|
"slashCommand": "/today"
|
2022-02-24 16:24:49 +00:00
|
|
|
},
|
|
|
|
"Toggle : Heading 1": {
|
|
|
|
"invoke": "toggle_h1",
|
|
|
|
"mac": "Cmd-1",
|
|
|
|
"key": "Ctrl-1"
|
|
|
|
},
|
|
|
|
"Toggle : Heading 2": {
|
|
|
|
"invoke": "toggle_h2",
|
|
|
|
"mac": "Cmd-2",
|
|
|
|
"key": "Ctrl-2"
|
|
|
|
}
|
|
|
|
},
|
2022-02-26 11:59:16 +00:00
|
|
|
"events": {
|
2022-02-27 09:17:43 +00:00
|
|
|
"page:click": ["taskToggle", "clickNavigate"],
|
|
|
|
"editor:complete": ["pageComplete"]
|
2022-02-26 11:59:16 +00:00
|
|
|
},
|
2022-02-24 16:24:49 +00:00
|
|
|
"functions": {
|
2022-02-27 09:17:43 +00:00
|
|
|
"pageComplete": {
|
|
|
|
"path": "./navigate.ts:pageComplete"
|
|
|
|
},
|
2022-02-26 16:50:50 +00:00
|
|
|
"linkNavigate": {
|
|
|
|
"path": "./navigate.ts:linkNavigate"
|
2022-02-26 11:59:16 +00:00
|
|
|
},
|
2022-02-26 16:50:50 +00:00
|
|
|
"clickNavigate": {
|
|
|
|
"path": "./navigate.ts:clickNavigate"
|
|
|
|
},
|
|
|
|
"taskToggle": {
|
|
|
|
"path": "./task.ts:taskToggle"
|
2022-02-26 12:26:31 +00:00
|
|
|
},
|
2022-02-24 16:24:49 +00:00
|
|
|
"word_count_command": {
|
|
|
|
"path": "./word_count_command.ts:wordCount"
|
|
|
|
},
|
2022-02-26 16:50:50 +00:00
|
|
|
"insertToday": {
|
2022-02-24 16:24:49 +00:00
|
|
|
"path": "./dates.ts:insertToday"
|
|
|
|
},
|
|
|
|
"toggle_h1": {
|
|
|
|
"path": "./markup.ts:toggleH1"
|
|
|
|
},
|
|
|
|
"toggle_h2": {
|
|
|
|
"path": "./markup.ts:toggleH2"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|