Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Script Viewer

Viggo MeestersViggo Meesters23 downloads

Open shell, batch, PowerShell, and AutoHotkey files as read-only source with outline, search, and safety hints.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Script Viewer

Script Viewer

Script Viewer is a read-only Obsidian plugin for inspecting script files and safe dotfiles without turning them into runnable actions. It opens .sh, .bash, .zsh, .bat, .cmd, .ps1, .ahk, .command, .bats, .env*, .gitignore, .dockerignore, .gitattributes, .gitmodules, .npmrc, .nvmrc, and .yarnrc files with line-numbered source, lightweight syntax hints, outline extraction, search, filtering, and safety-focused summaries.

Script Viewer preview

Features

  • Opens the supported script extensions and known dotfiles listed above.
  • Routes .env*, .gitignore, and other supported dotfiles by file name so they do not fall through to external viewers.
  • Shows stable line numbers with a soft-wrap toggle.
  • Detects shebangs and likely interpreters.
  • Builds a lightweight outline for shell functions, labels, trap/alias/export/set statements, PowerShell functions, AutoHotkey hotkeys, dotenv keys, and ignore/config patterns.
  • Highlights comments, strings, variables, command substitutions, paths, URLs, flags, keywords, and risky command patterns.
  • Searches source lines and filters outline items.
  • Keeps source visible even when syntax is unfamiliar.
  • Applies a 10,000 line render cap to keep large scripts responsive.
  • Stays read-only by design: it never executes scripts, starts terminals, mutates files, reads the clipboard, or makes network requests.

Positioning

Existing community options cover broader code workflows:

  • Code View provides broad read-only syntax highlighting for many languages.
  • Code Files is editor-first and Monaco-based.
  • Code Space is a broader code workspace.

Script Viewer is intentionally narrower. It focuses on risky automation artifacts and makes interpreter, environment-variable, executable-looking command, and safety hints visible without providing editing or execution affordances.

Why never-execute?

Script files can delete data, alter system settings, call remote endpoints, or launch other programs. This plugin is for inspection only. It does not execute code, start subprocesses, open terminals, change permissions, lint, format, save, or call external applications.

Parser strategy

Script Viewer uses local heuristics instead of full language parsers. It detects common shell, batch, PowerShell, AutoHotkey, dotenv, ignore-file, and small config-file structures while avoiding hard failures. If a line is unknown, it remains visible as source.

Development

npm install
npm run build
npx tsc --noEmit
npm test

Release files

The runtime files are:

  • main.js
  • manifest.json
  • styles.css

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create this folder in your vault: .obsidian/plugins/script-viewer/.
  3. Put the downloaded files in that folder.
  4. Reload Obsidian.
  5. Enable Script Viewer in Settings -> Community plugins.

License

MIT

89%
HealthExcellent
ReviewSatisfactory
About
Inspect shell, batch, PowerShell and AutoHotkey scripts (.sh/.bash/.zsh/.bat/.cmd/.ps1/.ahk/.command/.bats) in a read-only viewer with stable line numbers, soft-wrap, lightweight syntax hints, searchable outline, and filtering. Highlight comments, variables, paths and risky command patterns, and show safety-focused summaries while never executing, starting terminals, changing files, or making network requests.
CodeSyntaxOutlining
Details
Current version
0.1.2
Last updated
2 days ago
Created
2 days ago
Updates
3 releases
Downloads
23
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Viggo MeestersViggo Meestersviggomeesters
GitHubviggomeesters
  1. Community
  2. Plugins
  3. Code
  4. Script Viewer

Related plugins

VSCode Editor

Edit Code Files like VSCode.

Shiki Highlighter

Highlight code blocks with Shiki.

Strudel REPL

Live-coding music environment — Strudel REPL integrated into your vault.

Code Editor

Edit non-markdown text files (code, config, data) directly with syntax highlighting, line numbers, and word wrap.

Ace Code Editor

An enhanced code editor using Ace editor, providing syntax highlighting, code folding, and other advanced editing features.

Templater

Create and use dynamic templates.

Outliner

Work with your lists like in Workflowy or Roam Research.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

PlantUML

Generate PlantUML diagrams.

Kroki

Render Kroki diagrams.