Standalone files & the znote command
Not every markdown file belongs to a vault. A README, a spec someone sent you, a note in a project folder: Znote opens them on their own, without opening or linking a workspace. And a znote command opens files and folders straight from your terminal.
Standalone mode
Open a .md file from Finder or Explorer (Open with › Znote, or a double-click when Znote is your default markdown app), or run znote file.md. The file gets its own window:
- just the editor and Ask AI: no tree, no note list, no tabs, no vault;
- nothing is written next to the file: no
.znote/folder, and the file is not added to your vault list; - opening the same file again brings its window to the front;
- several files open as several windows, next to your vault windows.
The note opens in read mode. Press Cmd/Ctrl+E (or click ✎ / 📖) to edit it. This switch is per window: it never changes the read / write mode of your vaults. Edits are saved to the file like any other note.
What's in the window
| Where | What |
|---|---|
| Toolbar, left | Outline: the note's headings in a panel beside the editor; click one to jump to it |
| Toolbar, right | Allow to Run code · Read / write · ⋯ More |
| ⋯ More | Save (when auto-save is off) · Lock · Secrets… · Share (copy, HTML export; PDF in Lab mode) · Full width · Source mode |
| Bottom left | ⇅ Open a workspace: one of your vaults, or a folder as a new vault · ⚙ Settings |
When the outline is open, the workspace and settings buttons move to the bottom of the outline panel.
What differs from a vault window
- Running code and Ask AI work as usual, with your global settings (AI provider, theme, editor options).
- Vault features are not available: wikilinks to other notes, vault search, app notes, and the vault's own MCP servers (
.znote/mcp.json). Open the folder as a workspace to get them. - Secrets work: the encrypted sidecars sit next to the file, as in a vault. The
.gitignoreprotection of local secrets is a vault feature, though. If the file's folder is a git repository, make sure*.local.secrets.yamlis ignored there.
The znote command
Install
Open Settings › General › Shell command and click Install. Znote writes a small launcher script:
| OS | Location |
|---|---|
| macOS | /usr/local/bin/znote (or /opt/homebrew/bin). Znote asks for your administrator password if the folder needs it. |
| Linux | ~/.local/bin/znote. Add this folder to your PATH if it isn't there. |
| Windows | znote.cmd in Znote's app folder, added to your user PATH. Open a new terminal to use it. |
Reinstall rewrites it (after moving Znote, for instance) and Remove deletes it. Znote never replaces a znote command it did not write without asking you first.
znote or znote-cli?
znote opens the Znote app. znote-cli is the command-line runtime that runs app notes without the app.
Usage
znote # open Znote
znote notes.md # open a file in a standalone window
znote ~/Notes # open a folder as a vault (or focus its window)
znote . # open the current folder as a vault
znote a.md b.md docs # several at once- Relative paths are resolved from the folder you run the command in.
.md,.markdownand.txtfiles open in standalone mode; a folder opens as a vault and is added to your vault list.- If Znote is already running, the files and folders open in that instance. When Znote starts from the command line, it opens only what you asked for, not your last vault.
Without installing the command
- macOS:
open -a Znote notes.md(or a folder). - Windows:
"%LOCALAPPDATA%\Programs\znote\znote.exe" notes.md. - Linux: run the Znote executable (or AppImage) with the path as argument.
