zdkmd

zdkmd

La documentation Markdown de vos projets, lue comme un wiki, dans le terminal.

zdkmd rend les documents d'un dépôt git ou d'un vault Obsidian et suit leurs liens, au clavier comme à la souris. Un binaire autonome pour Linux, signé, qui se met à jour par une commande.

Installer

curl -fsSL https://zdkmd.zedesk.net/install.sh | sh

Version 1.9.1 · Linux x64 et arm64 · gratuit

Aperçu

De vrais écrans de zdkmd, dans les 16 couleurs du thème du terminal : il suit le vôtre, clair ou sombre. L'interface parle français, les documents d'exemple sont en anglais.

Ce qu'il fait

zdkmd lit les documents d'une Racine : le dossier d'un dépôt git ou d'un vault Obsidian. Chaque touche peut être changée.

Installation

Une commande installe zdkmd dans ~/.local/bin, sans root. Le script trouve la cible de la machine, vérifie la somme SHA-256 du binaire et l'essaie avant de remplacer l'ancien.

Claude Code

Annotez un plan écrit par Claude Code, puis demandez-lui de traiter vos remarques : un skill lui apprend les annotations de zdkmd. Il ne traite que celles à traiter, garde leurs Renvois dans le texte et résout chacune d'une ligne → qui dit ce qu'il a fait, sans rien supprimer.

Le texte du skill

Pour l'installer à la main, ou donner ses règles à un autre agent : le fichier SKILL.md d'un dossier zdkmd-annotations, en anglais.

SKILL.md
---
name: zdkmd-annotations
description: Read and process the zdkmd annotations of Markdown documents, review remarks written in the file itself as HTML comments (a mark `<!--zdkmd:k3f9-->` after the passage, the annotation `<!-- zdkmd:k3f9 open ...` at the end of the document). Use when asked to process, answer or resolve annotations ("process the zdkmd annotations", "deal with the annotations of this document", "traite les annotations de ce document", "réponds aux annotations"), and whenever a Markdown file you read or edit contains `zdkmd:` comments, so as to keep them intact.
---

# zdkmd annotations

zdkmd is a Markdown reader for the terminal. Its users annotate passages of a document while they read it, and zdkmd writes each annotation in the file itself, as two HTML comments that a rendered Markdown does not show. The `open` annotations are requests for you; the others are not.

## Format

An annotation has two parts that share its **reference**, four characters `[a-z0-9]` (`k3f9` below), unique in the document.

The **mark**, an HTML comment right after the passage annotated, glued to its last word:

```markdown
The export runs every night at 2 a.m.<!--zdkmd:k3f9--> and takes ten minutes.
```

After a link, inline code, a formula or an image, the mark follows the whole element; after the closing `**`, `*` or `~~` of an emphasis that ends the passage. After a heading, a code block, a Mermaid diagram, a `$$` formula or the frontmatter, the mark stands alone on the next line, with the `> ` of the quote or callout around it, or the indent of the list item.

The **annotation**, an HTML comment at the end of the document, after everything else:

```markdown
<!-- zdkmd:k3f9 open 2026-11-04 Fabrice
> runs every night at 2 a.m.
What if the export fails? To be specified.

See also RG-017.
-->
```

- First line: `<!-- zdkmd:`, the reference, the state, the date of creation (`YYYY-MM-DD`), then the author (the rest of the line, optional), separated by single spaces.
- The state: `open` (a request, to be dealt with), `resolved` (closed) or `permanent` (a remark to keep, which asks for nothing).
- Second line, after `> `: the **quoted passage**, the text annotated as it was shown, on one line. It ends where the mark stands.
- Then the text of the remark, on as many lines as needed, blank lines included, up to the `-->` alone on its line.
- In the quoted passage and in the text, `-->` is written `--\>` and `--!>` is written `--!\>`, since either would end the comment. The escape is reversible: a `--` or `--!` followed by backslashes then `>` takes one more backslash when written, and loses one when read.

A `zdkmd:` comment inside a code block or inline code, like the examples above, is not an annotation.

## Finding the annotations to process

```sh
rg 'zdkmd:[a-z0-9]{4} open'
```

lists the first lines of the open annotations under the current folder (`rg -l` for the files only). It never matches a mark alone, and its matches inside a code block are not annotations. An annotation whose state is none of `open`, `resolved` and `permanent` (written by hand, or by a newer zdkmd) is listed by zdkmd as open: `rg 'zdkmd:[a-z0-9]{4} '` lists every annotation; ask the user before processing such an annotation, and never rewrite its state on your own.

## Rules

1. Process only the `open` annotations: they are the only requests. A `permanent` annotation is a remark to keep: give it no follow-up and never change its state. A `resolved` annotation is closed, unless the user reopens it.
2. For each open annotation, find its mark, read the quoted passage and the remark, and do what the remark asks in the document. When it is unclear, or asks for a decision that belongs to the user, ask rather than guess, and leave it `open`.
3. Keep the mark: when you rewrite the passage, put its mark back right after the new passage, glued to its last word, without space. Never move a mark to another passage, never add a mark, never change a reference.
4. Once done, change the state from `open` to `resolved` on the first line, and add at the end of the text one line that starts with `→ ` and says what you did:

   ```markdown
   <!-- zdkmd:k3f9 resolved 2026-11-04 Fabrice
   > runs every night at 2 a.m.
   What if the export fails? To be specified.

   See also RG-017.
   → Added the section "Failures": two retries, then an alert to the on-call team.
   -->
   ```

5. Never delete an annotation, even a resolved one, and never delete a mark: the user deletes the resolved annotations from zdkmd.
6. Do not touch the quoted passage, the reference, the date nor the author, even after rewriting the passage: zdkmd then shows the annotation as "text changed since".
7. Escape `-->` as `--\>`, and `--!>` as `--!\>`, in your `→ ` line.
8. Leave the annotations at the end of the document, in their order; in a merge conflict between two annotations of different references, keep both blocks.
9. Two blocks of the same reference are the same annotation changed on two branches, both kept at a merge: zdkmd writes on neither. Do not process it: show both blocks to the user, ask which text and state to keep, then merge them into one block, with that reference, and keep its mark.

An annotation whose mark is missing (lost when its passage was rewritten) is detached: process it from its quoted passage the same way, without writing a mark; the user can reattach it from zdkmd.

When asked to process the annotations of a document, process every open annotation of that document, then say in a few lines which ones you resolved and which ones stay open, and why.

Conflits de fusion

Chaque annotation va en fin de document : deux branches qui en ajoutent une chacune y entrent en conflit. Gardez les deux blocs, en supprimant les lignes <<<<<<<, ======= et >>>>>>>, avec une ligne vide entre les deux commentaires. Deux blocs de même référence sont la même annotation changée sur les deux branches : zdkmd liste le second en double et n'écrit sur aucun ; n'en gardez qu'un, fusionné.

<<<<<<< HEAD
<!-- zdkmd:m41l open 2026-11-09 Fabrice
> Le fichier est envoyé par e-mail dès qu'il est prêt
Et si le client a plusieurs milliers de factures ?
-->
=======
<!-- zdkmd:r0le open 2026-11-10 Claire Martin
> réservé aux administrateurs du compte
Les comptables des clients n'ont pas ce rôle. Faut-il un droit à part pour l'export ?
-->
>>>>>>> relecture

Versions

Les nouveautés de chaque version, en anglais, comme le journal du projet.

1.9.1

Changed

  • The site answers at the address the zedesk.net catalogue gives each of its apps: https://zdkmd.zedesk.net/en/presentation and /fr/presentation, with or without the final slash, lead to the page of that language (a permanent redirection); another language stays a page not found.
  • The footer of every page of the site, / and the page not found included, links back to the zedesk.net catalogue, in the language of the page: "A zeDesk app · All apps →". On a large window with a mouse, the footer stays in view at the bottom of the window.
  • The site shows the icon of zdkmd before its name in the header, and above the name at the top of the page. In the dark theme a thin outline keeps the dark tile of the icon apart from the page.

Security

  • The runtime every zdkmd executable embeds is Bun 1.4.5, instead of 1.4.4: a security release for HTTP, TLS and DNS, with new versions of BoringSSL, lsquic, c-ares, SQLite and llhttp. zdkmd goes through TLS to check for a new version (zdkmd --update, and the daily check of a zdkmd installed by the installation script). The binary keeps its size (linux-x64: 117.6 MiB). The third-party notices (zdkmd --licenses, and the same text on the site) list 243 components instead of 242: the new versions of BoringSSL, lsquic and c-ares, and llhttp, the parser of node:http (MIT licence), which Bun compiles into its runtime and the notices missed.

1.9.0

Added

  • Going to a line: : (go_to_line) then 42 or 42-48 and Enter show those lines of the Markdown source, as Claude Code, a review or an editor cite them, highlighted for three seconds. The line is typed in the status line (confirm, delete and cancel in the new section [keys.line] of the configuration file); spaces around the dash are allowed, a range written backwards is turned around, 0 is line 1, and a text that is not a line leaves the view where it is, with a warning. Every rendered line of those source lines is highlighted as a band across the window, indigo under white text in every theme (bold, italic and underline kept): a paragraph wrapped on several lines, a table row, a code block. A blank line, a link reference definition or the annotations at the end go to the first line shown after them; a line past the end goes to the last line, and the status line says how many lines the document has. The first line lands about a third down the window, unless the lines are already on screen; a folded callout that holds them unfolds, and Ctrl-O comes back. The band goes after three seconds, at once, or with Esc, another jump, another document or a new version of the document; scrolling keeps it.

1.8.1

Changed

  • The runtime every zdkmd executable embeds is Bun 1.4.4, instead of 1.4.2. Bun 1.4.4 brings bun check, bun lint and bun fmt, whose code is in every runtime it joins to a program, used by zdkmd or not: the binary grows by about 27 MiB (linux-x64: 91.0 MiB to 117.5 MiB), and its download by the installation script or zdkmd --update by about 15 MB (40 MB to 55 MB). The third-party notices (zdkmd --licenses, and the same text on the site) list 242 components instead of 166: the 76 projects whose code these commands port (typescript-go, TypeScript, ESLint, typescript-eslint, oxc, Prettier, Biome and others), all under the MIT, ISC, BSD or Apache 2.0 licence, and the new versions of WebKit and of ten libraries Bun links.

1.8.0

The annotations: the J5 milestone (plan). A remark on a passage, written in the document itself as HTML comments, which the usual Markdown viewers do not show: created, read, resolved and listed in zdkmd, and processed by Claude Code.

Added

  • The annotations written in a document are read. In place of each mark, <!--zdkmd:k3f9--> written right after the passage annotated, zdkmd shows the icon ◆ in the color of the state of its annotation: yellow to be dealt with (open), cyan permanent (permanent), dimmed resolved (resolved); it stays with the word before it when the line breaks. A mark alone on its line, after a heading, a code block, a diagram, a formula or the frontmatter, gives a line holding the icon alone under that block. The annotations themselves, HTML comments at the end of the document (<!-- zdkmd:k3f9 open 2026-11-04 Fabrice, then the quoted passage on a > line and the text, up to -->), are hidden, as in GitLab, Obsidian in reading mode and Docsify; one whose state is unknown is read as to be dealt with, and one whose first line is not valid stays an HTML block, dimmed. A mark without annotation, the other marks of the same reference and an annotation without mark show no icon, and the example of the format in code is never read. The icon is never copied with the text, and the search in the document (/) passes it: word then finds word◆ then. The first step of the annotations (plan J5).
  • The annotations of a document are selected, highlighted, read and listed. Tab and Shift-Tab go through the links and the icons, in the order of the text; on an icon, the quoted passage is highlighted in reverse video while the text before the icon still ends with it (a passage rewritten since leaves the icon selected alone), and a small box opens just above the status line, the whole width: the icon in the color of the state, the state, the author and the date in its top border ("text changed since" when the passage is no longer found), the text of the annotation on three rows at most, and the key that opens its window in its bottom border (Enter read). The document scrolls so that the icon stays above the box; the status line stays as it is. The pointer over an icon shows the same box, without the key, while it stays there, at the top of the view when it would cover the icon. The box is not shown under a window, while a search is typed or text is selected, nor when fewer than 8 rows of the document would be left. Enter, or a click on the icon, opens the window of the annotation: its state, author and date, its quoted passage, "text changed since" when it is no longer highlighted, then its text as written, control characters made visible; Esc closes it (close in the new section [keys.annotation] of the configuration file). A (open_annotations) lists the annotations of the document in its order, titled with their count (22 annotations · 11 open), then the detached ones and the marks without annotation or duplicated; typing filters on the text, the passage and the author, and Enter brings the view to the annotation and selects it, opens the window of a detached one, or brings the view to the line of a mark. Among marks of the same reference, the icon goes to the one its passage still precedes, else to the first. A line found by the search in the folder (Ctrl-F) in an annotation opens the document with the annotation selected, the view on its mark, without the search in the document; a detached annotation opens its window. The second step of the annotations.
  • The annotations are edited, resolved and deleted from zdkmd, which writes in a document for the first time. In the window of an annotation, its keys on its last row, e (edit) shows its text in a field typed on several lines, prefilled: Enter breaks the line, the arrows, Home and End move the cursor, a paste keeps its line breaks, the field scrolls to keep the cursor in sight; Tab changes the state, to be dealt with or permanent; Ctrl-S writes it, Esc goes back to the annotation read, asking for a second Esc once a text is typed (write, toggle_state and cancel in the new section [keys.annotation_input]). r (resolve) marks the annotation resolved, or reopens it; d (delete), confirmed by a second d, deletes it with its marks. In the annotations of the document (A), Ctrl-D (delete_resolved in [keys.window]), confirmed by a second Ctrl-D, deletes every resolved annotation at once; any other key cancels a confirmation. The window read scrolls a text taller than the screen with ↓ and ↑ (scroll_down, scroll_up) and the wheel. zdkmd reads the file again at the moment of writing, finds the annotation by its reference, changes only the line of its mark and its own comment, and writes the rest of the file again byte for byte (line endings, BOM, final line break), through a temporary file renamed over the document with its rights, a symbolic link at its target; a file changed meanwhile is read again once, and a read-only file or one that is not valid UTF-8 is left as it is, with a message. The document is then read again, the box above the status line and the list A with it. Ctrl-S reaches zdkmd even when the flow control of the terminal is on. The third step of the annotations.
  • The annotations are created from zdkmd. a (annotate) on a passage selected with the mouse, or in the selection mode on its lines, opens the window of a new annotation: ◆ open in its header, the quoted passage dimmed, the field of e; Tab makes it permanent, Ctrl-S writes it, and its icon is then selected, its passage highlighted. The mark goes right after the last word selected, whole; after a link (its label included), inline code, a formula, an image, a wikilink or a footnote call, as a whole; after the closing delimiter of an emphasis, a bold or a strikethrough the word ends; alone on the next line after a heading, a code block, a diagram, a $$ formula or the frontmatter, with the > of its quotes and callouts and the indent of its list item; a selection ending in an HTML block is refused. The annotation goes at the end of the document, at its rank in the order of the text, with a reference drawn unique in the document, the date of the day and its author. zdkmd finds the line annotated again in the file read at the moment of writing, at its number or as the only line of that text, parses the new text again and writes nothing if the mark would not be read there or would change the text shown; the text typed is then kept and offered again at the next a. A read-only document, or one deleted from the disk, is refused at a, before anything is typed; an empty remark, or one of blanks only, is not written, the window staying open, and neither is a remark emptied with e (d d deletes the annotation). The fourth step of the annotations.
  • A detached annotation is reattached: its window says whether its quoted passage is still in the text shown, "(passage found · a reattach)", "(passage not found)" or "(passage found 3 times)", and, found once, a (reattach in [keys.annotation]) writes its mark back after it, the annotation staying where it is.
  • The documents to review: Ctrl-A (open_review_documents), the annotations of the folder as A gives those of the document, lists the documents of the folder that hold at least one open annotation, one row per document, by path, with their number (docs/plan-export.md · 3 open), counted in the title (3 documents · 15 open); an annotation whose state is unknown counts as open, and an example of the format in a code block does not count. The list is computed anew at each opening, every document read again in the background (searching… meanwhile), within 30 ms on 10 000 documents, and at once when they have not changed since; an empty one says so. Typing filters on the path; Enter opens the document as a followed link (Ctrl-O comes back), its first open annotation selected, a folded callout holding it unfolded. Where tmux or screen take Ctrl-A as their prefix, give open_review_documents other keys in the configuration file. The fifth step of the annotations.
  • Claude Code processes the annotations: zdkmd --install-skill installs the skill zdkmd-annotations in ~/.claude/skills, or under $CLAUDE_CONFIG_DIR when it is set, and replaces it when run again. Its text comes from the binary, in step with the format it reads: the annotations, the rules (deal with the open annotations only, keep each mark when a passage is rewritten, resolve without deleting, with a last line starting with → that says what was done, the quoted passage untouched, --> escaped) and the rg command that finds them. --project, only with --install-skill, also writes three lines in the CLAUDE.md at the root of the git repository of the current folder, between <!-- BEGIN zdkmd annotations --> and <!-- END zdkmd annotations -->: the file is created, or the block added at its end, or replaced between its markers, the rest untouched; outside a repository, nothing is written. The README and the site give the text of the skill, for an installation by hand or another agent, and how to resolve a merge conflict between two annotations: keep both blocks, unless they have the same reference (see below). The sixth step of the annotations.
  • Two annotations of the same reference, the same annotation changed on two branches and both blocks kept at the merge: the first block stays the annotation, and A lists the next ones as duplicates (duplicate), each read in its window, which says so. Nothing is written on a reference in double until its blocks are merged: e, r, d and a (reattach) refuse it at once ("two annotations k3f9: merge them"), and Ctrl-D deletes the other resolved annotations, saying how many duplicates it kept. The documents to review count by reference, as A does. The skill no longer processes such an annotation: it shows both blocks to the user, asks which text and state to keep, then merges them into one.
  • The author setting of the configuration file, at the top next to language and editor: the name written on each new annotation, after its date. Without it, the user.name of git in the folder applies, else no author; an empty value or one on several lines is reported by --check-config. --help gives an example.
  • After a copy with the mouse, the status line reminds the key that annotates it: "copied: 2 lines · a annotate"; the selection mode does the same ("SELECTION · 3 lines · a annotate"). The key cited is the one of the configuration file, if changed; the reminder is left out where a is refused: on a document deleted from the disk or read-only.

Fixed

  • A quoted passage that starts on a line followed by lines starting with blanks, such as { then "a": 1 in a code block, is highlighted: it never was.
  • The quoted passage of an annotation on a heading is highlighted, compared without the underline zdkmd draws under a heading of level 1 or 2; the copy with the mouse keeps the underline.

1.7.2

Fixed

  • A link whose text is code, such as [`F0001`](docs/features/F0001.md), shows in the color of its target again: blue for a document, cyan for an external link, red for a broken link, yellow for an ambiguous wikilink. It showed in the yellow of code, so that a broken link could not be told apart. The same goes for a link whose text is in <mark>, <kbd> or a formula, which keeps its reverse video or its bold.

1.7.1

Changed

  • The copy mark of code blocks becomes ◫ copy (◫ copier in French) and the icon of Note callouts becomes i: the former ⧉ and ⓘ are missing from most monospace fonts (DejaVu Sans Mono, Liberation Mono, Fira Code, JetBrains Mono) and showed as an empty box.
  • The texts of the site take the whole width of the page: the tagline and the introductions of the sections were cut at 34 and 68 characters.

Fixed

  • The log of the site's pages now records the page that was asked for, without its query string, even when the page does not exist (it used to record /404.html).
  • The screens of the site keep their borders aligned on every device, Android included: they are drawn with their own font, Adwaita Mono, served by the site, which has every symbol they show, each one column wide. The licence page credits it.

1.7.0

The distribution: the J4 milestone (plan). The first version installed from https://zdkmd.zedesk.net, which then updates itself.

Added

  • Binaries for four Linux targets, x64 and arm64, glibc and musl, built from one machine by bun run scripts/release.ts: each compressed with its SHA-256 sum, under a manifest signed in Ed25519 whose public key zdkmd carries. The first step of the distribution (plan J4).
  • The installation script, install.sh, to be served by https://zdkmd.zedesk.net: curl -fsSL https://zdkmd.zedesk.net/install.sh | sh (or wget -qO- … | sh) installs the zdkmd of the machine, its target found alone (x64 or arm64, glibc or musl), its SHA-256 sum checked, into ~/.local/bin without root, and gives the line to add when that folder is not in the PATH. Running it again updates or reinstalls; ZDKMD_VERSION installs one of the three latest versions, ZDKMD_INSTALL_DIR another folder, and a folder not writable gets the command to install for all accounts with sudo. On Alpine, it stops before downloading when libstdc++ is missing and gives apk add libstdc++ libgcc. Written in POSIX sh (busybox and dash too).
  • zdkmd --update updates a zdkmd installed by the script: it reads the latest version, checks the Ed25519 signature of its manifest with the public key zdkmd carries, then the size and the SHA-256 sum of the binary of its target, and puts the new binary in place of the old one only once it answers --version; after any failure, the old one is unchanged. It prints zdkmd 1.7.0 → 1.7.1 installed. What's new: https://zdkmd.zedesk.net/en/#1.7.1 (the page of the versions, in the language of zdkmd), or zdkmd 1.7.1 is up to date, and never goes back to an older version. A folder you cannot write gets the command to install there with sudo. A zdkmd built from the sources, by bun run build or by install:local, refuses: it was not installed from zdkmd.zedesk.net.
  • The notice of a new version: once a day at most, after showing its first document, a zdkmd installed by the script reads the latest version and checks the signature of its manifest; when it is newer, the status line says zdkmd 1.7.1 available: zdkmd --update (zdkmd 1.7.1 disponible : zdkmd --update in French), only when no other message is there, gone at the next key. Nothing is installed. Between two checks, the latest version known is kept in $XDG_STATE_HOME/zdkmd/update.json (~/.local/state/zdkmd/update.json), and told again at each launch; offline, nothing is said. check = false under [updates] in the configuration file turns it off: the template documents it, --check-config checks it. A zdkmd built from the sources never checks.
  • The site of zdkmd, https://zdkmd.zedesk.net, in English and in French: the installation command with its Copy button, real screens of zdkmd taken in a terminal (a rendered document, Mermaid, the Picker, the search in the folder, the follow mode), what it does, the installation (Alpine, a given version, another folder, for all accounts, update, uninstall), the versions of this changelog, each under its anchor (/en/#1.7.0, the "What's new" link of --update), and what the server records. Static, readable without JavaScript, without cookie nor outside resource. Served by nginx in a container, which also serves install.sh and the releases, the .gz without Content-Encoding, and writes one JSON line per download with the IP address cut short (/24 in IPv4, /48 in IPv6).
  • A licence: zdkmd is freeware, by zeDesk (LICENSE, in English and in French). It is free to use, and to copy and redistribute unmodified, free of charge, alone or in a package; you may study, modify and reverse engineer it for your own use, but not redistribute a modified copy. The rights of the open source components it includes prevail: JavaScriptCore and TinyCC, libraries of the Bun runtime, are under the GNU Lesser General Public License, and the object form of zdkmd needed to link it again with a modified version of them is offered for three years from each release.
  • zdkmd --licenses prints the licence of zdkmd, then the notices of its third-party components: each open source component of the binary (the packages, the native library of OpenTUI and what it holds, the grammars, the Bun runtime and the libraries it links), its version and copyright lines, then each licence text once, after a header that gives the sources of the two libraries under the LGPL and how to relink. The same text is at https://zdkmd.zedesk.net/third-party-notices.txt, and the licence page of the site has a "Third-party components" section.

Fixed

  • The text below the scrollbar no longer shows dimmed: the dimmed thumb ▐, in the last column of the screen, dimmed the start of the next row of the document in every terminal, a defect of OpenTUI 0.5.14. The thumb becomes a thin ▕, in the default color without attribute.

Changed

  • Ctrl-Q quits instead of q: an accidental press on q quit zdkmd. Ctrl-C still quits, and q alone now does nothing in the document. The hint of the status line becomes Ctrl-Q quit (Ctrl-Q quitter in French), still the last one and the first dropped when the space runs out; the help and the empty state ("Press Ctrl-Q to quit.") show Ctrl-Q too. To quit with q again, write in the configuration file, under [keys]: quit = ["q", "<C-q>", "<C-c>"].

1.6.0

Changed

  • The help no longer cuts a line too long for its window with …: the line goes on in the rows below, under the column of the descriptions, cut at its spaces (13 lines of 76 in French at 80 columns, 10 in English). The selected line is in reverse video on all its rows, a click on any of them chooses it, and the selected line is always shown whole; a new size of the terminal splits the lines again. In a narrow window, where the column of the descriptions would leave fewer than 16 columns, the rows below start at the left. The other floating windows keep one row per item.

1.5.0

Follow mode and backlinks: the J3 milestone (plan).

Added

  • Follow mode: F, or --follow at launch, opens on its own each Markdown document written in the root, about a second after it is written, to read next to an editor or Claude Code. The root is scanned again every second, not watched; the documents followed are those the Picker lists (no ignored files, no hidden folders), and a deletion opens nothing. A document opens as a followed link (Ctrl-O comes back, a document already open at its place); it waits while a window is open, a search is typed, the Selection mode is on or the mouse button is down, and a document you open meanwhile wins. In the empty state, the first document written opens and closes the Picker. Without a file, --follow opens the latest document written instead of the README. The status line shows follow while it is on. Action name toggle_follow.
  • O lists the backlinks of the document: every link of the other documents of the root that leads to it, one row per link, path:line then the line with the link highlighted, and their count (5 links · 3 documents). Markdown links count with or without an anchor, as do wikilinks in all their forms, embeds of the note, an ambiguous wikilink naming it, and a link to a folder that opens it (its README.md, else its index.md). Typing filters the rows on their path and line; Enter opens the document at the line of the link, the link selected (a folded callout holding it unfolds), and Ctrl-O comes back. Action name open_backlinks.
  • A document opens at a heading from the command line: zdkmd 'docs/design.md#cache', the heading written as a link writes it (GitHub slug, exact text or {#id}, %20 decoded); docs/#notes opens the README of the folder at it. The launch makes no history entry, so Ctrl-O has nothing to go back to. A heading not found opens the document at the top with a warning, shown instead of the one of a faulty configuration file. A file whose name holds # still opens as it is; a missing file is named without its anchor. Quote the argument: # is a pattern character of zsh.
  • Dragging the mouse to an edge of the view scrolls the document, the selection following: slowly on the second row or the last row of the view, fast on the first row or the status line. It stops when the pointer goes back into the text, at the release, at a bound of the document, or when a window opens. During a drag, the wheel now moves the selection too.
  • Seven more languages highlighted in code blocks: TSX, JSX, CSS, HTML (with the CSS of its <style> and the JavaScript of its <script>), TOML, Dockerfile and JSON Lines, under their usual names, case ignored (htm, xhtml, docker, containerfile, ndjson). Tag names are colored as keywords, attributes and TOML keys as properties, TOML sections as types; a CSS unit belongs to its number (12px), and so does the 0x of a Go number. SCSS, Less and PostCSS stay plain.

1.4.0

Changed

  • The search centers its match: when n or N has to scroll to the next match, the match shows in the middle of the view, with the text around it, instead of on its last row (against the status line) or its first one; Enter does the same when typing the query has scrolled the view. Near the start or the end of the document, the view goes as far as it scrolls. Typing the query still scrolls just enough, as do the links, the code blocks and the selection cursor.

1.3.0

Added

  • Pasting in the search and in the floating windows: a text pasted in the terminal (Ctrl-Shift-V, Shift-Insert, the middle button) is added to the query being typed, after / or in the Picker, the buffers, the table of contents, the file tree, the links, the information of the document, the search in the folder and the help. The query stays on one line: line breaks and tabs become spaces, other control characters are dropped, 256 characters at most. In the document, a paste does nothing.

1.2.0

Added

  • Markdown links written from the root of the project, as Docsify writes them (docs/features/index.md): a link or an image missing next to its document is looked for from the root, unless it starts with ./ or ../. The document still comes first, so only links that were broken change target.

1.1.0

Added

  • A scrollbar: a dimmed thumb ▐ in the right margin of a document that scrolls shows where the view is in it.

Changed

  • At the end of a document taller than the view, the last line has three blank rows below it (a third of the view at most) instead of sitting on the status line, also when a link, a search match or the selection cursor takes the view there.

1.0.0

The complete V1: the J2 milestone (plan).

Added

  • e opens the document shown in your editor at the line you read, and shows it again, reloaded, when you quit the editor. The editor is the editor setting of the configuration file (editor = "helix {file}:{line}"), else $VISUAL, else $EDITOR; it is run without a shell.
  • Callouts: GitHub alerts (> [!NOTE]…) and Obsidian callouts (> [!info] Title, aliases included), with a colored bar, an icon and a title. A click on its title folds or unfolds a foldable callout; z unfolds them all, and folds them back.
  • Mermaid diagrams drawn in characters: flowchart, sequence, class, state, entity-relationship, pie, git graph, mind map and timeline. Other types (gantt) and unreadable sources show the source with the reason. A diagram wider than the window scrolls sideways in place: h/l, ←/→, Shift + wheel or the wheel sideways.
  • The file tree (-): the folders and documents of the root, positioned on the document shown.
  • The search in every document of the root (Ctrl-F), as you type, limited by folder/, !folder/ leaving one out, "quoted text" taken as is; Enter opens the document at the line. In the file tree, Ctrl-F searches the folder of the selected item.
  • The links of the document (o): every outgoing link, broken and ambiguous ones marked; Enter follows one.
  • The information of the document (i): path, root, modification date, size, counts of lines, words, headings, links, inserts and broken links, then the frontmatter; Enter copies a value.
  • Images and embedded files shown as inserts (▣ Alt text · assets/schema.png) that open in the system viewer; a missing one shows as a broken link. A wikilink or an embed finds an attachment by its file name anywhere in the root, as Obsidian does.
  • --help gives an example of the editor setting, and the configuration template documents it.

Changed

  • A link to a folder without README.md nor index.md opens the file tree on that folder, instead of the Picker filtered on its path.
  • Ctrl-F is now bound: a configuration file that gives <C-f> to another action reports a conflict.
  • The status line shows e edit among its key hints; in French, the table of contents is hinted t sommaire.
  • The message of a file opened by the system writes its path from the root, else from ~/, instead of its absolute path.

Fixed

  • A key handled while a frame was drawn could be shown only at the next event (the count of the selection mode lagged behind, for instance): OpenTUI 0.5.14 is patched so that a render asked for as a frame ends is no longer lost.
  • The help lists every key of the V1 and says that a click opens an insert too.

0.1.0

The core of navigation: the J1 milestone (plan), enough to replace leaf day to day.

Added

  • Markdown rendered in the terminal: headings, lists, task lists, GFM tables, quotes, code blocks highlighted in ten languages, footnotes, frontmatter. The 16 colors of the terminal theme only.
  • A root found on its own (the .git or .obsidian folder), its documents listed without what git ignores.
  • Links followed with Tab and Enter or a click: relative Markdown links, anchors, Obsidian wikilinks (a choice when ambiguous); the target shown in the status line, broken links in red; web links, mailto and other files handed to xdg-open.
  • The Picker (f): fuzzy matching on the paths, the way fzf does; buffers (b, J, K, x), a navigation history (Ctrl-O, L), the table of contents (t), the search in the document (/), the help (?).
  • The document shown reloaded when its file changes, at the same section.
  • Copy: a code block (c, then y), a passage by dragging the mouse or in the selection mode (v), the text stitched back together; the system clipboard, else OSC 52.
  • An English or French interface; keys and language set in an optional configuration file (--create-config, --check-config, --default-config); --lang, --debug-log, --version, --help.
  • A standalone binary (bun run build, bun run install:local) and a benchmark of the PRD metrics (bun run bench).

Vie privée

zdkmd n'envoie aucune télémétrie. Le serveur ne garde que ce qu'il faut pour compter les installations et les mises à jour.