Skip to content

v0.20.1

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:17
· 1 commit to main since this release

Fixes

A restored note goes back to where it was trashed from. Moving a note to the trash keeps its subfolder and drops the top folder, so archive/Work/Plan.md becomes trash/Work/Plan.md. Nothing recorded where it came from, and restoring it put it in your notes area, inbox/Work/Plan.md, somewhere it never was. zn now keeps a small record in the vault, .zennotes/trash-origins.json, the same one ZenNotes desktop 2.96.0, its web app, its phone apps and the self-hosted server keep:

  • Trashing a note from the Archive or Quick Notes records where it came from. Restoring it puts it back there, in the same subfolder. A note from the notes area goes back to the notes area, as before.
  • Deleting a note forever, deleting a folder in the trash and emptying the trash forget what they removed, also when the trash folder is remapped with systemFolderPaths.
  • Renaming or moving a note or a folder while it is in the trash keeps its origin. Moving or archiving a note out of the trash forgets it.
  • A note trashed before this release, or on a device without it, restores to the notes area. The record stays on your machine; it is never synced and never shows up as a note.
  • On a ZenNotes server, the server does all of this, and zn has nothing to record.

A scoped assistant's restore stays inside its scope. zn mcp with --allow or --deny now checks restore_from_trash where the note will actually land, the Archive or Quick Notes as well as the notes area. On a ZenNotes server, which keeps the record to itself, a note that lands outside what the assistant may see goes straight back to the trash, and the assistant is told it cannot put notes there. This matches the desktop's MCP server.

The help names :trashnote for trashing a note. zn's help listed :delete among the note actions as the way to move a note to the trash, and deleting a live note forever said :delete would move it there first. But :delete and :del are Vim's line delete, in zn as in the desktop app, and that is all they ever did. The help and that message now name :trashnote, which moves the note to the trash, and :delete is no longer listed as a name for it.

The server token hint names the renamed Settings page. ZenNotes desktop 2.96.0 renames the Settings page that holds Server token from MCP to Connectors. When a server refuses zn mcp's token, the hint now says Settings > Connectors > Server token, and Settings > MCP for apps before 2.96.

Every archive is also published without the version in its name. Beside zn_0.20.1_linux_amd64.tar.gz and the rest there is now zn_linux_amd64.tar.gz, so releases/latest/download/zn_linux_amd64.tar.gz always fetches the newest zn. checksums.txt lists both, and the README has a Linux snippet that downloads, checks and installs it. zn update, the desktop's bundled zn and the Homebrew formula still use the versioned names.

How to test locally

zn tui
  1. Archive a note in a subfolder (:archive), then trash it (:trashnote, then y).
  2. Open the Trash (:trash) and press r on it. Before: it came back in your notes area. After: it is back in the Archive, in its subfolder.
  3. Do the same with a Quick Note: it goes back to Quick Notes. A note from the notes area still goes back there.
  4. Open :help and find the note actions. Before: they listed :delete. After: :trashnote, which asks to move the note to the trash. :delete in a note deletes the current line, as Vim does.

Install

With Homebrew on macOS or Linux, run brew install zennotes/tap/zn, then zn tui.

Download the archive for your platform, unpack it, and put zn on your PATH.
Each archive is listed twice, with and without the version in its name, and checksums.txt covers both.
With Go installed, go install github.com/ZenNotes/tui/cmd/zn@latest builds the same thing.