1
0
silverbullet/plugs/core/core.plug.json

106 lines
2.2 KiB
JSON
Raw Normal View History

2022-02-24 16:24:49 +00:00
{
2022-03-04 11:09:25 +00:00
"hooks": {
"commands": {
"Navigate To page": {
"invoke": "linkNavigate",
"key": "Ctrl-Enter",
"mac": "Cmd-Enter"
},
"Insert Current Date": {
"invoke": "insertToday",
"slashCommand": "today"
},
"Toggle : Heading 1": {
"invoke": "toggle_h1",
"mac": "Cmd-1",
"key": "Ctrl-1"
},
"Toggle : Heading 2": {
"invoke": "toggle_h2",
"mac": "Cmd-2",
"key": "Ctrl-2"
},
"Page: Delete": {
"invoke": "deletePage"
},
"Page: Rename": {
"invoke": "renamePage"
},
"Pages: Reindex": {
"invoke": "reindexPages"
},
"Pages: Back Links": {
"invoke": "showBackLinks"
}
},
"events": {
"page:click": ["taskToggle", "clickNavigate"],
"editor:complete": ["pageComplete"],
2022-03-21 14:21:34 +00:00
"page:index": ["indexLinks"],
"load": ["welcome"]
},
"endpoints": [
{
"method": "GET",
"path": "/",
"handler": "endpointTest"
}
2022-03-23 14:41:12 +00:00
],
"crons": [
{
"cron": "*/15 * * * *",
"handler": "gitSnapshot"
}
2022-03-21 14:21:34 +00:00
]
2022-02-24 16:24:49 +00:00
},
"functions": {
2022-02-28 13:35:51 +00:00
"indexLinks": {
"path": "./page.ts:indexLinks"
},
"deletePage": {
"path": "./page.ts:deletePage"
},
"showBackLinks": {
"path": "./page.ts:showBackLinks"
},
"renamePage": {
"path": "./page.ts:renamePage"
},
"reindexPages": {
"path": "./page.ts:reindex"
},
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-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"
},
2022-03-21 14:21:34 +00:00
"endpointTest": {
"path": "./server.ts:endpointTest"
},
"welcome": {
2022-03-23 14:41:12 +00:00
"path": "./server.ts:welcome",
"env": "server"
},
"gitSnapshot": {
"path": "./git.ts:commit",
"env": "server"
2022-02-24 16:24:49 +00:00
}
}
}