plannotator-tui 0.8.0

Annotate Markdown in the terminal - standalone, and as a Herdr plugin.
plannotator-tui-0.8.0 is not a library.

plannotator-tui

Annotate Markdown in the terminal: select text, comment, ๐Ÿ‘ looks good, โœ— delete.

cargo build --release
./target/release/plannotator-tui samples/plugins.md     # one file
./target/release/plannotator-tui samples                # a folder: tree on the left

Keys

Where Keys
anywhere Tab cycle focus (tree ยท document ยท rail) ยท E send feedback (clipboard) ยท t show/hide tree ยท r reload ยท q quit
document drag with the mouse, or v then hjkl / w b / 0 $ to select; Enter confirms ยท j/k or click selects a block ยท c comments on the block ยท x clears the block's annotations
selection toolbar a ๐Ÿ‘ looks good ยท c ๐Ÿ’ฌ comment (opens a box at the selection) ยท d โœ— delete ยท Esc clears
rail j/k move ยท e / Enter edit body ยท x remove ยท click a bubble to focus it
file/folder review E send new ยท m review menu (R resend all ยท F finish review ยท U undo ยท H archive)
tree j/k move ยท Enter open ยท E send new feedback across files, including collapsed folders ยท counts show active notes per file
archive j/k or โ†‘/โ†“ select ยท Enter or click restore ยท Esc close

Selections and exports are copied to the terminal clipboard (OSC 52).

Sent notes remain visible. File reviews send only new or edited notes by default; R explicitly includes the sent ones too. F archives only sent notes that have not changed since delivery. Archived notes survive restarts, and restoring them keeps their ids and delivery history. Failed sends keep the feedback pending. The header shows the send button and a Review โ–พ (m) button; its menu lists the four actions with live counts, dims the ones with nothing to act on, and runs a row on Enter, a click, or the row's own key. The keys also work directly, without the menu.

Where things live

Every annotation is saved the moment it is made, as JSON, in the Plannotator data directory:

~/.plannotator/clients/plannotator-tui/annotations/<project>/<slug>/annotations.json

<project> and <slug> follow Plannotator's own rules (git repo name; basename + 8 hex of sha256 of the path), so one file maps to one directory in both tools. The records are in the Plannotator Workspaces wire shape (plannotator-tui-schema); any agent can read them. Nothing is written next to your files. PLANNOTATOR_DATA_DIR relocates the directory. Transient documents (an agent's last message, stdin) are never persisted.

Headless tools

plannotator-tui --export <file.md>                     # all active feedback to stdout; does not mark it sent
plannotator-tui --bench <file.md>                      # parse / render / reflow timings
plannotator-tui --blocks <file.md>                     # block index, kind, first row
plannotator-tui --annotate <file.md> <quote> <text> [comment|looks_good|delete]
plannotator-tui --annotate-block <file.md> <block> <text>
plannotator-tui --snapshot <file|folder> [cols rows scroll] [select-quote]   # one frame as text + mark map

Measured (Apple Silicon, release build)

corpus blocks rows render + align reflow on resize row lookup
plugins.md (16 KB) 60 305 14 ms 0.7 ms 20 ns
big.md (2.5 MB, 50k lines) 14,100 56,999 352 ms 50 ms 15 ns

Per frame, only visible rows are touched.

Known limits

  • Reference-style links and footnotes lose their target when a block is rendered alone.
  • A whole list is one block for block-level commands; text selection is not affected.