TraceNotes
Select code and press
|
| CLI command | What it does |
|---|---|
list / show [--outline] |
List trees / print a tree with trace ids |
create --name <name> |
Create a tree from Markdown on stdin |
add [--parent \| --after \| --before <id>] |
Add traces from Markdown on stdin |
note <id> / rm <id>… |
Replace a note / remove traces |
check / refresh <id>… |
Find traces whose code changed / re-read their code |
rename / delete-tree |
Rename or delete a tree |
Input uses the same Markdown format as Export to Markdown; a code fence's info line is <lang> <start>:<end>:<path> (or ?:? with the code pasted in, to let TraceNotes find it).
Features
Collection & Recovery
- Capture – Select code and press
Opt+C(Alt+C), or click+for a standalone note card. Snippets are dedented automatically. - Recovery – Traces re-anchor after edits via exact, whitespace-normalized, then fuzzy matching, falling back to a workspace-wide search for moved code. Unrecoverable traces are marked
Orphaned; re-bind them with✎. - Undo Remove –
Cmd+Z(Ctrl+Z) in the Storyboard restores deleted cards and their children.
Organization & Navigation
- Hierarchy – Nest traces up to 10 levels and keep multiple trace trees in
Manage Traces. - Drag and Drop – Reorder cards, drop on
Move to Childto nest, or onTo Parentto move up a level. - Canvas (
🔍) – View the whole tree on a 2D canvas. Drag to pan,Ctrl/Cmd + Scrollto zoom, click to jump. - Search – Search the current tree or all trees with
AND,OR,NOT/-term,"phrases", and( ). - History – Go back and forward (
</>) through visited cards, groups, and trees.
Notes & Editor Sync
- Markdown Notes – GFM rendering with links and clickable task checkboxes.
- Note Editing – List continuation,
Tab/Shift+Tabindent, selection wrapping (*,`,_,~, brackets, quotes). - Editor Sync – Clicking a card jumps to its code; moving the cursor highlights the matching card.
- Colors & Gutter – Right-click a card to pick one of 8 colors. Gutter markers show traces outside the current group; hover to preview the note and
↗ Jump to card.
Project Sharing (Worktrees & Clones)
- Cross-Checkout Sync – Worktrees and clones of one repo share traces, matched by git
origin, folder name, orSet Project ID(🔗). - Per-Checkout Positions – Paths are workspace-relative and positions are tracked per checkout, so branches don't conflict. Edits sync live across windows.
Import & Export
- Markdown – Lossless round-trip: headings for hierarchy,
%%Tag%%for colors (Obsidian-compatible), and<!-- tracenote -->fences around notes. - JSON – Back up all trees to
tracenotes-data.json.Import Traceaccepts.mdand.json.
Commands & Shortcuts
| Action | Shortcut (macOS) | Shortcut (Win/Linux) | Context / Command |
|---|---|---|---|
| Collect Trace | Option + C |
Alt + C |
TraceNotes: Collect Trace |
| Undo Remove | Cmd + Z |
Ctrl + Z |
Storyboard focus |
| Save / Cancel Note | Cmd + Enter / Esc |
Ctrl + Enter / Esc |
Note editor focus |
| Toggle Bold | Cmd + B |
Ctrl + B |
Note editor focus |
| Export MD | — | — | TraceNotes: Export to Markdown |
| Import MD / JSON | — | — | TraceNotes: Import Trace |
| Export All Data (JSON) | — | — | TraceNotes: Export All Data to JSON |
| Clear Current Tree | — | — | TraceNotes: Clear All Traces |
| Set Project ID | — | — | TraceNotes: Set Project ID |
| Set Up AI Agents | — | — | TraceNotes: Set Up AI Agents |
Support
If you find this extension helpful, consider buying me a coffee!
License
Distributed under the MIT License.
