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

113 lines
2.4 KiB
YAML
Raw Normal View History

2022-04-11 18:34:09 +00:00
syntax:
HashTag:
firstCharacters:
- "#"
regex: "#[A-Za-z\\.]+"
styles:
color: blue
AtMention:
firstCharacters:
- "@"
regex: "@[A-Za-z\\.]+"
styles:
color: blue
NakedURL:
2022-04-11 18:34:09 +00:00
firstCharacters:
- "h"
regex: "https?:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}([-a-zA-Z0-9()@:%_\\+.~#?&=\\/]*)"
styles:
color: "#0330cb"
textDecoration: underline
2022-03-27 09:26:13 +00:00
functions:
2022-03-28 13:25:05 +00:00
clearPageIndex:
path: "./page.ts:clearPageIndex"
env: server
events:
- page:saved
- page:deleted
pageQueryProvider:
path: ./page.ts:pageQueryProvider
events:
- query:page
2022-03-27 09:26:13 +00:00
indexLinks:
path: "./page.ts:indexLinks"
events:
- page:index
linkQueryProvider:
path: ./page.ts:linkQueryProvider
events:
- query:link
2022-03-29 15:02:28 +00:00
indexItems:
path: "./item.ts:indexItems"
events:
- page:index
itemQueryProvider:
path: ./item.ts:queryProvider
events:
- query:item
2022-03-27 09:26:13 +00:00
deletePage:
path: "./page.ts:deletePage"
command:
name: "Page: Delete"
2022-03-28 13:25:05 +00:00
reindexSpaceCommand:
path: "./page.ts:reindexCommand"
command:
name: "Space: Reindex"
reindexSpace:
path: "./page.ts:reindexSpace"
env: server
2022-03-27 09:26:13 +00:00
renamePage:
path: "./page.ts:renamePage"
command:
name: "Page: Rename"
2022-04-10 09:04:07 +00:00
mac: Cmd-Alt-r
key: Ctrl-Alt-r
2022-03-27 09:26:13 +00:00
pageComplete:
2022-03-29 10:13:46 +00:00
path: "./page.ts:pageComplete"
events:
- page:complete
2022-03-27 09:26:13 +00:00
linkNavigate:
path: "./navigate.ts:linkNavigate"
command:
name: Navigate To page
key: Ctrl-Enter
mac: Cmd-Enter
clickNavigate:
path: "./navigate.ts:clickNavigate"
events:
- page:click
insertToday:
path: "./dates.ts:insertToday"
slashCommand:
name: today
2022-04-10 09:04:07 +00:00
insertTomorrow:
path: "./dates.ts:insertTomorrow"
slashCommand:
name: tomorrow
2022-04-11 18:34:09 +00:00
parseServerCommand:
path: ./page.ts:parseServerPageCommand
2022-03-29 15:02:28 +00:00
command:
2022-04-11 18:34:09 +00:00
name: "Debug: Parse Document on Server"
parsePage:
2022-04-09 12:28:41 +00:00
path: ./page.ts:parsePage
2022-04-11 18:34:09 +00:00
parseCommand:
path: ./page.ts:parsePageCommand
2022-04-09 12:28:41 +00:00
command:
2022-04-11 18:34:09 +00:00
name: "Debug: Parse Document"
instantiateTemplateCommand:
path: ./template.ts:instantiateTemplateCommand
command:
name: "Template: Instantiate for Page"
instantiateTemplate:
path: ./template.ts:instantiateTemplate
env: server
replaceTemplateVarsCommand:
path: ./template.ts:replaceTemplateVarsCommand
command:
name: "Template: Replace Variables"