1
0
silverbullet/plugs/directive/directive.plug.yaml
2023-11-15 10:08:21 +01:00

36 lines
932 B
YAML

name: directive
requiredPermissions:
- fetch
functions:
updateDirectivesOnPageCommand:
path: ./command.ts:updateDirectivesOnPageCommand
command:
name: "Directives: Update"
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
queryComplete:
path: ./complete.ts:queryComplete
events:
- editor:complete
handlebarHelperComplete:
path: ./complete.ts:templateVariableComplete
events:
- editor:complete
# Conversion
convertToLiveQuery:
path: command.ts:convertToLive
command:
name: "Directive: Convert to Live Query/Template"