github ZenNotes/zennotes v2.93.0
ZenNotes v2.93.0

latest release: web-2.93.0-web.he8bfabfc5970449f
48 minutes ago

ZenNotes 2.93.0 lets you style your headings without writing CSS: pick a color and a font for each level, from H1 to H6, and indent every section under its heading the way the outline draws it. Vim mode gets two fixes from contributors: Enter works in visual mode, and Ctrl+[ leaves insert mode on Linux and Windows.

Released from cfc33071 through #1116 on 2026-11-25.

Features

  • A color and a font for each heading level (from a request by Dave on Discord). Headings used to take their look from the theme, and changing it meant writing CSS. Now:
    • Settings, Typography has a Headings section with a row per level, H1 to H6. Each row has a color, picked from your theme's colors (red, yellow, green, teal, blue, purple, accent, gray) or any color through Custom…, and a font from the fonts on your computer.
    • Color headings by level turns on a preset in one go: H1 red through H6 purple, in your theme's own shades. A color you pick for a level wins over the preset. Reset heading styles clears them all.
    • The colors follow your theme: a theme color changes with it between light and dark.
    • They show in the editor, Preview, the floating note window and Quick Capture, and carry into PDF export and Word export (as the document's heading styles).
    • They travel in config.toml: color_headings and a [heading_styles] table under [typography], so h2.color = "blue" or h1.font = "Georgia" works by hand too.
    • Command palette: Toggle Heading Colors. Vim: :headingcolors.
  • Indent sections under their headings (from a request by Dave on Discord). Turn on Indent sections (Settings, Typography, Headings) and every heading and everything under it, text, lists, tasks, tables, embeds and diagrams, moves one step in per level, the way the outline draws it.
    • The note's shallowest heading stays at the margin, so a note that starts at H2 is not pushed in for a missing H1.
    • It shows in the editor, Preview and PDF export. Word export keeps the colors and fonts but not the indent. The note itself never changes: it stays plain Markdown.
    • Command palette: Toggle Section Indent. Vim: :indentsections.

Fixes

  • Enter in Vim visual mode (#1105, by @gm-m). Enter did nothing in visual mode. It now moves down to the first non-blank of the next line in normal and visual mode and after an operator, with a count, as in Vim (V<CR>, 2<CR>, d<CR>). On a long wrapped line, Enter used to stay on the same line; it now goes to the next one.
  • Ctrl+[ leaves insert mode on Linux and Windows (#1100, by @2648782102, fixes #1059 reported by @phildubach, who also found the cause). Ctrl+[ is Vim's Escape, but ZenNotes ran it as dedent first, so insert mode stayed on. With Vim mode on it now goes to Vim. Cmd+[ on macOS and Ctrl+[ with Vim off still dedent, and Ctrl+] still indents.

Phones

  • The iPhone and Android apps bring this core: heading colors and fonts, Indent sections, and the Vim fixes, in Settings, Typography on the phone as on the desktop.

For contributors

  • The rules for heading styles (swatches, parsing, the print colors) live in packages/shared-domain/src/heading-styles.ts, shared by the app, the desktop's Word export and the PDF window. The stylesheet keys on <html> attributes (data-color-headings, data-heading-N-color, data-heading-N-font, data-indent-sections), so a level with nothing set keeps the theme's look.
  • Indent sections is cm-section-indent.ts in the editor (line classes, plus a data-zn-depth on block widgets) and rehypeSectionDepth in Preview. It indents with margin, not padding, because list lines already own their padding for the hanging indent.

Demos

  • heading-styles.mp4: Settings, Typography, Headings: Color headings by level, Purple for H2, Georgia for H1, then the note in the editor and Preview.
  • indent-sections.mp4: :indentsections in Vim mode, the editor and Preview indented by level, and off again.
  • vim-enter.mp4: Enter in visual mode (V, v, with a count), in normal mode over a wrapped line, and d<CR>.

Verification

How to test locally:

  1. Open Settings, Typography and scroll to Headings. Turn on Color headings by level. Before: headings had the theme's one color. After: H1 to H6 run red through purple in the editor and Preview.
  2. In the H2 row, open the color and pick Custom…, choose any color; pick a font in the H1 row. Both change at once, and survive a restart.
  3. Turn on Indent sections and open a note with nested headings, a list and a table. Each section sits one step further in per level, in the editor and in Preview. Export it to PDF: the PDF is indented the same way.
  4. With Vim mode on, put the cursor on the first line and press V then Enter twice: three lines are selected. Before: Enter did nothing in visual mode.
  5. On Linux or Windows with Vim mode on, press i, type, then Ctrl+[: insert mode ends. Before: the line was dedented and insert mode stayed on.

Distribution channels

Release validation

Don't miss a new zennotes release

NewReleases is sending notifications on new releases.