The five kinds of note, a snippet’s fields to fill, the code editor and Prettier, formatted notes and presenting them, calculation sheets, drawings, checklists and attachments.
The editor’s Kind menu turns a note into another kind, a drawing excepted.
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: 142 to choose from, from JSON, TypeScript, Python, Rust, Go or SQL to Shell, PowerShell, YAML, TOML or Elixir, plus plain text. The colours are the same on the card as in the editor. 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 with CtrlF, replaces with CtrlH. 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.
A calculation sheet gives one result per line, as you type, and keeps none of them: only what you wrote is saved. Name a value, convert units, take a percentage, add durations:
A few lines
price = 120 €
3 h 20 min in min
20 % of 340
A name is usable on the lines below its own. The sheet reads units (CSS units and frequencies too), dates, every form of percentage, fractions, rounding and functions, bases and bits, and the finance forms: compound interest, returns, present value and loans. Offline, it knows no exchange rate, and says so. A line that cannot be computed says why, beside itself.
Click a result to select it, Shift or Ctrl to select more: the sheet adds them up. The number format, the date format and the decimals (up to fourteen) are set in Preferences… → General.
A drawing is boxes, arrows and text on a free surface. An arrow started on a shape follows it when the shape moves; let go on the middle of a side, it stays attached there. Both its ends can be picked up again. A draws an arrow and Delete removes the selection.
Ctrl and the wheel zoom the drawing in or out, the wheel alone scrolls it, and F shows the whole of it.
A drawing is exported (Export as PNG or Export as SVG), and inserted into a Note with Insert a drawing: the Note shows its picture, sized by its corners.
While a note is open, drop a file on the window, use + File, or paste an image: 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.