1
0
silverbullet/plugs/query/query.plug.yaml

55 lines
1.1 KiB
YAML
Raw Normal View History

name: query
functions:
queryWidget:
path: query.ts:widget
codeWidget: query
templateWidget:
path: template.ts:widget
codeWidget: template
queryComplete:
path: complete.ts:queryComplete
events:
- editor:complete
2023-10-04 15:14:24 +00:00
languageComplete:
path: complete.ts:languageComplete
events:
- editor:complete
2023-11-15 09:08:21 +00:00
refreshAllWidgets:
path: widget.ts:refreshAll
command:
name: "Live Queries and Templates: Refresh All"
key: "Alt-q"
# Slash commands
insertQuery:
redirect: template.insertTemplateText
slashCommand:
name: query
description: Insert a query
value: |
```query
|^|
```
insertInclude:
redirect: template.insertTemplateText
slashCommand:
name: include
description: Include another page
value: |
<!-- #include [[|^|]] -->
<!-- /include -->
insertUseTemplate:
redirect: template.insertTemplateText
slashCommand:
name: template
description: Use a template
value: |
```template
page: "[[|^|]]"
```