convert to vim9
This commit is contained in:
@@ -78,6 +78,14 @@ template = "default.md"
|
||||
#[group."<NAME>".extra]
|
||||
#key = "value"
|
||||
|
||||
[group.daily]
|
||||
paths = ["daily"]
|
||||
|
||||
[group.daily.note]
|
||||
# %Y-%m-%d is actually the default format, so you could use {{format-date now}} instead.
|
||||
filename = "{{format-date now '%Y%m%d'}}"
|
||||
extension = "md"
|
||||
template = "daily.md"
|
||||
|
||||
# MARKDOWN SETTINGS
|
||||
[format.markdown]
|
||||
@@ -175,6 +183,7 @@ ls = 'zk edit --interactive "$@"'
|
||||
|
||||
# Default flags for an existing command.
|
||||
#list = "zk list --quiet $@"
|
||||
edit = 'zk edit --interactive "$@"'
|
||||
|
||||
# Edit the last modified note.
|
||||
#editlast = "zk edit --limit 1 --sort modified- $@"
|
||||
@@ -183,6 +192,8 @@ ls = 'zk edit --interactive "$@"'
|
||||
# This alias doesn't take any argument, so we don't use $@.
|
||||
recent = "zk edit --sort created- --created-after 'last two weeks' --interactive"
|
||||
|
||||
daily = 'zk new daily "$@"'
|
||||
|
||||
# Print paths separated with colons for the notes found with the given
|
||||
# arguments. This can be useful to expand a complex search query into a flag
|
||||
# taking only paths. For example:
|
||||
|
||||
13
zk/.config/zk/templates/daily.md
Normal file
13
zk/.config/zk/templates/daily.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# {{format-date now '%Y-%m-%d'}}
|
||||
|
||||
[yesterday](daily/{{format-date (date "yesterday") '%Y-%m-%d'}}.md)
|
||||
|
||||
## goals
|
||||
- a bullet
|
||||
- another bullet
|
||||
|
||||
## tracking
|
||||
- [ ] exercise
|
||||
- [ ] dinner / logistics
|
||||
|
||||
## notes
|
||||
Reference in New Issue
Block a user