Digraph
An interactive graph of the links between your Markdown notes, inside VS Code.
Open any folder of .md files and Digraph draws every note as a node and every link as an edge.
Nodes settle under a physics layout. You can drag them, filter them, color them, and click one
to open the note. The graph updates as you create, edit, rename or delete notes.
Getting started
- Install Digraph from the Extensions view, or run
code --install-extension arren.digraph.
- Open a folder that contains Markdown notes.
- Run Digraph: Open Graph View from the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P).
To see only the notes around the file you are editing, open the Digraph icon in the Activity Bar.
Global graph
Digraph: Open Graph View shows every note in the workspace. Click a node to open its note,
drag nodes to move them, scroll to zoom, and drag the background to pan. Hovering a node
highlights its connections.
Local graph
The Local Graph view in the Digraph sidebar follows the active editor and shows the current
note's neighborhood, up to 5 links deep. Digraph: Open Local Graph jumps to it from the
Command Palette.
Filters, groups and display
The ⚙ button opens the settings panel. From there you can:
- filter notes with a search query (syntax below)
- color notes into groups, each defined by its own query
- change node size, line width, label fade and arrows
- tune the center, repel and link forces
- save the current filters, groups, display and force settings as a named view
Search syntax
Search matches file paths, names and tags. It does not search note contents. Terms separated
by spaces must all match.
| Query |
Matches |
word |
notes whose path or name contains word |
"phrase" |
the phrase as one term, spaces included |
-word |
notes that do not match word |
path:docs |
notes whose path contains docs |
file:index |
notes whose name contains index |
tag:#idea |
notes tagged #idea, including #idea/nested |
a OR b |
notes matching a or b |
Animate and export
Animate replays your notes in the order they were created. A note's date comes from its
frontmatter created or date field, or from the file's creation time if neither is set.
Export PNG saves the current view at 2× resolution.
Supported link syntax
- Wikilinks:
[[note]], [[note|alias]], [[note#heading]]
- Embeds:
![[embed]]
- Standard Markdown links to
.md files
- Inline
#tags, plus aliases and tags in frontmatter
Links inside code blocks are ignored.
Obsidian vaults
If the workspace contains .obsidian/graph.json, Digraph reads its graph settings as a starting
point. Digraph saves its own changes to VS Code workspace state and never writes to .obsidian/.
Link resolution follows Obsidian's rules: notes are matched by file name, case-insensitively, and
frontmatter aliases count.
Digraph is not affiliated with Obsidian.
Known limitations
- Search does not look inside note contents.
- Two attachments with the same file name in different folders share one node.
- File creation times are often unreliable, because cloning or copying files resets them. Add
created to frontmatter if you need Animate to be accurate.
Feedback
Report bugs and request features in the Q & A tab of the
Marketplace page.
License
MIT