All pages

Writing

Organizing

Command line

Create, find and edit notes from a terminal with the donote command.

The donote command brings your notes to the terminal: browse them with the keyboard, write new ones, edit them as Markdown in your own editor, and change properties in bulk. It works with the donote app downloaded from donote.io on a Mac.

Installing it

Open Settings → Command line and press Install, or run Install Terminal Command from the command palette. It asks for your password once. Then open a new terminal window and run:

donote --help

Browsing

Run donote on its own to browse your notes and tasks with the keyboard: ↵ edits, Space ticks a task off, and N and T write a new note or task. donote home does the same, and takes --workspace to pick a workspace.

Commands

Command What it does
donote new Create a note. The body comes from --message, piped input or your editor
donote edit Edit a note's title and body as Markdown
donote show Print a note as Markdown
donote list List notes, most recently changed first (also donote ls)
donote workspaces List workspaces
donote views List views
donote view Print a view's notes and tasks, with their content, as Markdown
donote set Give notes a property's value
donote unset Take a property's value off notes
donote properties List properties and their values

Notes and views are named by their id or by part of their title. Leave the name out to pick from a list. Most commands take --workspace (-w); without it, new uses the workspace you last edited something in.

Run donote <command> --help for all of a command's options.

Examples

Create a note and write it in your editor:

donote new "Groceries"

Create a task in one go:

donote new "Call Anna" -t task -m "- [ ] before friday"

Edit a note by part of its title:

donote edit groceries

List tasks with "launch" in the title:

donote list launch -t task

Mark everything in the Inbox view as done:

donote view Inbox --brief | donote set Status Done

set and unset read note ids from piped input, one per line, as list and view --brief print them.

Your editor

donote new and donote edit open a built-in editor in the terminal. Set DONOTE_EDITOR to use another one, such as vim or code --wait.

Markdown can't keep everything a note can have, like text colors or alignment. donote edit warns before saving would drop something; pass --force to edit anyway.