Viggo Meesters23 downloadsOpen shell, batch, PowerShell, and AutoHotkey files as read-only source with outline, search, and safety hints.
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.
.env*, .gitignore, and other supported dotfiles by file name so they do not fall through to external viewers.Existing community options cover broader code workflows:
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.
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.
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.
npm install
npm run build
npx tsc --noEmit
npm test
The runtime files are:
main.jsmanifest.jsonstyles.cssmain.js, manifest.json, and styles.css from the latest release..obsidian/plugins/script-viewer/.