2026-04-29 07:16:02 +00:00
# Light Mindmap
2026-06-01 10:02:33 +00:00
**English** | [简体中文 ](README.zh-CN.md )
2026-04-29 07:16:02 +00:00
Auto-renders markdown headings as a colorful, interactive mindmap — no extra syntax required.
2026-04-28 07:39:28 +00:00
2026-04-29 07:16:02 +00:00
## Preview
2026-04-29 06:18:04 +00:00


2026-05-28 06:38:45 +00:00

2026-04-29 06:18:04 +00:00
2026-04-28 07:39:28 +00:00
## How It Works
Add `type: mindmap` to any note's frontmatter. The plugin replaces the editor/reading view with a live mind map built from the note's heading hierarchy.
```yaml
---
type: mindmap
---
2026-04-29 07:21:17 +00:00
# My Plan
## Life
2026-05-30 03:31:36 +00:00
### walk the dog
### cook dinner
### call my parents
## *Work*
### write report
### team discussion
### send emails
2026-06-01 10:10:17 +00:00
## *Study*
2026-05-30 03:31:36 +00:00
### learn new words
### listen to podcast
### practice coding
2026-04-29 07:21:17 +00:00
## Shopping
2026-05-30 03:31:36 +00:00
### buy fruits
### get stationery
### pick up snacks
2026-04-28 07:39:28 +00:00
```
The mind map updates in real time as you edit the source.
## Features
### Auto-Render from Headings
- Parses all heading levels (`#` through `######` ) into a tree
- Strips inline markdown (bold, italic, links, wikilinks, code) from node labels
- When multiple top-level headings exist, a virtual root node (named after the file) is created automatically
- Fenced code blocks are skipped during parsing
### Layouts
2026-06-04 10:37:54 +00:00
Five layout modes, switchable from the toolbar dropdown or via command:
2026-04-28 07:39:28 +00:00
2026-06-04 10:37:54 +00:00
| Layout | Description |
| ---------------- | ------------------------------------------------------------------------------ |
| **Balanced** | Children are distributed to both sides of the root, weighted by subtree height |
| **Right** | All branches expand to the right |
| **Left** | All branches expand to the left |
| **Tree** | Top-down tree — root at the top, branches expand downward |
| **Radial** | Root at the center, branches radiate outward in a circle |
2026-04-28 07:39:28 +00:00
### Themes
2026-05-29 10:56:52 +00:00
Seven built-in color palettes:
2026-04-28 07:39:28 +00:00
2026-04-29 06:18:04 +00:00
| Theme | Style |
| ------------ | --------------------------------------------- |
| **Vibrant** | Indigo/violet/pink gradient — the default |
| **Classic** | Earth tones on a warm cream background |
| **Fresh** | Greens and teals on a light mint background |
| **Ocean** | Blues and indigos on a pale blue background |
| **Sunset** | Reds, oranges, and pinks on a warm background |
| **Midnight** | Neon accents on a dark slate background |
2026-05-29 10:56:52 +00:00
| **Slate** | Cool blue-grey with a subtle tech grid pattern |
2026-04-28 07:39:28 +00:00
Themes adapt automatically to Obsidian's dark/light mode.
### Connection Line Styles
2026-04-29 06:18:04 +00:00
| Style | Shape | Dash |
| ---------------------- | ------------------------------ | ------ |
| **Smooth** | Cubic Bézier curve | Solid |
| **Smooth Dashed** | Cubic Bézier curve | Dashed |
| **Straight** | Direct line | Solid |
| **Right Angle** | Horizontal + vertical segments | Solid |
2026-04-28 07:39:28 +00:00
| **Right Angle Dashed** | Horizontal + vertical segments | Dashed |
### Node Shapes
2026-04-29 06:18:04 +00:00
| Shape | Appearance |
| -------------- | ------------------------------------- |
| **Rounded** | Rounded rectangle (default) |
| **Square** | Sharp corners |
2026-04-28 07:39:28 +00:00
| **Borderless** | No border or background on leaf nodes |
2026-04-29 06:18:04 +00:00
| **Pill** | Fully rounded capsule |
2026-05-26 10:48:23 +00:00
| **Doodle** | Hand-drawn style with slight rotation |
2026-04-28 07:39:28 +00:00
### Pan & Zoom
2026-05-29 10:56:52 +00:00
- **Drag** the canvas background to pan (mouse or touch)
- **Pinch** to zoom on touch devices
2026-04-28 07:39:28 +00:00
- **Scroll** to pan vertically/horizontally
- **Ctrl/Cmd + Scroll** to zoom in/out around the cursor
2026-05-29 10:56:52 +00:00
- Toolbar buttons: **Fit** (fit all nodes into view), ** +** / ** − ** (step zoom)
2026-04-28 07:39:28 +00:00
### Node Editing
Nodes can be edited directly on the canvas — changes are written back to the markdown file:
2026-04-29 06:18:04 +00:00
| Action | Gesture / Key |
| ----------------------------- | ---------------------------------------------- |
| Select node | Click |
| Edit node text | Double-click or **F2** |
2026-06-04 10:37:54 +00:00
| Confirm edit | **Enter** |
2026-04-29 06:18:04 +00:00
| Confirm edit + add child | **Tab** |
| Cancel edit | **Escape** |
| Add sibling (without editing) | Select node, press **Enter** |
| Add child (without editing) | Select node, press **Tab** |
| Delete node | Select node, press **Delete** or **Backspace** |
2026-05-29 10:56:52 +00:00
| Collapse / expand node | Select node, press **Space** |
2026-04-28 07:39:28 +00:00
2026-05-29 10:56:52 +00:00
- The root node cannot be deleted.
- Pressing **Enter** on the root node has no effect (no sibling can be added above root).
- Pressing **Tab** on a collapsed node auto-expands it and adds a new child.
- Double-clicking or pressing **F2** on a collapsed node auto-expands it and enters edit mode.
- Collapsed nodes display a ** +** badge after the text. The badge is also rendered in exported PNGs.
2026-04-28 07:39:28 +00:00
### Persisted Settings
All per-file display preferences are written to frontmatter and restored on next open:
2026-04-29 06:18:04 +00:00
| Frontmatter key | Values |
| ---------------- | ---------------------------------------------------------------------- |
2026-06-04 10:37:54 +00:00
| `mindmap-layout` | `balanced` / `right` / `left` / `tree` / `radial` |
2026-05-29 10:56:52 +00:00
| `mindmap-theme` | `vibrant` / `classic` / `fresh` / `ocean` / `sunset` / `midnight` / `slate` |
2026-04-29 06:18:04 +00:00
| `mindmap-line` | `curve` / `straight` / `polyline` / `polyline-dashed` / `curve-dashed` |
2026-05-26 10:48:23 +00:00
| `mindmap-node` | `rounded` / `square` / `borderless` / `circle` / `doodle` |
2026-04-28 07:39:28 +00:00
### Toggle Source View
2026-06-01 10:10:17 +00:00
- **Edit Markdown** button in the toolbar hides the mind map and shows a floating **Light Mindmap** button
2026-05-29 10:56:52 +00:00
- Returning from source view auto-fits the mindmap to the viewport
2026-04-28 07:39:28 +00:00
- Command palette: **Toggle mindmap / source view**
2026-06-04 10:37:54 +00:00
- Command palette: **Cycle mindmap layout (balanced / right / left / tree / radial)**
2026-04-28 07:39:28 +00:00
2026-06-03 10:37:12 +00:00
### External Links
Markdown links in heading text (`[text](url)`) are rendered as clickable links directly on the mindmap canvas. Clicking a link opens it in the default browser. During node editing, links are shown as plain text for easy modification.
2026-05-26 10:48:23 +00:00
### Export PNG
Click the **Export PNG** button in the toolbar to save the current mindmap as a high-resolution PNG image (2x scale). A system file dialog will let you choose the save location.
2026-04-28 07:39:28 +00:00
## Installation
2026-04-29 06:18:04 +00:00
### From Obsidian Community Plugins (recommended)
2026-04-28 07:39:28 +00:00
2026-04-29 06:18:04 +00:00
1. Open **Settings → Community plugins → Browse**
2026-04-29 08:27:09 +00:00
2. Search for **Light Mindmap**
2026-04-29 06:18:04 +00:00
3. Click **Install** , then **Enable**
2026-04-28 07:39:28 +00:00
### Manual
1. Download `main.js` , `manifest.json` , and `styles.css` from the [latest release ](https://github.com/ninglg/obsidian-light-mindmap/releases/latest )
2. Copy the three files into `<vault>/.obsidian/plugins/obsidian-light-mindmap/`
3. Reload Obsidian and enable the plugin in **Settings → Community plugins**
## Example Frontmatter
```yaml
---
type: mindmap
mindmap-layout: balanced
mindmap-theme: vibrant
mindmap-line: curve
mindmap-node: rounded
---
```
## Compatibility
- Minimum Obsidian version: **1.4.0**
- Desktop and mobile supported
- Works with both light and dark Obsidian themes
## License
MIT