silverbullet/plugins/core/core.plugin.json

53 lines
1.1 KiB
JSON
Raw Normal View History

2022-02-25 00:24:49 +08:00
{
"commands": {
"Count Words": {
2022-02-26 20:26:31 +08:00
"invoke": "word_count_command"
2022-02-25 00:24:49 +08:00
},
"Navigate To page": {
"invoke": "link_navigate",
"key": "Ctrl-Enter",
2022-02-26 20:26:31 +08:00
"mac": "Cmd-Enter"
2022-02-25 00:24:49 +08:00
},
"Insert Current Date": {
2022-02-27 00:50:50 +08:00
"invoke": "insertToday",
"slashCommand": "/today"
2022-02-25 00:24:49 +08: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 19:59:16 +08:00
"events": {
2022-02-27 00:50:50 +08:00
"page:click": ["taskToggle", "clickNavigate"]
2022-02-26 19:59:16 +08:00
},
2022-02-25 00:24:49 +08:00
"functions": {
2022-02-27 00:50:50 +08:00
"linkNavigate": {
"path": "./navigate.ts:linkNavigate"
2022-02-26 19:59:16 +08:00
},
2022-02-27 00:50:50 +08:00
"clickNavigate": {
"path": "./navigate.ts:clickNavigate"
},
"taskToggle": {
"path": "./task.ts:taskToggle"
2022-02-26 20:26:31 +08:00
},
2022-02-25 00:24:49 +08:00
"word_count_command": {
"path": "./word_count_command.ts:wordCount"
},
2022-02-27 00:50:50 +08:00
"insertToday": {
2022-02-25 00:24:49 +08:00
"path": "./dates.ts:insertToday"
},
"toggle_h1": {
"path": "./markup.ts:toggleH1"
},
"toggle_h2": {
"path": "./markup.ts:toggleH2"
}
}
}