by sdking
Render draw.io, Visio diagrams, Powerpoint inline in your notes — zoom, pan, multi-page tabs, shape links, a magnifier, and third-party shape libraries. More file formats planned.
🔍 Zoom · 🖱️ Pan · 📄 Multi-page · 🎞️ Slides · 🗂️ Open in a tab · 🔗 Shape links · 🔎 Magnifier · ⤢ Fullscreen · 📦 Third-party libs · 🖍️ Search highlight · 🌙 Dark mode
Features · Demo · Usage · Tabs · Search · Shape Libraries · Controls · Settings · Install · 中文
Follow on WeChat for more Obsidian plugins & tools
| Other plugins I build | ||
|---|---|---|
| Plugin | Description | Install page |
| Rich Table | Spreadsheet-like tables in notes, plus an Excel viewer; searchable from Rich Search | Open in Obsidian |
| Rich Search |
Search: scope, regex, whole word, history Across files: finds text inside draw.io, Visio and PowerPoint files and marks the match when you open it | Open in Obsidian |
Show draw.io, Visio and PowerPoint files right inside your notes. Zoom, pan, flip through pages, follow shape links. Word, CAD and more are on the list.
-->
Features
- Embed in a note with a
rich-viewcode block. Insert an empty one and click Import file. - draw.io, Visio, PowerPoint:
.drawio,.vsdx,.pptx. - Zoom, pan, magnifier. Slides show one at a time and always fit.
- Page tabs for diagram pages and slides.
- Open in a tab: click the file in the explorer, no code block needed.
- Searchable from Rich Search. Click a result and it jumps to the page or slide and marks the match.
- Shape links on draw.io shapes.
- Pin the view (page, zoom, position) into the code block.
- Third-party shape libraries (AWS, Azure, GCP, Cisco...), downloaded on demand.
- Fullscreen, resizable height, dark mode, works on mobile.
Demo
Embed a file in a note
Insert an empty rich-view block, click Import file, pick a file. Done.
🎬 Demo GIF coming soon
Zoom, pan and pin
Scroll to zoom, drag to pan, magnifier for small print. Pin to save the view.
🎬 Demo GIF coming soon
Slides and pages
Slides and diagram pages switch with tabs.
🎬 Demo GIF coming soon
Open in a tab
Click a file in the explorer. It opens full size.
🎬 Demo GIF coming soon
Search inside diagrams and slides
Search a word in Rich Search, click a result. The file opens at the right page, zooms in, and the match is marked.
🎬 Demo GIF coming soon
Shape links and libraries
Hover a shape, click ✎ to add a link. Missing shape libraries download in one click.
🎬 Demo GIF coming soon
Usage
Put the file anywhere in the vault and embed it with a rich-view block. Easiest: insert an empty block and click Import file.
Or write it yourself:
```rich-view
file=my-diagram.drawio
```
Everything else is key=value, separated by |, in any order:
```rich-view
file=my-diagram.drawio|page=my_page|height=600|zoom=80|offset=190,34
```
| Key | Example | What it does |
|---|---|---|
file | file=my-diagram.drawio | Required. Vault path or bare name. |
page | page=my_page | Page by exact name (diagrams). Default: first page. |
page-index | page-index=2 | Page or slide by position, from 1. Ignored if page= is set. |
height | height=600 | Height in px. Default: 400. |
zoom | zoom=80 | Starting zoom in %. Default: auto-fit. |
offset | offset=190,34 | Starting pan position (diagrams). Default: centred. |
Open a file in its own tab
Click a .drawio, .vsdx or .pptx in the file explorer. It opens in a normal tab with the same zoom, pan and pages as the embedded viewer.
Don't want it? Turn a format off under Settings → Rich View → File tabs, e.g. if another plugin should open .drawio. Reload the plugin to apply.
Search with Rich Search
With Rich Search installed, text inside your files is searchable like your notes:
| Format | What's searched | A result opens at |
|---|---|---|
| draw.io | Every shape's label, all pages | The page, shape marked |
| Visio | Every shape's text, all pages | The page, shape marked |
| PowerPoint | Every text box and table cell | The slide, keyword marked |
- While the search panel is open, every match in the open file is marked. The one you clicked is brighter, with an outline. The colour is the one you set in Rich Search.
- Marks follow the search scope. A file outside the folders or file types you limited the search to is not marked, even if it is open in another tab, and the marks appear or disappear as soon as you change the scope. (Needs a Rich Search version that publishes its scope; with an older one every open file is marked.)
- If the diagram is too small to read, it zooms in until the text is about as big as your note text.
- PowerPoint marks the keyword itself when it can measure the text, otherwise the whole text box. draw.io and Visio mark the whole shape.
- No Rich Search? Files open as usual, just without marks.
Shape Libraries
If a diagram uses extra libraries (AWS, Azure, GCP, Cisco, IBM...), a banner shows up the first time you open it. Click Download: the libraries come from draw.io's official repo and are kept locally for next time.
Settings → Rich View → Shape libraries lets you:
- Browse and download libraries by category
- Auto-detect from vault: find every library your diagrams need
- Set a custom folder for your own shapes
Controls
Under every viewer: page tabs on the left, the zoom level, then icon buttons on the right.
| Icon (hover for the tooltip) | What it does |
|---|---|
| 🔍 Magnifier | Toggle the magnifier (diagrams) |
| Auto-fit to viewer | Fit the whole page to the viewer |
| 📌 Pin current view | Save page, zoom and position into the code block |
| 📂 Switch to another file | Point this code block at another file |
| ↗ Open in external editor | Open in the system default app |
| ⤢ Fullscreen | Fill the screen (Esc to exit) |
| Drag the bottom edge | Resize the height |
| Gesture | Diagrams | Slides |
|---|---|---|
| Scroll wheel | Zoom (or Ctrl+scroll, see Settings) | Scroll |
| Ctrl + scroll | Zoom | Zoom |
| Drag | Pan | Scroll bars when zoomed in |
| Two-finger pinch | Zoom (touch) | — |
| Double-click | Back to the starting view | — |
Tip: get the view you want and click the pin icon. The code block updates, and the note opens on that view every time. After pinning, double-click goes back to the pinned view; click Auto-fit to viewer to start fresh, then pin again.
Slides
One slide at a time, with numbered tabs. The slide always fits, so shrink the height and it refits. Ctrl+scroll to zoom in, scroll bars to move around. No animations or transitions.
Shape links
Hover a draw.io shape and click ✎ to link it to a note or a URL. Click the shape to follow the link (which click depends on Click behavior).
Magnifier
Click 🔍 for a loupe that follows the cursor. + / - resize it, the wheel still zooms. Esc or click elsewhere to exit.
Dark mode
Follows Obsidian's theme. Nothing to set up.
Settings
| Setting | What it does |
|---|---|
| Zoom modifier key | Zoom with plain scroll or Ctrl+scroll. |
| Click behavior | Plain click or Ctrl+click follows a shape link. |
| File tabs | Per format: open files in a Rich View tab. Reload the plugin to apply. |
| Custom library folder | A vault folder for your own shapes. |
| Shape libraries | Download official libraries, or auto-detect from the vault. |
Installation
Community plugins (recommended): Settings → Community plugins → Browse → search Rich View → Install → Enable.
Manual: download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/rich-view/.
Needs Obsidian 1.8.7 or newer.
Known limitations
- Some shapes from draw.io's table and extended sets don't render perfectly.
- Visio: arrowheads are all one generic triangle; fill and line patterns are approximated; elliptical arcs draw as straight lines; shape hyperlinks aren't read; a text box with no outline isn't drawn (so it isn't searchable). No legacy
.vsd. - Visio fonts are used only if installed on your computer; otherwise the system font is used.
- PowerPoint: no animations or transitions; SmartArt, charts and embedded fonts are best-effort; no legacy
.ppt. ![[file.drawio]]embeds don't work. Use the code block.- In Live Preview, leaving the code block editor can cause a small scroll jump.
Development
npm install
npm run dev # watch
npm test # unit tests
npm run lint
npm run build # type-check + production bundle
Read CLAUDE.md first: architecture, how tests are written, how to release.
Agent Skill
A skill for AI coding agents (Claude Code, Cursor, Codex, Copilot and many more). Once installed, the agent can embed a diagram or deck in a note, switch its page, zoom and height, or point a block at another file, without you looking up the syntax.
# pick your agents interactively
npx skills add SdKay/obsidian-rich-view
# or for all your projects (-g), into one agent
npx skills add SdKay/obsidian-rich-view -g -a claude-code
# later, to pick up newer versions
npx skills update
Only the skill files are installed (three small Markdown files), not the plugin or this repo. Leave out -g to install into the current project only. By hand: copy the skills/obsidian-rich-view folder into your agent's skills folder.
Then ask your agent: "Embed system.drawio in this note, page Overview".
Star History
License
MIT © 2026 sdking.xing
Support the Project
Rich View is free and open source. If it saves you time, a donation helps keep it going.
💳 PayPal
🧧 WeChat Pay / Alipay
| WeChat Pay | Alipay |
|---|---|
![]() | ![]() |
Thanks! 🙏
Feedback
Bugs and ideas: GitHub Issues
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.

