silverbullet/plugs/query/query.plug.yaml

54 lines
992 B
YAML

name: query
functions:
# API
queryParsed:
path: api.ts:queryParsed
query:
path: api.ts:query
renderQuery:
path: api.ts:renderQuery
env: server
queryWidget:
path: widget.ts:widget
codeWidget: query
renderMode: markdown
# Query widget buttons
editButton:
path: widget.ts:editButton
bakeButton:
path: widget.ts:bakeButton
lintQuery:
path: lint.ts:lintQuery
events:
- editor:lint
queryComplete:
path: complete.ts:queryComplete
events:
- editor:complete
queryAttributeComplete:
path: complete.ts:queryAttributeComplete
events:
- editor:complete
languageComplete:
path: complete.ts:languageComplete
events:
- editor:complete
refreshAllWidgets:
path: widget.ts:refreshAllWidgets
command:
name: "Live Queries and Templates: Refresh All"
key: "Alt-q"
bakeAllWidgets:
path: widget.ts:bakeAllWidgets
command:
name: "Page: Bake live blocks"