Vault Code

by SPACESODA
5
4
3
2
1
Score: 51/100

Description

The Vault Code plugin adds a code editor and broader file access alongside notes. It reveals hidden and extensionless files, creates nested paths and uses ignore rules to filter the explorer. The editor supports syntax highlighting, folding, line numbers and Markdown source editing, with multiline search and regex replacement. Previews render HTML, SVG, MJML, Mermaid diagrams, structured data and diffs. Supported table cells can be edited, while invalid or ambiguous data stays read only. Desktop Git tools compare changes, revert individual hunks and commit single files. Agent chat connects coding CLIs, hosted APIs or local model servers, with attached note context and saved Markdown histories. Safe mode prevents edits, while API and local model changes require review in edit mode. File management and code editing also work on mobile and tablets, but Git and agent chat require desktop.

Reviews

No reviews yet.

Stats

1
stars
266
downloads
0
forks
3
days
0
days
0
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
178
commits

Latest Version

9 hours ago

Changelog

What’s new

  • Add external folders by symlink (Desktop): Right-click a folder in the explorer, choose a folder on your disk, and name its symlink.
  • Linked folders show a SYMLINK label styled like file extensions.
  • Add multiple symlinks to the same folder, or overlapping folders. Newly added links appear without restarting Obsidian.

Reliability and polish

  • Prevent folder loops and accidental overwrites, including when destination paths contain aliases.
  • Deleting a folder symlink removes only the symlink and keeps the original folder intact.
  • Keep folder validation bounded and respect ignore rules during inspection and indexing.
  • Consistent menu and dialog wording, with updated translations in all 10 languages.
  • Resolve source and CSS review warnings, and refresh the README.

Validation

Obsidian lint, TypeScript checks, production build, and all 236 regression tests passed. No runtime or console errors were captured in desktop Obsidian. External-folder actions are desktop-only; physical mobile-device testing was not performed for this release.

README file from

Github

Vault Code

View hidden files, create and organize files of any kind, and edit code in a beautiful editor. Preview web pages, diagrams, and data, or work with AI agents, all without leaving Obsidian.

Vault Code follows your Obsidian theme and display language: English, 繁體中文, 简体中文, 日本語, 한국어, Español, Français, Italiano, Deutsch, and Русский.


⚡ Features at a Glance

  • Hidden files & folders: Reveal dotfiles, dotfolders, and extensionless files.
  • File creation & renaming: Create any file type or nested path; rename files and extensions.
  • External folders: Add folders from your disk by symlink.
  • Ignore rules: Keep the explorer tidy with .obsidianignore and .gitignore.
  • Code editor: Syntax highlighting, line numbers, folding, and familiar editing shortcuts.
  • Markdown source editing: Switch between Obsidian's note view and the code editor.
  • Find & replace: Search across lines with regex, case matching, and whole-word matching.
  • Live preview: Render web pages, emails, diagrams, data tables, and diffs.
  • Git: Review diffs, keep or revert changes, and commit individual files.
  • Agent chat: Connect coding CLIs, hosted APIs, or local model servers.
  • Mobile & tablet support: Edit notes, code, and manage files on any device.

What you can do

✏️ Edit code right where you write notes

Open scripts, styles, and configuration files alongside your notes.

  • 150+ languages supported: Python, JavaScript, TypeScript, Rust, Go, SQL, HTML, CSS, JSON, YAML, and more!
  • Markdown source: Right-click a .md file and choose Edit in code editor, or click </> in the tab header. Useful for frontmatter, tables, and regex edits.
  • Familiar controls: Line numbers, bracket matching, code folding, line duplication, commenting, and go-to-line.
  • Native foundation: Built on Obsidian's editor engine, with your theme, font size, and light or dark mode.

👁️ See your hidden dotfiles and configs

  • Reveal .gitignore, .env, .dockerignore, and .github/ in the file explorer.
  • Open extensionless files such as Makefile, Dockerfile, LICENSE, and CNAME.
  • Hide .git, node_modules, and other clutter with ignore rules.

🌐 Preview files beside your code

Switch between code and preview with the Preview button or Toggle code / preview command.

  • Render HTML, SVG, and MJML, including linked styles and images.
  • View Mermaid diagrams, JSON, CSV/TSV, JSONL/NDJSON, and diff/patch files.
  • Edit supported table cells with Apply or Cancel. Invalid or ambiguous data stays read-only.

🔍 Find & replace

Press Cmd / Ctrl + F to search, or Cmd / Ctrl + H to replace.

  • Search across multiple lines and jump between matches with a live count (1 of 14).
  • Toggle case matching (Aa), whole words (\b), or regular expressions (.*).

📂 Create, rename & organize files

Right-click a file or folder in the explorer:

  • New note here: Create a Markdown note in that folder.
  • New folder here: Name a folder directly in the explorer.
  • New file here (any extension): Create any file type, including dotfiles and nested paths such as src/components/Button.tsx.
  • Edit file name and extension...: Rename files or change their extensions with built-in validation.
  • Add external folder by symlink (Desktop): Choose any folder on your disk and link it into your vault without leaving Obsidian.

🌿 Review changes with Git (Desktop)

When your vault is inside a Git repository:

  • Compare unstaged changes with the last commit directly in the editor.
  • Jump between changes and keep or revert individual hunks.
  • See the current branch and changed-file count in the status bar.
  • Commit an individual file with a message, or discard its changes.

✨ Work with an AI agent (Desktop)

Summarize notes, explain code, or draft edits beside your work. Open Chat with Agent from the ribbon, a note's tab header, or the command palette.

Choose a connection in settings:

  • CLI: Use Claude Code, Codex, Copilot, and other coding agents with their workspace tools. Install and update agents from settings.
  • API: Bring your own key for OpenAI, Anthropic, Gemini, DeepSeek, Qwen, or another provider. Custom endpoints and model IDs are supported.
  • Local model: Connect Ollama, LM Studio, Atomic Chat, or another compatible server.

Attach notes or selections, pin context, and revisit Markdown chat histories. Safe mode is read-only. Edit mode enables edits; API and local models require review before applying.

Most providers require a paid subscription. API keys use Obsidian's secret storage (1.11.4+) and must be configured on each device.

🛡️ Control editing and file opening

  • Single-clicking unsupported files selects them. Opening them in your system's default app on double-click is optional and disabled by default.
  • Disable auto-save to save manually with Cmd / Ctrl + S. A dot ● marks unsaved changes, and closing an unsaved tab prompts you. Quitting Obsidian still saves unsaved edits.
  • File management and code editing work on desktop, mobile, and tablets. Git, Agent chat, and adding external folders require desktop Obsidian.

Shortcuts

Shortcut Action Where
Cmd / Ctrl + F Find text Code editor
Cmd / Ctrl + H Find and replace Code editor
Ctrl + G Go to line Code editor
Cmd / Ctrl + / Toggle line comment Code editor
Shift + Option / Alt + A Toggle block comment Code editor
Option / Alt + ↑ / ↓ Move line Code editor
Shift + Option / Alt + ↑ / ↓ Duplicate line Code editor
Cmd / Ctrl + Shift + K Delete line Code editor
Alt + Z Toggle line wrapping Code editor
Cmd / Ctrl + S Save file Code editor
Esc Close search or dismiss a popup Relevant editor or dialog

Assign custom shortcuts to Vault Code: Chat with Agent or Vault Code: Toggle code / preview in code editor in Settings → Hotkeys.


Installation

  1. Open Settings → Community plugins and turn off Restricted mode.
  2. Click Browse and search for Vault Code.
  3. Click Install, then Enable.

Via BRAT

To test pre-release builds or update directly from GitHub:

  1. Install and enable the BRAT plugin from Community Plugins.
  2. In BRAT settings, click Add Beta plugin and enter SPACESODA/obsidian-vault-code.

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest GitHub Release.
  2. Create .obsidian/plugins/vault-code/ inside your vault and copy those three files into it.
  3. In Obsidian, open Settings → Community plugins, refresh the list, and enable Vault Code.

Privacy & Network Disclosure

Vault Code sends no analytics or telemetry. Network activity depends on what you use:

  • Agent chat: CLI agents contact their configured services. API and local connections send prompts, chat history, and attached note or selection context to your chosen endpoint. A loopback endpoint runs on your device; its server may also route to cloud providers. Generation tests run only when you click Test.
  • CLI installation & updates: Contact the agent's installer or package registry.
  • Live preview: HTML can run JavaScript and load remote resources. Remote CSS, fonts, images, or scripts may make network requests.
  • External links: Settings links open in your default browser.

License

Brought to you by SPACESODA under the GNU AGPLv3 License.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Binary File Manager
5 years ago by qawatake
An Obsidian plugin to manage binary files
Vim Multibyte Char Search
5 years ago by anselmwang
Search multibyte characters by the corresponding input method encoding. For example, for Chinese, search "用来" by "yl"
Screwdriver
5 years ago by vorotamoroz
Paste image rename
5 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
Open File by Magic Date
4 years ago by simplgy
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
Update Relative Links
4 years ago by val
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
File chucker
4 years ago by Ken Lim
File Order
4 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Note archiver
3 years ago by thenomadlad
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Webdav File Explorer
3 years ago by red0orange
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Git File Explorer
3 years ago by Mateus Molina
Simple Image Inserter
3 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Vault Transfer
3 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
Livecodes Playground
3 years ago by @gapmiss
Open-source client-side code editor plugin for Obsidian.md - powered by LiveCodes.io
S3agle
2 years ago by Turner Monroe (turnercore)
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
sync-db-os
2 years ago by ketd
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
Git
6 years ago by Vinzent, (Denis Olehov)
Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Link indexer
6 years ago by Yuliya Bagriy
Unique attachments
6 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Word Splitting for Simplified Chinese in Edit Mode and Vim Mode
6 years ago by AidenLx
A patch for Obsidian's built-in CodeMirror Editor to support Simplified Chinese word splitting Obsidian内置编辑器的(简体)中文分词支持
Luhman
5 years ago by Dylan Elliott
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Code Editor Shortcuts
5 years ago by Tim Hor
Obsidian plugin to add keyboard shortcuts commonly found in code editors such as Visual Studio Code (vscode) or Sublime Text
Update time on edit
5 years ago by beaussan
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Reveal Active File Button
5 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Cursor Bridge
2 years ago by Adam Cloud
Seamlessly bridge Obsidian and Cursor, the AI-powered code editor. Elevate your coding workflow by opening notes directly in Cursor, bringing the power of AI to your knowledge base.
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Insert Multiple Attachments
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Inbox Organiser
2 years ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Tencent COS for Imgur
2 years ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
External Rename Handler
2 years ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
New Filename
2 years ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
2 years ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Media Companion
2 years ago by Nick de Bruin
VaultSync
2 years ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
Simple Archiver
2 years ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Rename File to Selection
2 years ago by Aava
Rename your file to the current text selection.
CSV Lite
2 years ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Ace Code Editor
a year ago by RavenHogWarts
An enhanced code editor using Ace editor
Remote Fetch
a year ago by Shaharyar
WebDAV Explorer
7 months ago by 蓝星晓夜
WebDAV Server Explorer.
Graphic Organizer
7 months ago by Nick Le Guillou - Superhuman Curiosity
File Explorer Reload
5 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
File Explorer++
5 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
Enhance Copy Note
4 months ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Local Backup
3 months ago by velviagris
Automatically creates a local backup of the vault.
Copy Contents
3 months ago by Richard Jones
Copy or export file and folder contents - perfect for LLMs
Attachment Organizer
3 months ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
Notebook Navigator
3 months ago by Johan Sanneblad
A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.
Store
3 months ago by shimeoki
Manage your notes within a single folder.
Note Types
3 months ago by jsmorabito
Alternative Explorer
2 months ago by sk-obsidian
Alternative Explorer is an Apple Notes–style sidebar for browsing folders and notes in Obsidian. Switch between an expandable folder tree and a notes list — a compact alternative to the built-in File Explorer.
MD Butler
2 months ago by Peter Petschownik
Automatically manages YAML frontmatter fields for all notes. A reliable alternative to Templater formulas for consistent metadata.
Unhide
2 months ago by polyipseity
(formerly Show Hidden Files) Unhide hidden files, like dotfiles.
Abele
2 months ago by dudaanton
An Obsidian plugin that adds a lot of functionality I personally find missing.
Auto Move File
2 months ago by sx kan
Automatically move files based on frontmatter properties in Obsidian
Add Attachment
a month ago by olegg90
Obsidian plugin for adding multi attachments
AXXA Agent
25 days ago by AXXA Lab™
AI chat, Vault Q&A and an agent that edits your notes, built mobile-first. OpenAI, Claude, Gemini, OpenRouter, NVIDIA NIM or local Ollama, with your own API key. Obsidian plugin.
MCP Server
13 days ago by leonezz