Vault Lens

approved

by suzhan

Preview docx/xlsx/pptx and 60+ code files (sql/java/py/js/ts/…). Zoom, edit & save, line numbers, XLSX tabs. - This plugin has not been manually reviewed by Obsidian staff.

2 stars1,893 downloadsUpdated 15d agoMIT

Obsidian Vault Lens

GitHub release

A plugin for Obsidian that previews docx / xlsx / pptx / code files directly in the editor. Supports syntax highlighting, zoom, inline editing, line numbers, and sheet tabs.

Features

📄 Office Files

TypeCapabilities
DOCXHeadings, tables, images, page-break separators, centered/right-aligned text
XLSXFont color/size/bold, cell fill colors, merged cells, column widths
PPTXVisual rendering with backgrounds, shapes, and text positioning — PDF-like output

💻 Code & Text Files

60+ developer file formats supported with preview and inline editing:

.txt .sql .java .py .js .ts .jsx .tsx .json .xml .yaml .yml .properties .cfg .ini .sh .bat .cmd .ps1 .css .html .htm .rst .tex .php .rb .go .rs .c .cpp .h .hpp .cs .swift .kt .scala .groovy .pl .pm .lua .r .m .mm .gradle .toml .conf .env .makefile .dockerfile .gitignore .vue .sass .scss .less .styl .coffee .dart .erl .ex .exs

Syntax highlighting (highlight.js) · Line numbers · Edit & save · Ctrl+S shortcut · Zoom 25%–200%

🔍 Common

  • Zoom — Toolbar +/− buttons or Ctrl+scroll, reset to 1:1
  • Pan — Drag to pan when zoomed in
  • Edit — Click ✏️ Edit on any code file, modify with full textarea (line numbers, Tab support, Ctrl+A), then 💾 Save
  • Syntax highlighting — 190+ languages supported via highlight.js, auto-detects file type
  • Sheet tabs — Switch between XLSX sheets with tab headers

Installation

Community Plugin Store (pending review)

Open Obsidian → Settings → Community plugins → Search Vault Lens → Install.

Manual

  1. Download the latest release from Releases
  2. Copy main.js, manifest.json, styles.css into .obsidian/plugins/vault-lens/
  3. Enable it in Obsidian settings

Development

git clone https://github.com/leo-su-zhan/obsidian-vault-lens.git
cd obsidian-vault-lens
npm install
npm run dev      # watch mode
npm run build    # production build

License

MIT

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.