AI Agent Hub
Back to plugins
dock-editor preview

dock-editor

Client Updated 2026.08.27

Run the following command in DeepSeek Harness:

dsh plugin install AKS1st/dock-editor

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install AKS1st/dock-editor in your terminal to install this plugin; source code is available at https://github.com/AKS1st/dock-editor

About this plugin

Most file viewers in the DSH workbench let you glance at a config, but the moment you need to flip a flag or fix a typo, the context is gone — no undo, no find-and-replace, and you are bounced out to an external editor. dock-editor closes that gap. Registered as the default text viewer in the dock-files pipeline, it drives a real editing experience on CodeMirror 6: incremental parsing, native undo/redo, line numbers, bracket matching, and syntax highlighting across a dozen-plus languages that follow DSH's --dsw-alias-* theme variables. The search overlay (Ctrl+F / Ctrl+H / F3) is fully decoupled from the CM panel, so no phantom scrolls, no collapsed panels, no mismatched cursors.

Practical guardrails are baked in: Ctrl+S save, an unsaved-changes prompt before closing, NUL-byte binary detection, a 256 KiB per-file read ceiling (over-limit files open read-only with save disabled to prevent truncation), and per-file window geometry memory. Setup is as light as two peer dependencies (dock and dock-files) in any DSH Web workbench.

Who is it for? Any developer who tweaks configs, drafts docs, or patches scripts mid-conversation in DSH — no more round-tripping between a read-only viewer and an external editor.

Screenshots

Use Cases

  • Edit JSON, YAML, or TOML config files inline during a DSH conversation
  • Browse and modify TypeScript, Python, or Shell code files on the fly
  • Draft text documents in a floating window with find-and-replace and undo/redo

Best For

  • Developers who frequently read and edit config or code files inside a DSH workbench
  • DSH users who prefer a unified editing experience without switching to an external editor
  • CLI or workflow users who need lightweight syntax highlighting and in-place search & replace