1
0
silverbullet/plugs/core/core.plug.json
2022-03-21 15:21:34 +01:00

95 lines
2.0 KiB
JSON

{
"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"],
"page:index": ["indexLinks"],
"load": ["welcome"]
},
"endpoints": [
{
"method": "GET",
"path": "/",
"handler": "endpointTest"
}
]
},
"functions": {
"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"
},
"pageComplete": {
"path": "./navigate.ts:pageComplete"
},
"linkNavigate": {
"path": "./navigate.ts:linkNavigate"
},
"clickNavigate": {
"path": "./navigate.ts:clickNavigate"
},
"taskToggle": {
"path": "./task.ts:taskToggle"
},
"insertToday": {
"path": "./dates.ts:insertToday"
},
"toggle_h1": {
"path": "./markup.ts:toggleH1"
},
"toggle_h2": {
"path": "./markup.ts:toggleH2"
},
"endpointTest": {
"path": "./server.ts:endpointTest"
},
"welcome": {
"path": "./server.ts:welcome"
}
}
}