bnason
(Brandon Nason)
February 28, 2024, 8:12pm
1
Put this in Library/Custom/Notes
or wherever you store custom space scripts
silverbullet.registerCommand({ name: 'Notes: Today' }, async () => {
const today = Temporal.Now.plainDateISO().toString()
syscall('editor.navigate', `Notes/${today}`)
})
In SETTINGS
- icon: calendar
command: '{[Notes: Today]}'
description: "Open todays notes"
5 Likes
aacid
(Oliver C)
July 1, 2024, 11:47am
2
Hi, pretty new here, I think I solved same problem with different solution, not sure which one is better, just want to share and possibly discuss advantages/dissadvantages.
---
tags: template
hooks.newPage:
suggestedName: "Notes/{{today}}"
confirmName: false
openIfExists: true
forPrefix: "daily"
command: "Daily Note"
key: "Alt-Shift-d"
---
2 Likes