Go to todays notes page

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

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