A note has a title, a source (the Context… it comes from: a tool, a doc, a project) and tags. It is written to disk only once it holds something: a note opened then closed empty leaves nothing behind. Esc closes the editor, saving.
The kind offered by default is chosen in Preferences… → General → Default note type.
A snippet is highlighted by its language: twenty-six to choose from, from JSON, TypeScript, Python, Rust, Go or SQL to Shell, PowerShell, YAML, TOML or Elixir, plus plain text. The language menu filters from the keyboard: type the first letters, then Enter.
The code editor numbers its lines, keeps Tab in the text to indent, and finds or replaces with CtrlF. Line wrapping is set in the preferences.
Not by Prettier: SQL, Python, Rust, Go, Java, C#, PHP, C, Shell, TOML, XML. The button is disabled there and says why.
Line width, indentation, quotes, semicolons and trailing commas are set once for the whole library, like formatting on save. A {{host}} field goes through formatting intact; if Prettier were to damage one, the text is left untouched.
A JSON, YAML, TOML or XML snippet also opens as a Graph or a Tree. Side by side keeps the code on one side and the graph on the other: selecting a node highlights its lines. In the graph, the arrows move from node to node, Enter opens or closes an entry, and Shift→ expands everything.
Write a name between double braces in a snippet, and its value will be asked for when you copy it. A name is made of letters, digits, hyphens and underscores. A suggested value is written after an equals sign:
A snippet with three fieldsSH
ssh -p {{port=22}} {{user}}@{{host}}
Copy it from its card (the button, or C on the focused card): DevNotes asks you to Fill the fields, shows a preview of what goes to the clipboard, then offers Copy filled or Copy as is. A field left empty keeps the value the text suggests.
What you type stays with the note, for next time. For a value valid everywhere, add a variable in Preferences… → Variables: it is offered to every snippet with a field of that name, and what is typed on a note comes first.
The quick paste palette asks the same questions: a snippet with fields can be pasted from any application. See Quick paste.
A list is ticked from its card, without opening it, and the card shows its progress. In the editor, Enter adds an item below this one, Backspace removes an empty item and Alt↑ or Alt↓ moves it.
While a note is open, drop a file on the window, use + File, or paste an image with CtrlV: it is encrypted and attached to the note. A file can weigh up to 10 MB. The card shows how many; a preview grows on click, and each attachment opens or is saved elsewhere.