Special Notes

Dendron has built-in support for a variety of special note formats. These notes can be created using regular lookup - these commands provide convenient shortcuts for frequently used notes.

Journal Note

A journal note is a self contained note that is meant to track something over time. Examples of journals include recording workout sessions, making meeting notes, and keeping a mood journal.

To create a journal note, trigger a lookup and then click on the calendar icon, or use the Ctrl+Shift+J/Cmd+Shift+J shortcut (depending on operating system).

By default, Dendron will create the journal note with the following hierarchy {domain}.journal.{y.MM.dd}. {domain} is the domain of the current active note when you execute New Journal Note.

A reference for date formatting tokens can be found here

Scratch Note

A scratch note is a self contained note that is meant to be used as scratchpad. Use it for thoughts or when you want to expand on a bullet point. Scratch notes are created in the scratch domain and have the following format: scratch.{y.MM.dd.HHmmss}. To create a scratch note, trigger a lookup and then click the "create scratch note" icon, or use the keybind Ctrl+Shift+S/Cmd+Shift+S (depending on operating system).

Configuration

To change the keybindings used to create special notes, you can define custom shortcuts in keybindings.json that will modify the behavior of the `Lookup` command.

All special notes support the following configuration options

  • NodeType has the value of Journal or Scratch

default{NodeType}Name

Determines the node name.

Defaults:

  • Journal: journal
  • Scratch: scratch

default{NodeType}DateFormat

Determines the date format.

Defaults:

  • Journal: Y-MM-DD
  • Scratch: Y-MM-DD-HHmmss

default{NodeType}AddBehavior

Determines how note is added in relation to current hierarchy. Say you have the following schema:

schema:
    - id: pro
      parent: root
      namespace: true

Possible values:

  • childOfDomain
    • note is added as child of the domain of the current hierarchy
    • eg:
      • current open note: pro.dendron.demo.md
      • path of new journal note: pro.journal.2020-08-03.md
  • childOfDomainNamespace
    • note is added as child of the namespace of the current domain if it has a namespace. otherwise behaves the same as childOfDomain
    • eg:
      • current open note: pro.dendron.demo.md
      • path of new journal note: pro.dendron.journal.2020-08-03.md
  • childOfCurrent
    • note is added as a child of the current open note
      • current open note: pro.dendron.demo.md
      • path of new journal note: pro.dendron.demo.journal.2020-08-03.md
  • asOwnDomain
    • note is created under the domain specified by the dendron.default{NodeType}Name config value
    • eg:
      • current open note: pro.dendron.demo.md
      • config: dendron.defaultJournalNoteName: "journal"
      • path of new journal note: journal.2020-08-03.md

Defaults:

  • Journal: childOfDomain
  • Scratch: asOwnDomain

Backlinks