kvit-notes

module
v1.0.1-0...-84ba56f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MPL-2.0

README

kvit-notes

Kvit Notes, a Markdown block editor for the desktop, built on the unison toolkit and kvit-ui, the Kvit component library.

Kvit Notes opens a vault, a folder of Markdown notes, in a window with a sidebar, a note list and the editor. Each note is an ordinary .md file, shown rendered, with the Markdown of a span revealed while the caret is in it; the vault's lock, backups, recovery journal and trash are kept in its .kvit folder. The app follows and completes wiki links, finds and replaces, searches across notes, and draws code in colour, pictures, callouts, tables, task boards, collection queries, Mermaid diagrams (which can also be edited on the drawing) and typeset math, with a command menu for typing it. It has menus, settings, templates, export and import, a tray icon and file associations, and packages for Windows, macOS and Linux (packaging/README.md says which of them have been tried).

It builds with cgo off and cross-compiles to Windows, macOS and Linux. Building needs Go 1.27; with an older Go installed, the toolchain line in go.mod makes Go fetch 1.27 by itself. Go fetches the kvit-ui repository from GitHub at the commit go.mod names, as it fetches every module. It needs zig (https://ziglang.org/download/) on the PATH: math is typeset by MicroTeX, a C++ engine that zig builds as a shared library the program loads at run time.

./build.sh --test        # build, check formatting, vet, run the headless tests
./build.sh --win         # start kvit-notes on the Windows desktop (from WSL)
./build.sh --help        # every option
packaging/build-all.sh   # the Windows, macOS and Linux downloads, into dist/
build/kvit-notes folder  # open a folder of notes as a vault
build/kvit-notes note.md # edit one note on its own

Licence: MPL-2.0.

Directories

Path Synopsis
Package app is the Kvit Notes window: the sidebar, the note list and the editor pane, over one vault.
Package app is the Kvit Notes window: the sidebar, the note list and the editor pane, over one vault.
cmd
kvit-notes command
Command kvit-notes is Kvit Notes, the Markdown block editor.
Command kvit-notes is Kvit Notes, the Markdown block editor.
Package diagram lays out a Mermaid syntax tree (package mermaid) into a Scene: shapes, paths and text in logical pixels, with colours named by their role rather than resolved.
Package diagram lays out a Mermaid syntax tree (package mermaid) into a Scene: shapes, paths and text in logical pixels, with colours named by their role rather than resolved.
Package editor is Kvit's block editor as a unison widget: a Markdown note shown as a column of blocks (paragraphs, headings, list items, to-dos, quotes, code, dividers), edited in place with the inline formatting drawn and its Markdown markers shown only around the caret.
Package editor is Kvit's block editor as a unison widget: a Markdown note shown as a column of blocks (paragraphs, headings, list items, to-dos, quotes, code, dividers), edited in place with the inline formatting drawn and its Markdown markers shown only around the caret.
Package export writes notes out as HTML, plain text and Markdown, imports Markdown and text files into a vault, and converts HTML to Markdown (the converter behind pasting HTML).
Package export writes notes out as HTML, plain text and Markdown, imports Markdown and text files into a vault, and converts HTML to Markdown (the converter behind pasting HTML).
Package highlight colours the text of a code block by language, as Kvit's code blocks do: a table of words and of comment and string markers for each language, read by one scanner shared by most languages, and scanners of their own for HTML and XML, CSS, Markdown and Mermaid.
Package highlight colours the text of a code block by language, as Kvit's code blocks do: a table of words and of comment and string markers for each language, read by one scanner shared by most languages, and scanners of their own for HTML and XML, CSS, Markdown and Mermaid.
Package ignore decides which files and folders a walk over a vault leaves out.
Package ignore decides which files and folders a walk over a vault leaves out.
Package kanban reads and writes Kvit's task boards.
Package kanban reads and writes Kvit's task boards.
Package links is everything about links between notes that draws nothing: finding [[wiki links]] in a note's Markdown, deciding which note a link names, the anchor a #heading matches, which notes link to a note, the rewrite of links when a note is renamed or moved, and the table of renamed notes in .kvit/redirects.json.
Package links is everything about links between notes that draws nothing: finding [[wiki links]] in a note's Markdown, deciding which note a link names, the anchor a #heading matches, which notes link to a note, the rewrite of links when a note is renamed or moved, and the table of renamed notes in .kvit/redirects.json.
Package mathcmd is the list of math commands behind the menu a backslash opens while typing TeX, and the ranking that filters it as letters are typed.
Package mathcmd is the list of math commands behind the menu a backslash opens while typing TeX, and the ranking that filters it as letters are typed.
Package mathtex typesets LaTeX math for Kvit Notes: the formulas of display math blocks ($$…$$) and of inline spans ($…$).
Package mathtex typesets LaTeX math for Kvit Notes: the formulas of display math blocks ($$…$$) and of inline spans ($…$).
Package mermaid reads the Mermaid diagram notation Kvit draws itself: the flowchart, sequence, class, state and entity-relationship families, each read by a parser written against the Jison grammar of mermaid@11.16.0, the version Kvit's HTML export loads.
Package mermaid reads the Mermaid diagram notation Kvit draws itself: the flowchart, sequence, class, state and entity-relationship families, each read by a parser written against the Jison grammar of mermaid@11.16.0, the version Kvit's HTML export loads.
Package query runs collection query blocks.
Package query runs collection query blocks.
Package search is the searching Kvit Notes does, without any drawing: finding and replacing inside one note (the find bar), and searching every note of a vault.
Package search is the searching Kvit Notes does, without any drawing: finding and replacing inside one note (the find bar), and searching every note of a vault.
Package textdiagram is Kvit Notes' character-cell diagrams: drawings made of box-drawing characters, arrows and boxed labels, kept in a code fence tagged `diagram` (or `text-diagram` or `ascii-diagram`).
Package textdiagram is Kvit Notes' character-cell diagrams: drawings made of box-drawing characters, arrows and boxed labels, kept in a code fence tagged `diagram` (or `text-diagram` or `ascii-diagram`).
tools
roundtrip command
Command roundtrip reads Markdown files through the editor's parser and serializer and reports which come back changed, and how: the number of lines that differ and the first few of them.
Command roundtrip reads Markdown files through the editor's parser and serializer and reports which come back changed, and how: the number of lines that differ and the first few of them.
Package vault is a Kvit Notes vault on disk: a folder of Markdown notes, with Kvit's own state in a .kvit directory beside them.
Package vault is a Kvit Notes vault on disk: a folder of Markdown notes, with Kvit's own state in a .kvit directory beside them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL