85 lines
2.0 KiB
YAML
85 lines
2.0 KiB
YAML
name: directive
|
|
requiredPermissions:
|
|
- fetch
|
|
functions:
|
|
updateDirectivesOnPageCommand:
|
|
path: ./command.ts:updateDirectivesOnPageCommand
|
|
command:
|
|
name: "Directives: Update"
|
|
key: "Alt-q"
|
|
events:
|
|
- editor:pageLoaded
|
|
updateDirectivesInSpace:
|
|
path: ./command.ts:updateDirectivesInSpace
|
|
updateDirectivesInSpaceCommand:
|
|
path: ./command.ts:updateDirectivesInSpaceCommand
|
|
command:
|
|
name: "Directives: Update Entire Space"
|
|
processUpdateQueue:
|
|
path: ./command.ts:processUpdateQueue
|
|
mqSubscriptions:
|
|
- queue: directiveUpdateQueue
|
|
batchSize: 3
|
|
indexData:
|
|
path: ./data.ts:indexData
|
|
events:
|
|
- page:index
|
|
dataQueryProvider:
|
|
path: ./data.ts:queryProvider
|
|
events:
|
|
- query:data
|
|
queryComplete:
|
|
path: ./complete.ts:queryComplete
|
|
events:
|
|
- editor:complete
|
|
handlebarHelperComplete:
|
|
path: ./complete.ts:templateVariableComplete
|
|
events:
|
|
- editor:complete
|
|
|
|
# Templates
|
|
insertQuery:
|
|
redirect: template.insertTemplateText
|
|
slashCommand:
|
|
name: query
|
|
description: Insert a query
|
|
value: |
|
|
<!-- #query |^| -->
|
|
|
|
<!-- /query -->
|
|
insertInclude:
|
|
redirect: template.insertTemplateText
|
|
slashCommand:
|
|
name: include
|
|
description: Include another page
|
|
value: |
|
|
<!-- #include [[|^|]] -->
|
|
|
|
<!-- /include -->
|
|
insertUseTemplate:
|
|
redirect: template.insertTemplateText
|
|
slashCommand:
|
|
name: use
|
|
description: Use a template
|
|
value: |
|
|
<!-- #use [[|^|]] {} -->
|
|
|
|
<!-- /use -->
|
|
insertUseVerboseTemplate:
|
|
redirect: template.insertTemplateText
|
|
slashCommand:
|
|
name: use-verbose
|
|
description: Use a template (verbose mode)
|
|
value: |
|
|
<!-- #use-verbose [[|^|]] {} -->
|
|
|
|
<!-- /use-verbose -->
|
|
insertEvalTemplate:
|
|
redirect: template.insertTemplateText
|
|
slashCommand:
|
|
name: eval
|
|
description: Evaluate a JavaScript expression
|
|
value: |
|
|
<!-- #eval |^| -->
|
|
|
|
<!-- /eval --> |