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": {
|
|
|
|
"invoke": "link_navigate",
|
|
|
|
"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-25 14:34:00 +00:00
|
|
|
"invoke": "insert_nice_date",
|
|
|
|
"slashCommand": "/insert-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-26 12:26:31 +00:00
|
|
|
"app:ready": ["welcome"],
|
|
|
|
"page:click": ["click"]
|
2022-02-26 11:59:16 +00:00
|
|
|
},
|
2022-02-24 16:24:49 +00:00
|
|
|
"functions": {
|
2022-02-26 11:59:16 +00:00
|
|
|
"welcome": {
|
|
|
|
"path": "./welcome.ts"
|
|
|
|
},
|
2022-02-26 12:26:31 +00:00
|
|
|
"click": {
|
|
|
|
"path": "./click.ts"
|
|
|
|
},
|
2022-02-24 16:24:49 +00:00
|
|
|
"word_count_command": {
|
|
|
|
"path": "./word_count_command.ts:wordCount"
|
|
|
|
},
|
|
|
|
"link_navigate": {
|
|
|
|
"path": "./link_navigate.ts:linkNavigate"
|
|
|
|
},
|
|
|
|
"insert_nice_date": {
|
|
|
|
"path": "./dates.ts:insertToday"
|
|
|
|
},
|
|
|
|
"toggle_h1": {
|
|
|
|
"path": "./markup.ts:toggleH1"
|
|
|
|
},
|
|
|
|
"toggle_h2": {
|
|
|
|
"path": "./markup.ts:toggleH2"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|