Skip to content

ZenNotes v2.97.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 23:09
· 3 commits to main since this release

ZenNotes 2.97.0 puts dates in the slash menu: /today writes today's date and /date opens a calendar for any other day. On Windows, Settings > CLI now installs zn, so the command line works there as it does on macOS and Linux. And the insert and date menus no longer open inside code or math.

Released from through on .

Features

  • Insert a date from the slash menu (#1140). Putting today's date in a note meant typing @today and taking it from the date menu, and another day meant typing it out. Now:
    • /today inserts today's date. Its row in the menu shows the date it will write.
    • /date opens the calendar the Tasks view uses for due dates. Arrows move a day or a week (h j k l in Vim mode), PageUp and PageDown a month, and Enter inserts the day where /date stood. Escape leaves the line as if /date was never typed.
    • The command palette has Insert Today's Date and Insert Date…, and in Vim mode :today puts today after the cursor, like p, while :date asks the calendar first.
    • With a table cell selected, both palette commands write into that cell, at its cursor, and the cell keeps the keyboard. Commands that only make sense in the note text, such as Insert Template or Reflow Paragraph, say so and leave the note alone.
    • From the pinned reference pane, the palette's date commands write into that pane, not the open note.
    • Every one of them writes a plain date like 2026-12-03, the same as @today, task due dates and {{date}} in templates, so it reads the same in every vault. The template editor and Quick Capture leave them out: a template wants {{date}}.
  • zn on Windows (#1141, reported on Discord). Windows had the MCP server but no command line: Settings > CLI said zn was for macOS and Linux only, and the agent skill for zn had nothing to run. Now:
    • Settings > CLI installs zn on Windows, x64 and Arm. It puts zn.exe in a folder of its own and adds that folder to your user PATH, with no administrator prompt, so a new PowerShell or Command Prompt finds it.
    • ZenNotes keeps it up to date, as on macOS and Linux, and every release is checked against its signature before it runs. A zn.exe a terminal is still running is set aside and replaced once nothing uses it.
    • A zn installed this way opens the app's vault by default, and zn update points to Settings > CLI.
    • Uninstall removes the folder from PATH and leaves the rest of PATH exactly as it was.
    • The desktop bundles zn 0.21.0, the first release with Windows builds.
  • Copy command for an agent's own plugin. Settings > Connectors shows, beside Claude Code, Codex, Gemini CLI and Hermes Agent, the terminal commands that install the ZenNotes plugin from the public ZenNotes/agent-skills repository, with a Copy command button. They copy one per line, so a paste runs them in turn in any shell. The line shows only while ZenNotes has not installed the skills in that agent's folder, since both at once would give the agent every skill twice.

Fixes

  • The insert and date menus stay out of code and math (#1143). Typing / inside a code block opened the insert menu, so in ```js const d = 1 /t offered Task, and Enter took it instead of starting a new line. A Python decorator or a Java annotation opened the @ menus the same way. Now / and @ open nothing in a fenced or indented code block, in inline code or in a $$ math block, and / opens nothing in the frontmatter, where it is part of a value. Text after the code, and @ dates in the frontmatter, work as before.
  • A divider under a line of text no longer turns it into a heading. Markdown reads --- straight under a line as an underline that makes it a heading, so choosing Divider from the slash menu on the line below some text turned that text into a heading. The divider now goes in after a blank line.

Command line

  • The desktop bundles zn 0.21.0 (ZenNotes/tui#70, ZenNotes/tui#71): the Windows builds the desktop installs, a zn.exe that knows when the app placed it, and zn mcp answering every request piped into it, where it used to print nothing and exit once its input ended.

Phones

  • bring this core: `/today` and `/date` in the slash menu, dates from the command palette into a table cell, and the insert and date menus kept out of code and math.

For contributors

  • docs/ecosystem/ is a handbook for every ZenNotes repository and tool: what each one is and who consumes what, how to clone and build them all, every workflow and artifact of this repository, the server, zn, the phone apps, Cloud, the website, the web clipper, the agent skills plugin, zn-cloud and the packaging channels.
  • Windows zn: apps/desktop/terminal-release.json takes win32-x64 and win32-arm64 entries, and afterPack stages zn.exe from them, reading the release zip with the tar.exe in System32 (Git's GNU tar cannot read zip). A pin without Windows entries leaves a Windows package without zn instead of failing CI. The active version is a current.json pointer, not a current symlink, and zn.desktop.json beside the copy in userData\cli\bin is both zn's hint and the app's ownership mark. The user PATH is edited with reg.exe so its REG_EXPAND_SZ type survives.
  • lib/cm-inside-code.ts holds isInsideCode (the syntax tree at the trigger) and isInsideBlockMath, which follows the renderer's rule for $$: a closed pair, each fence owning its line. The slash menu, the @ date menu and the @ note picker all ask them.
  • lib/table-cell-commands.ts is where commands meet a focused table cell: the palette records the cell (or the pinned reference pane) as it opens, commandTableCell() and commandEditorView() say where a command writes, and guardCaretOnlyCommands wraps the commands that have no meaning in a cell. cm-table.ts exports tableCellSpot, insertIntoTableCell and focusTableCell.
  • promptDate() cancels a calendar that a second one replaces, so nothing waits on it forever.
  • zn-cloud is now published by its workflow as a staged npm version: it reaches users only after a maintainer approves it on npmjs.com, and the job waits on the GitHub environment npm.

Demos

  • 1140-slash-dates-vim-off.mp4: /today, /date with the calendar and Escape, then Insert Today's Date and Insert Date… from the palette.
  • 1140-slash-dates-vim.mp4: the same in Vim mode, with :today and :date.
  • 1144-table-cell-dates.mp4: Insert Today's Date and Insert Date… from the palette write into the selected table cell, and Reflow Paragraph says it works in the note text.
  • 1143-menus-out-of-code.mp4: / and @ open nothing in a code block or a $$ block, /d still picks Divider in text, and the divider leaves the line above as text.
  • 1141-zn-on-windows.mp4: on Windows 11, Settings > CLI installs zn 0.21.0, a new PowerShell finds it and zn status names the app as its owner, zn update points to Settings, and Uninstall takes it off PATH.

Verification

How to test locally:

  1. In a note, type /today and press Enter: today's date is inserted, like 2026-12-03.
  2. Type /date, press Enter, move with the arrow keys and PageDown, then Enter: that day is inserted where /date stood. Do it again and press Escape in the calendar: the line is as it was before /date.
  3. Open the command palette, run Insert Today's Date, then Insert Date…. In Vim mode, run :today and :date.
  4. In a rendered table, select a cell (click it, or j into it in Vim mode) and run Insert Today's Date from the palette: the date lands in the cell and the cell keeps the keyboard. Run Insert Template into Current Note…: a notice says it works in the note text, and nothing changes.
  5. Type ```js, Enter, then const d = 1 /t: no menu opens, and Enter starts a new line. Type @t on the next line: no menu. Do the same between two $$ lines, and type / in the frontmatter: nothing opens. Below the code, /t offers Task.
  6. On a line under some text, type /d and press Enter: a divider is inserted after a blank line, and the text above stays body text.
  7. On Windows, open Settings > CLI and click Install. Open a new PowerShell and run zn status --json: the owner is desktop. zn update points to Settings > CLI. Click Uninstall: zn is gone from a new terminal and the rest of PATH is unchanged.
  8. In Settings > Connectors, on the Claude Code row with the skills not installed there, click Copy command and paste it into a terminal: the ZenNotes plugin installs from ZenNotes/agent-skills.

Distribution channels

Release validation