Preparing for 0.5.6
This commit is contained in:
@@ -2,9 +2,13 @@ An attempt at documenting the changes/new features introduced in each
|
||||
release.
|
||||
|
||||
---
|
||||
## Next
|
||||
## 0.5.6
|
||||
* Various optimization and bug fixes
|
||||
* Experimental idea: [[Template Sets]]
|
||||
* The `Alt-Shift-n` key was previously bound to both {[Page: New]} and {[Quick Note]}. That won’t work, so now it’s just bound to {[Quick Note]}
|
||||
* The `Alt-q` command is now bound to the new {[Live Queries and Templates: Refresh All]} command refreshing all [[Live Queries]] and [[Live Templates]] on the page. This is to get y’all prepared to move away from directives.
|
||||
* It’s time to get ready for the removal of directives, and convert your entire space over using (one time operation). Please backup your space before you do: {[Directive: Convert Entire Space to Live/Templates]}
|
||||
* It’s likely that version 0.6.0 **will remove directives**, so please switch over to live queries and templates, e.g. using...
|
||||
* The new {[Directive: Convert Entire Space to Live/Templates]} command, which will (attempt) to convert all uses of directives in your space automatically (backup your space before, though, just in case)
|
||||
|
||||
|
||||
---
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ upnext
|
||||
Although you may want to render it using a template such as [[template/tasks/task] instead:
|
||||
|
||||
```query
|
||||
upnext render [[template/tasks/task]]
|
||||
upnext render [[template/task]]
|
||||
```
|
||||
|
||||
## taskstate
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
> **warning** Experimental
|
||||
> This is still an experimental idea. These templates may change, be renamed etc. prepare yourself for breakage.
|
||||
|
||||
This is an attempt at collecting useful, reusable templates so you don’t have to reinvent the wheel.
|
||||
|
||||
The most convenient ways to use them is using [[Federation]]. This will synchronize these templates into your space and make them available for use instantly.
|
||||
While you may just copy & paste these templates to your own space, the most convenient ways to use them is using [[Federation]]. This will synchronize these templates into your space and make them available for use instantly.
|
||||
|
||||
To set this up, add this to your [[SETTINGS]]:
|
||||
To set this up, add the following this to your [[SETTINGS]]:
|
||||
|
||||
```yaml
|
||||
federate:
|
||||
@@ -12,11 +15,11 @@ federate:
|
||||
If you don’t want to sync _all_ these templates, you can use more specific URIs, e.g.
|
||||
```yaml
|
||||
federate:
|
||||
- uri: silverbullet.md/template/tasks
|
||||
- uri: silverbullet.md/template/task
|
||||
```
|
||||
to just get the `tasks` stuff.
|
||||
to just get the `task` stuff.
|
||||
|
||||
To reference a template, use the federation syntax, e.g. `[[!silverbullet.md/template/tasks/task]]`.
|
||||
To reference a template, use the federation syntax, e.g. `[[!silverbullet.md/template/task]]`.
|
||||
|
||||
## Maintenance
|
||||
```query
|
||||
@@ -33,7 +36,7 @@ render [[template/documented-template]]
|
||||
```
|
||||
## Tasks
|
||||
```query
|
||||
template where name =~ /^template\/tasks/
|
||||
template where name =~ /^template\/task/
|
||||
order by order
|
||||
render [[template/documented-template]]
|
||||
```
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#template
|
||||
```query
|
||||
task where tags = "{{.}}" and done = false render [[template/tasks/task]]
|
||||
```
|
||||
@@ -1,2 +1,6 @@
|
||||
#template
|
||||
---
|
||||
tags: template
|
||||
description: generic task template that supports updating the status back in the origin page
|
||||
order: 1
|
||||
---
|
||||
* [{{state}}] [[{{ref}}]] {{name}}
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
tags: template
|
||||
description: generic task template that supports updating the status back in the origin page
|
||||
order: 1
|
||||
---
|
||||
|
||||
* [{{state}}] [[{{ref}}]] {{name}}
|
||||
+1
-1
@@ -47,7 +47,7 @@ There is a [[!silverbullet.md/template/tasks/task]] template you can use to rend
|
||||
Try it (by clicking on the checkbox inside of the directive):
|
||||
|
||||
```query
|
||||
task where page = "{{@page.name}}" and name = "Remote toggle me" render [[template/tasks/task]]
|
||||
task where page = "{{@page.name}}" and name = "Remote toggle me" render [[template/task]]
|
||||
```
|
||||
|
||||
* [ ] Remote toggle me
|
||||
|
||||
Reference in New Issue
Block a user