2022-04-26 17:04:36 +00:00
|
|
|
name: core
|
2022-04-11 18:34:09 +00:00
|
|
|
syntax:
|
2022-07-04 09:38:05 +00:00
|
|
|
Hashtag:
|
|
|
|
firstCharacters:
|
|
|
|
- "#"
|
2022-07-08 07:50:26 +00:00
|
|
|
regex: "#[^#\\d\\s]+\\w+"
|
2022-08-29 14:16:55 +00:00
|
|
|
className: sb-hashtag
|
2022-04-12 11:33:07 +00:00
|
|
|
NakedURL:
|
2022-04-11 18:34:09 +00:00
|
|
|
firstCharacters:
|
|
|
|
- "h"
|
|
|
|
regex: "https?:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}([-a-zA-Z0-9()@:%_\\+.~#?&=\\/]*)"
|
2022-08-29 14:16:55 +00:00
|
|
|
className: sb-naked-url
|
2022-07-18 14:44:43 +00:00
|
|
|
CommandLink:
|
|
|
|
firstCharacters:
|
|
|
|
- "{"
|
|
|
|
regex: "\\{\\[[^\\]]+\\]\\}"
|
2022-08-29 14:16:55 +00:00
|
|
|
className: sb-command-link
|
2022-08-30 08:44:20 +00:00
|
|
|
NamedAnchor:
|
|
|
|
firstCharacters:
|
|
|
|
- "@"
|
|
|
|
regex: "@[a-zA-Z\\.\\-\\/]+[\\w\\.\\-\\/]*"
|
|
|
|
className: sb-named-anchor
|
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
|
2022-04-19 14:54:47 +00:00
|
|
|
pageQueryProvider:
|
|
|
|
path: ./page.ts:pageQueryProvider
|
|
|
|
events:
|
|
|
|
- query:page
|
2022-04-20 08:56:43 +00:00
|
|
|
parseIndexTextRepublish:
|
|
|
|
path: "./page.ts:parseIndexTextRepublish"
|
|
|
|
events:
|
|
|
|
- page:index_text
|
2022-06-28 12:14:15 +00:00
|
|
|
reindexSpaceCommand:
|
|
|
|
path: "./page.ts:reindexCommand"
|
|
|
|
command:
|
|
|
|
name: "Space: Reindex"
|
|
|
|
reindexSpace:
|
|
|
|
path: "./page.ts:reindexSpace"
|
|
|
|
env: server
|
2022-07-04 09:52:09 +00:00
|
|
|
deletePage:
|
|
|
|
path: "./page.ts:deletePage"
|
|
|
|
command:
|
|
|
|
name: "Page: Delete"
|
|
|
|
# Backlinks
|
2022-03-27 09:26:13 +00:00
|
|
|
indexLinks:
|
|
|
|
path: "./page.ts:indexLinks"
|
|
|
|
events:
|
|
|
|
- page:index
|
2022-04-19 14:54:47 +00:00
|
|
|
linkQueryProvider:
|
|
|
|
path: ./page.ts:linkQueryProvider
|
|
|
|
events:
|
|
|
|
- query:link
|
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-07-04 09:52:09 +00:00
|
|
|
|
2022-03-27 09:26:13 +00:00
|
|
|
pageComplete:
|
2022-03-29 10:13:46 +00:00
|
|
|
path: "./page.ts:pageComplete"
|
2022-04-19 14:54:47 +00:00
|
|
|
events:
|
|
|
|
- page:complete
|
2022-07-04 09:52:09 +00:00
|
|
|
|
2022-09-06 12:36:06 +00:00
|
|
|
# Commands
|
|
|
|
commandComplete:
|
|
|
|
path: "./command.ts:commandComplete"
|
|
|
|
events:
|
|
|
|
- page:complete
|
|
|
|
|
2022-07-08 07:50:26 +00:00
|
|
|
# Item indexing
|
|
|
|
indexItem:
|
|
|
|
path: "./item.ts:indexItems"
|
|
|
|
events:
|
|
|
|
- page:index
|
|
|
|
itemQueryProvider:
|
|
|
|
path: "./item.ts:queryProvider"
|
|
|
|
events:
|
|
|
|
- query:item
|
|
|
|
|
2022-07-04 09:52:09 +00:00
|
|
|
# Navigation
|
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
|
2022-07-04 09:52:09 +00:00
|
|
|
navigateHome:
|
|
|
|
path: "./navigate.ts:navigateCommand"
|
|
|
|
command:
|
|
|
|
name: "Navigate: Home"
|
|
|
|
key: "Alt-h"
|
2022-08-02 10:43:39 +00:00
|
|
|
page: ""
|
2022-06-28 12:14:15 +00:00
|
|
|
|
2022-07-04 09:38:05 +00:00
|
|
|
# Hashtags
|
|
|
|
indexTags:
|
|
|
|
path: "./tags.ts:indexTags"
|
|
|
|
events:
|
|
|
|
- page:index
|
|
|
|
tagComplete:
|
|
|
|
path: "./tags.ts:tagComplete"
|
|
|
|
events:
|
|
|
|
- page:complete
|
2022-07-04 13:43:34 +00:00
|
|
|
tagProvider:
|
|
|
|
path: "./tags.ts:tagProvider"
|
|
|
|
events:
|
|
|
|
- query:tag
|
2022-07-04 09:38:05 +00:00
|
|
|
|
2022-08-30 08:44:20 +00:00
|
|
|
# Anchors
|
|
|
|
indexAnchors:
|
|
|
|
path: "./anchor.ts:indexAnchors"
|
|
|
|
events:
|
|
|
|
- page:index
|
|
|
|
anchorComplete:
|
|
|
|
path: "./anchor.ts:anchorComplete"
|
|
|
|
events:
|
|
|
|
- page:complete
|
|
|
|
|
2022-06-28 12:14:15 +00:00
|
|
|
# Full text search
|
|
|
|
searchIndex:
|
|
|
|
path: ./search.ts:index
|
2022-05-11 18:10:45 +00:00
|
|
|
events:
|
2022-06-28 12:14:15 +00:00
|
|
|
- page:index
|
|
|
|
searchUnindex:
|
|
|
|
path: "./search.ts:unindex"
|
|
|
|
env: server
|
|
|
|
events:
|
|
|
|
- page:deleted
|
|
|
|
searchQueryProvider:
|
|
|
|
path: ./search.ts:queryProvider
|
|
|
|
events:
|
|
|
|
- query:full-text
|
|
|
|
searchCommand:
|
|
|
|
path: ./search.ts:searchCommand
|
|
|
|
command:
|
|
|
|
name: "Search Space"
|
|
|
|
key: Ctrl-Shift-f
|
|
|
|
mac: Cmd-Shift-f
|
|
|
|
readPageSearch:
|
|
|
|
path: ./search.ts:readPageSearch
|
|
|
|
pageNamespace:
|
2022-09-02 13:41:40 +00:00
|
|
|
pattern: "🔍 .+"
|
2022-09-12 12:50:37 +00:00
|
|
|
operation: readFile
|
2022-06-28 12:14:15 +00:00
|
|
|
getPageMetaSearch:
|
|
|
|
path: ./search.ts:getPageMetaSearch
|
|
|
|
pageNamespace:
|
2022-09-02 13:41:40 +00:00
|
|
|
pattern: "🔍 .+"
|
2022-09-12 12:50:37 +00:00
|
|
|
operation: getFileMeta
|
2022-06-28 12:14:15 +00:00
|
|
|
|
|
|
|
# Template commands
|
2022-05-06 16:55:04 +00:00
|
|
|
insertPageMeta:
|
2022-07-04 13:07:27 +00:00
|
|
|
path: "./template.ts:insertTemplateText"
|
2022-05-06 16:55:04 +00:00
|
|
|
slashCommand:
|
|
|
|
name: meta
|
2022-09-06 09:30:54 +00:00
|
|
|
description: Insert a page metadata block
|
2022-07-04 13:07:27 +00:00
|
|
|
value: |
|
|
|
|
```meta
|
|
|
|
|^|
|
|
|
|
```
|
|
|
|
insertTask:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
|
|
|
slashCommand:
|
|
|
|
name: task
|
2022-07-04 13:51:04 +00:00
|
|
|
description: Insert a task
|
2022-07-04 13:07:27 +00:00
|
|
|
value: "* [ ] |^|"
|
|
|
|
insertQuery:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
|
|
|
slashCommand:
|
|
|
|
name: query
|
2022-09-06 09:30:54 +00:00
|
|
|
description: Insert a query
|
2022-07-04 13:07:27 +00:00
|
|
|
value: |
|
|
|
|
<!-- #query |^| -->
|
|
|
|
|
|
|
|
<!-- /query -->
|
2022-07-25 14:51:46 +00:00
|
|
|
insertInclude:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
|
|
|
slashCommand:
|
|
|
|
name: include
|
2022-08-09 13:37:47 +00:00
|
|
|
description: Include another page
|
2022-07-25 14:51:46 +00:00
|
|
|
value: |
|
2022-08-09 13:37:47 +00:00
|
|
|
<!-- #include [[|^|]] -->
|
2022-07-25 14:51:46 +00:00
|
|
|
|
|
|
|
<!-- /include -->
|
2022-08-09 13:37:47 +00:00
|
|
|
insertInjectTemplate:
|
2022-07-25 14:51:46 +00:00
|
|
|
path: "./template.ts:insertTemplateText"
|
|
|
|
slashCommand:
|
2022-08-10 07:18:11 +00:00
|
|
|
name: use
|
|
|
|
description: Use a template
|
2022-07-25 14:51:46 +00:00
|
|
|
value: |
|
2022-08-10 07:18:11 +00:00
|
|
|
<!-- #use [[|^|]] {} -->
|
2022-07-25 14:51:46 +00:00
|
|
|
|
2022-08-10 07:18:11 +00:00
|
|
|
<!-- /use -->
|
2022-08-09 13:37:47 +00:00
|
|
|
insertInjectCleanTemplate:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
|
|
|
slashCommand:
|
2022-08-10 07:18:11 +00:00
|
|
|
name: use-verbose
|
|
|
|
description: Use a template (verbose mode)
|
2022-08-09 13:37:47 +00:00
|
|
|
value: |
|
2022-08-10 07:18:11 +00:00
|
|
|
<!-- #use-verbose [[|^|]] {} -->
|
2022-08-09 13:37:47 +00:00
|
|
|
|
2022-08-10 07:18:11 +00:00
|
|
|
<!-- /use-verbose -->
|
2022-08-09 13:37:47 +00:00
|
|
|
insertHRTemplate:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
|
|
|
slashCommand:
|
|
|
|
name: hr
|
|
|
|
description: Insert a horizontal rule
|
|
|
|
value: "---"
|
2022-05-06 16:55:04 +00:00
|
|
|
quickNoteCommand:
|
|
|
|
path: ./template.ts:quickNoteCommand
|
|
|
|
command:
|
2022-07-06 10:18:33 +00:00
|
|
|
name: "Quick Note"
|
2022-05-06 16:55:04 +00:00
|
|
|
key: "Alt-Shift-n"
|
2022-07-06 10:18:33 +00:00
|
|
|
priority: 1
|
|
|
|
dailyNoteCommand:
|
|
|
|
path: ./template.ts:dailyNoteCommand
|
|
|
|
command:
|
|
|
|
name: "Open Daily Note"
|
|
|
|
key: "Alt-Shift-d"
|
2022-07-04 13:07:27 +00:00
|
|
|
|
2022-04-13 12:46:52 +00:00
|
|
|
instantiateTemplateCommand:
|
|
|
|
path: ./template.ts:instantiateTemplateCommand
|
|
|
|
command:
|
2022-07-04 13:07:27 +00:00
|
|
|
name: "Template: Instantiate Page"
|
|
|
|
insertSnippet:
|
|
|
|
path: ./template.ts:insertSnippet
|
|
|
|
command:
|
|
|
|
name: "Template: Insert Snippet"
|
|
|
|
slashCommand:
|
|
|
|
name: snippet
|
|
|
|
description: Insert a snippet
|
|
|
|
insertTodayCommand:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
2022-06-28 12:14:15 +00:00
|
|
|
slashCommand:
|
|
|
|
name: today
|
2022-07-04 13:07:27 +00:00
|
|
|
description: Insert today's date
|
|
|
|
value: "{{today}}"
|
|
|
|
insertTomorrowCommand:
|
|
|
|
path: "./template.ts:insertTemplateText"
|
2022-06-28 12:14:15 +00:00
|
|
|
slashCommand:
|
|
|
|
name: tomorrow
|
2022-07-04 13:07:27 +00:00
|
|
|
description: Insert tomorrow's date
|
|
|
|
value: "{{tomorrow}}"
|
2022-06-23 15:08:42 +00:00
|
|
|
|
2022-06-28 12:14:15 +00:00
|
|
|
# Text editing commands
|
2022-07-04 13:07:27 +00:00
|
|
|
quoteSelectionCommand:
|
2022-06-23 15:08:42 +00:00
|
|
|
path: ./text.ts:quoteSelection
|
|
|
|
command:
|
|
|
|
name: "Text: Quote Selection"
|
2022-07-04 13:51:04 +00:00
|
|
|
key: "Ctrl-Shift-."
|
2022-06-23 15:08:42 +00:00
|
|
|
mac: "Cmd-Shift-."
|
2022-06-23 15:59:18 +00:00
|
|
|
listifySelection:
|
|
|
|
path: ./text.ts:listifySelection
|
|
|
|
command:
|
|
|
|
name: "Text: Listify Selection"
|
|
|
|
numberListifySelection:
|
|
|
|
path: ./text.ts:numberListifySelection
|
|
|
|
command:
|
|
|
|
name: "Text: Number Listify Selection"
|
2022-07-10 15:51:34 +00:00
|
|
|
linkSelection:
|
|
|
|
path: ./text.ts:linkSelection
|
|
|
|
command:
|
|
|
|
name: "Text: Link Selection"
|
|
|
|
key: "Ctrl-Shift-k"
|
|
|
|
mac: "Cmd-Shift-k"
|
2022-06-23 15:08:42 +00:00
|
|
|
bold:
|
2022-07-04 13:07:27 +00:00
|
|
|
path: ./text.ts:wrapSelection
|
2022-06-23 15:08:42 +00:00
|
|
|
command:
|
|
|
|
name: "Text: Bold"
|
|
|
|
key: "Ctrl-b"
|
|
|
|
mac: "Cmd-b"
|
2022-07-04 13:07:27 +00:00
|
|
|
wrapper: "**"
|
2022-06-23 15:08:42 +00:00
|
|
|
italic:
|
2022-07-04 13:07:27 +00:00
|
|
|
path: ./text.ts:wrapSelection
|
2022-06-23 15:08:42 +00:00
|
|
|
command:
|
|
|
|
name: "Text: Italic"
|
|
|
|
key: "Ctrl-i"
|
|
|
|
mac: "Cmd-i"
|
2022-07-04 13:07:27 +00:00
|
|
|
wrapper: "_"
|
|
|
|
marker:
|
|
|
|
path: ./text.ts:wrapSelection
|
|
|
|
command:
|
|
|
|
name: "Text: Marker"
|
|
|
|
key: "Alt-m"
|
|
|
|
wrapper: "=="
|
2022-06-28 12:14:15 +00:00
|
|
|
|
|
|
|
# Plug manager
|
|
|
|
updatePlugsCommand:
|
|
|
|
path: ./plugmanager.ts:updatePlugsCommand
|
|
|
|
command:
|
|
|
|
name: "Plugs: Update"
|
|
|
|
key: "Ctrl-Shift-p"
|
|
|
|
mac: "Cmd-Shift-p"
|
|
|
|
updatePlugs:
|
|
|
|
path: ./plugmanager.ts:updatePlugs
|
|
|
|
env: server
|
2022-06-29 13:02:53 +00:00
|
|
|
getPlugHTTPS:
|
|
|
|
path: "./plugmanager.ts:getPlugHTTPS"
|
|
|
|
events:
|
|
|
|
- get-plug:https
|
|
|
|
getPlugGithub:
|
|
|
|
path: "./plugmanager.ts:getPlugGithub"
|
|
|
|
events:
|
|
|
|
- get-plug:github
|
2022-07-23 18:57:59 +00:00
|
|
|
getPlugGithubRelease:
|
|
|
|
path: "./plugmanager.ts:getPlugGithubRelease"
|
|
|
|
events:
|
|
|
|
- get-plug:ghr
|
2022-06-28 12:14:15 +00:00
|
|
|
# Debug commands
|
|
|
|
parseCommand:
|
|
|
|
path: ./debug.ts:parsePageCommand
|
|
|
|
command:
|
|
|
|
name: "Debug: Parse Document"
|
|
|
|
showLogsCommand:
|
|
|
|
path: ./debug.ts:showLogsCommand
|
|
|
|
command:
|
|
|
|
name: "Debug: Show Logs"
|
|
|
|
key: "Ctrl-Alt-l"
|
|
|
|
mac: "Cmd-Alt-l"
|
|
|
|
events:
|
|
|
|
- log:reload
|
|
|
|
hideBhsCommand:
|
|
|
|
path: ./debug.ts:hideBhsCommand
|
|
|
|
command:
|
|
|
|
name: "UI: Hide BHS"
|
|
|
|
key: "Ctrl-Alt-b"
|
|
|
|
mac: "Cmd-Alt-b"
|
2022-07-30 11:39:40 +00:00
|
|
|
|
|
|
|
# Link unfurl infrastructure
|
|
|
|
unfurlLink:
|
|
|
|
path: ./link.ts:unfurlCommand
|
|
|
|
command:
|
|
|
|
name: "Link: Unfurl"
|
|
|
|
key: "Ctrl-Shift-u"
|
|
|
|
mac: "Cmd-Shift-u"
|
|
|
|
contexts:
|
|
|
|
- NakedURL
|
|
|
|
unfurlExec:
|
|
|
|
env: server
|
|
|
|
path: ./link.ts:unfurlExec
|
|
|
|
|
|
|
|
# Title-based link unfurl
|
|
|
|
titleUnfurlOptions:
|
|
|
|
path: ./link.ts:titleUnfurlOptions
|
|
|
|
events:
|
|
|
|
- unfurl:options
|
|
|
|
titleUnfurl:
|
|
|
|
path: ./link.ts:titleUnfurl
|
|
|
|
events:
|
|
|
|
- unfurl:title-unfurl
|
2022-08-01 09:04:48 +00:00
|
|
|
|
|
|
|
# Random stuff
|
|
|
|
statsCommand:
|
|
|
|
path: ./stats.ts:statsCommand
|
|
|
|
command:
|
|
|
|
name: "Stats: Show"
|
2022-09-02 13:41:40 +00:00
|
|
|
key: "Ctrl-s"
|
|
|
|
mac: "Cmd-s"
|
|
|
|
|
|
|
|
# Cloud pages
|
|
|
|
readPageCloud:
|
2022-09-12 12:50:37 +00:00
|
|
|
path: ./cloud.ts:readFileCloud
|
2022-09-02 13:41:40 +00:00
|
|
|
pageNamespace:
|
|
|
|
pattern: "💭 .+"
|
2022-09-12 12:50:37 +00:00
|
|
|
operation: readFile
|
2022-09-02 13:41:40 +00:00
|
|
|
getPageMetaCloud:
|
2022-09-12 12:50:37 +00:00
|
|
|
path: ./cloud.ts:getFileMetaCloud
|
2022-09-02 13:41:40 +00:00
|
|
|
pageNamespace:
|
|
|
|
pattern: "💭 .+"
|
2022-09-12 12:50:37 +00:00
|
|
|
operation: getFileMeta
|