88 lines
1.9 KiB
YAML
88 lines
1.9 KiB
YAML
syntax:
|
|
HashTag:
|
|
firstCharacters:
|
|
- "#"
|
|
regex: "#[A-Za-z\\.]+"
|
|
styles:
|
|
color: blue
|
|
AtMention:
|
|
firstCharacters:
|
|
- "@"
|
|
regex: "@[A-Za-z\\.]+"
|
|
styles:
|
|
color: blue
|
|
URL:
|
|
firstCharacters:
|
|
- "h"
|
|
regex: "https?:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}([-a-zA-Z0-9()@:%_\\+.~#?&=\\/]*)"
|
|
styles:
|
|
color: "#0330cb"
|
|
textDecoration: underline
|
|
functions:
|
|
clearPageIndex:
|
|
path: "./page.ts:clearPageIndex"
|
|
env: server
|
|
events:
|
|
- page:saved
|
|
- page:deleted
|
|
indexLinks:
|
|
path: "./page.ts:indexLinks"
|
|
events:
|
|
- page:index
|
|
indexItems:
|
|
path: "./item.ts:indexItems"
|
|
events:
|
|
- page:index
|
|
deletePage:
|
|
path: "./page.ts:deletePage"
|
|
command:
|
|
name: "Page: Delete"
|
|
reindexSpaceCommand:
|
|
path: "./page.ts:reindexCommand"
|
|
command:
|
|
name: "Space: Reindex"
|
|
reindexSpace:
|
|
path: "./page.ts:reindexSpace"
|
|
env: server
|
|
renamePage:
|
|
path: "./page.ts:renamePage"
|
|
command:
|
|
name: "Page: Rename"
|
|
mac: Cmd-Alt-r
|
|
key: Ctrl-Alt-r
|
|
pageComplete:
|
|
path: "./page.ts:pageComplete"
|
|
isCompleter: true
|
|
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
|
|
insertTomorrow:
|
|
path: "./dates.ts:insertTomorrow"
|
|
slashCommand:
|
|
name: tomorrow
|
|
indexDates:
|
|
path: "./dates.ts:indexDates"
|
|
events:
|
|
- page:index
|
|
parseServerCommand:
|
|
path: ./page.ts:parseServerPageCommand
|
|
command:
|
|
name: "Debug: Parse Document on Server"
|
|
parsePage:
|
|
path: ./page.ts:parsePage
|
|
parseCommand:
|
|
path: ./page.ts:parsePageCommand
|
|
command:
|
|
name: "Debug: Parse Document"
|