Mind Mapper

unlisted

by KingOfKalk

Show any Markdown note as a live mind map: headings, lists and blocks become nodes, rendered like reading view.

Updated 16d agoGPL-3.0
View on GitHub

Mind Mapper

Show any note as a live, read-only mind map that follows you while you write: headings, lists and blocks become nodes, rendered like reading view.

Full guide: docs/user-manual.md

Obsidian with the file explorer and a note shown as a balanced mind map: a table, math, code, an image, a quote, a callout and tasks as nodes, dashed link lines, a divider and a collapsed branch

Features

  • Live companion: open the map next to the note; edits show up in the map after Obsidian saves the note (about 2 s), and pan, zoom, selection and collapsed branches are kept
  • Real content: code with highlighting, tables, math, callouts, Mermaid diagrams, task checkboxes (read-only) and image thumbnails, rendered by Obsidian itself; tags as colored text in place (a nested tag as written, #project/alpha/backend, each level its own search), or as pills with the tags at the end of a node in a row below its box or inside it (setting "Tags", or per note)
  • Layouts: a balanced circle layout by default, plus left-to-right, right-to-left, top-to-bottom, bottom-to-top and a kanban board (columns with cards and their counts); per note via frontmatter, or for the open map from the control bar
  • Color themes: every main branch in its own color (rainbow by default, ocean, forest, your accent color or plain gray), with filled first-level nodes and a large root; per note or as default, or for the open map from the control bar; follows light and dark mode
  • Navigation: double click a node to jump to its line, links open like in Obsidian with page preview, tags open the tag search, links to headings and blocks in the same note are drawn as dashed lines
  • Drill down: show one branch as a map of its own, with the branch as the center; step back out one level at a time
  • Collapse, full screen, back to root, and smooth panning on notes with thousands of nodes
  • Languages: English and German; follows Obsidian's language setting (Settings → General → Language)

How a note becomes a map

  • The root is the note's single H1 (if nothing comes before it), else the file name; mind-mapper-title overrides it
  • Every heading is a branch, nested by level (skipped levels attach to the nearest heading above)
  • Every paragraph, list item and block (code, table, math, quote, callout) is a node under its heading; nested list items nest their nodes
  • Frontmatter, comments (%% %%), HTML blocks and footnote definitions are left out
  • Horizontal rules (---, ***, ___) are not nodes: they show as a dashed line in a wider gap between the two branches they separate, also before a heading (e.g. --- between two ## sections); one before the first or after the last node of a section is not shown
  • Large nodes are capped at the max node size (default 320 × 240 px) with a fade; the expand icon shows all of it
  • Image embeds show a thumbnail; other embeds become plain links (no transclusion)

Opening a map

  • Command palette: "Open as mind map" (while a Markdown note is active)
  • File menu of a note: "Open as mind map"
  • Ribbon icon "Open as mind map": opens the active note

The map opens in a split next to the note and stays pinned to that note (also after a rename).

Commands

No command has a default hotkey (Obsidian plugin guidelines); assign your own in Settings > Hotkeys. Avoid Ctrl/Cmd + =, Ctrl/Cmd + - and Ctrl/Cmd + 0: Obsidian uses them to zoom the whole app.

CommandAvailableSuggested hotkey
Open as mind mapa Markdown note is active
Zoom ina mind map is activeCtrl/Cmd + Shift + =
Zoom outa mind map is activeCtrl/Cmd + Shift + -
Fit to viewa mind map is activeShift + 1
Reset zoom to 100%a mind map is activeShift + 0
Collapse alla mind map is activeCtrl/Cmd + Shift + [
Expand alla mind map is activeCtrl/Cmd + Shift + ]
Back to roota mind map is activeShift + H
Toggle full screena mind map is activeCtrl/Cmd + Shift + F11
Change layout…a mind map is active
Next layouta mind map is activeShift + L
Change color theme…a mind map is active
Next color themea mind map is activeShift + T
Drill down into selectiona node with children is selected
Drill out one levelthe map is drilled in
Show the whole mapthe map is drilled in

"Change layout…" and "Change color theme…" open the menu of the control bar button; arrow keys and Enter choose without the mouse. "Next layout" and "Next color theme" step to the next one (after the last, the first again), handy while presenting.

The key D drills in and out without a hotkey (see Drill down); it only works while the map has focus, so typing a "d" in a note is not affected.

Map navigation

  • Mouse wheel / two-finger scroll: pan
  • Ctrl/Cmd + wheel, trackpad pinch: zoom at the pointer
  • Drag on empty canvas: pan
  • Double click the empty canvas: fit the whole map into view (also in full screen)
  • Fit to view enlarges small maps (e.g. after Collapse all) up to the setting "Max zoom for fit" (default 150%); large maps shrink to fit; a margin keeps nodes and collapse badges off the edges
  • Zoom in / out snap to steps: 10, 25, 50, 75, 100, 125, 150, 200, 300, 400%
  • Fit to view, the zoom controls, back to root and layout changes glide smoothly (a layout change cross-fades first); wheel and trackpad stay immediate; with the system setting "reduce motion" everything jumps at once
  • Floating controls (bottom center): zoom out, zoom level (type a zoom such as 129 and press Enter; the chevron next to it offers 50–200% and Fit to view), zoom in, fit to view (two boxes in a frame), collapse all / expand all (one button: highlighted while anything is collapsed, then it expands all), back to root, drill down (arrow down to a dot), layout, color theme, full screen
  • Click a node: select it; click the empty canvas: clear the selection
  • Double click a node: jump to its line in the note (in the note's tab, else a split next to the map)
  • Round button on a node's edge: collapse / expand its branch (shows the number of hidden nodes when collapsed)
  • Links inside nodes behave like in Obsidian: click opens (Ctrl/Cmd + click or middle click: new tab), Ctrl/Cmd + hover shows the page preview (like in other plugin views; Obsidian's core plugin "Page preview" in Settings → Core plugins lets you change the modifier)
  • Click a tag inside a node: opens the search with that tag (tag:#project/alpha/backend), like in reading view; with tags as text each level of a nested tag is its own search (#project, alpha, backend); needs Obsidian's core plugin "Search"
  • Links to a heading or block in the same note ([[#Heading]], [[#A#B]], [[#^id]], [[This note#Heading]]) are drawn as dashed lines between the nodes; a collapsed end attaches to its nearest visible ancestor
  • Click a dashed link line: highlight the connection (both end nodes ringed, the dashed line thicker and drawn above the nodes); click the empty canvas, a node or another line to end it; selecting a node never highlights its links
  • Double click a dashed link line: jump to the line in the note where the link is written
  • Full screen covers the whole Obsidian window (previews, menus and notices stay on top); entering fits the map; Esc or the button top right exits and restores the previous view; the controls, the title and the exit button fade after 2 s without mouse movement

Drill down

Focus on one branch: the selected node becomes the center of the map, and only it and everything below it are shown.

  • Select a node with children, then the drill down button in the control bar (arrow down to a dot) or the key D (while the map has focus): the node becomes the center, large and without a box like the root; its children become the first level with their own branch colors; the map is fitted
  • Inside a drilled view, select another node and drill again (e.g. Project → Tasks → Phase 2)
  • The button or D with nothing to drill into (the center or nothing selected) goes back out one level; the command "Show the whole map" goes straight back. The node you drilled out of stays selected, and the map is fitted to view like after "Fit to view"
  • While drilled in, the center has a small target icon above it and the button is highlighted; the button is disabled when there is nothing to drill into or out of
  • Link lines to nodes outside the drilled part are hidden
  • "Back to root" goes to the current center; collapse, layout, theme, full screen and double click to jump work as usual
  • The view glides towards the node, then the map cross-fades into the drilled view (drilling out runs it in reverse); with the system setting "reduce motion" it switches instantly. Pressing D again during the animation finishes it at once
  • The drilled branch belongs to the map tab: it survives closing and reopening Obsidian; if the branch is deleted, its heading or list item text is changed, or a list item or paragraph is inserted above a drilled list item, the map quietly shows the whole note again. The note file is never written

Layout and theme of the open map

The layout button (boxes joined by a line) and the color theme button (palette) in the control bar, also in full screen, change only the map on screen, never the note:

  • The menu lists the seven layouts (balanced clockwise, balanced counter-clockwise, left → right, right → left, top → bottom, bottom → top, kanban) or the five themes; the shown one is checked
  • A layout change cross-fades into the new arrangement and glides to fit it to view; a theme change only recolors it
  • "Use the note's layout" / "Use the note's theme" go back to the note's frontmatter, else the plugin setting
  • While a choice is active the button is highlighted, and it wins over later frontmatter edits and setting changes
  • The choice belongs to the map tab: it survives closing and reopening Obsidian and following a rename; the note file is never written

Layouts

LayoutShape
circle-clockwise (default)Balanced: the first half of the first-level branches on the right (top to bottom), the rest on the left (bottom to top)
circle-counter-clockwiseThe same, mirrored
left-to-right, right-to-left, top-to-bottom, bottom-to-topAll branches grow in that direction
kanbanA board: the root as headline, first-level nodes as columns side by side with their card count, their children as cards, everything deeper as subtasks in lighter boxes below their card; no lines, no collapse buttons on nodes (Collapse all leaves the column headers)

Frontmatter

KeyValuesDefault
mind-mapper-titleany textthe single H1, else the file name
mind-mapper-layoutone of the layouts abovethe plugin setting
mind-mapper-collapsedtrue or false (a checkbox in Properties)the plugin setting "Start collapsed"
mind-mapper-themenone, rainbow, ocean, forest, accentthe plugin setting "Default theme"

mind-mapper-collapsed: true opens the map like after "Collapse all": root and first level visible, and branches added by later edits stay collapsed until "Expand all". Changing the value while the map is open collapses or expands all once; other edits keep what you expanded or collapsed.

mind-mapper-theme gives each first-level branch its own color, in note order, repeating after the last one; everything below takes the color of its branch. First-level nodes are filled with it, second-level nodes lightly tinted, deeper nodes are plain text on a colored line (kanban subtasks: lighter boxes); code, tables, callouts and other blocks keep a thin border in the branch color. The root is large bold text. rainbow: red, orange, yellow, green, cyan, blue, purple. ocean: blue, cyan, green, purple. forest: green, yellow, orange, olive. accent: Obsidian's accent color for every branch. none: the same look in grays. The colors come from the Obsidian theme, so they suit light and dark mode.

An unknown layout or theme, a title that is not text or a mind-mapper-collapsed that is not true/false falls back to the default and shows a notice once per note and value (per session).

Settings

Settings > Mind Mapper, in four groups. Every setting also appears in Obsidian's settings search.

GroupSettingControlRangeDefault
MapDefault layoutdropdownthe layouts aboveBalanced clockwise
MapStart collapsedtoggleon / offoff
MapDefault themedropdownNone, Rainbow, Ocean, Forest, Accent colorRainbow
MapMax zoom for fitslider, steps of 25%100–400%150%
NodesMax node widthslider, steps of 10 px160–800 px320 px
NodesMax node heightslider, steps of 10 px120–800 px240 px
SpacingSibling gapslider, steps of 2 px0–200 px12 px
SpacingLevel gapslider, steps of 10 px20–400 px60 px

Each slider shows its value (e.g. "320 px") and has a "Restore default" button. Content larger than the max node size is clipped with a fade; the expand icon shows all of it. Changes apply to open maps right away; "Max zoom for fit" is used the next time a map fits.

The About group shows the plugin version, a link to the source code on GitHub and a link to report an issue.

Large notes

  • Only nodes in and around the visible area are rendered; panning renders the rest as they come into view (at most 40 new nodes per frame, nearest first)
  • Below 20 % zoom, maps with more than 60 nodes in view are drawn as outlines without text, and more than 300 nodes in view are outlines at any zoom; zoom in to read
  • Edges and link lines are always complete
  • Benchmark (npm run perf:e2e, headless): 1,000 nodes open in about 0.1 s and pan and zoom at 60 fps; 5,000 nodes open in about 0.25 s

Known limits

  • Desktop only
  • The map is read-only: edit the note, not the map (checkboxes in nodes cannot be ticked)
  • Embedded notes, PDFs and media are shown as links, not transcluded
  • Dashed link lines only connect headings and blocks within the same note; lines are not routed around nodes
  • The map updates when Obsidian saves the note (about 2 s after typing stops), not on every keystroke
  • Collapsed branches are remembered while the map is open, not across restarts
  • Renaming the root H1 resets collapse state, selection and drill-down (node IDs start with the root text)
  • A --- directly under a line of text turns that text into a heading (Markdown rule, same as reading view); leave a blank line above a divider, or use ***
  • A second --- ... --- block in the middle of a note is not frontmatter: its last line becomes a heading

Installation

Requires Obsidian 1.15.0 or later (desktop).

  1. Via BRAT (current way, updates automatically):
    • Install the BRAT community plugin and enable it
    • Run the command "BRAT: Add a beta plugin for testing" and enter KingOfKalk/obsidian-plugin-mind-mapper
    • Enable Mind Mapper in Settings > Community plugins
  2. Manually from the latest release:
    • Download main.js, manifest.json and styles.css
    • Put them into <vault>/.obsidian/plugins/mind-mapper/
    • Enable Mind Mapper in Settings > Community plugins
  3. Community directory: planned

Development

Development: see docs/developer.md

Report an issue

Bugs and ideas: open an issue (please include your Obsidian and Mind Mapper versions and, if you can, the note's Markdown).

Credits

License

GPL-3.0 (GNU General Public License v3.0)

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.