VviLliAm-qwq/dsh-open-path
dsh-open-path adds an /open command to the dsh-TUI ecosystem: with no argument it opens the current session's working directory in the system file manager, with a URL it opens the http(s) link, with a path it opens the file or folder, and with a bare word it fuzzy-searches the workspace and either opens the single hit or lists the candidates in the host dialog.
dsh-open-path adds an /open command to the dsh-TUI ecosystem that opens files and http(s) links with the system default program and folders in the file manager. With no argument it opens the current session's working directory; with an http(s) URL it opens the link (only http/https pass - file:, ftp: and javascript: are rejected with an explicit error); with a bare domain it fills in the scheme (https for domains, http for localhost:port), while a real file of the same name in the workspace wins; with a relative or absolute path it opens the existing file; ~ and ~/... expand to the home directory; and with a bare word it fuzzy-searches the current workspace (case- and CJK-insensitive) and either opens the single hit or lists the candidates in the host's managed, scrollable dialog (up to the host ceiling of 100, never a silent swallow), reporting an explicit error for zero hits.
Install
dsh plugin --profile dsh-tui add dsh-open-pathCopied verbatim from the README's Install block (the npm form for the dsh-TUI profile). The README also documents a local-checkout development form. npm package dsh-open-path at 0.6.2 (registry check 2026-10-16; the registry repository field resolves back to this repo).
Compatibility
It prefers the host's ctx.tuiPluginHost.registerCommand (C-041 attribution + invoke checkpoint) and falls back to the plain commands service; the dialog is a soft probe through ctx.get('tuiDialogs', false) that degrades to a clear error listing candidates when the service is missing, never crashing TUI startup. It imports no upstream package types (structural minimal interfaces), so upstream version drift cannot break it. The open action runs an ordered launcher chain per platform (macOS open; Linux xdg-open -> gio open -> kde-open5 -> kde-open -> exo-open; Windows Shell.Application COM then cmd /c start; WSL wslview then the Linux chain then cmd.exe), falls back automatically when a launcher cannot spawn or exits non-zero, and reports a timeout as 已启动 ...(未确认退出码) rather than upgrading it into a confirmed open. Command receipts, errors and hints follow the host language (zh/en).
Details
- Repo: VviLliAm-qwq/dsh-open-path
- Category: Files & Data
- Stars: 1
- Version: GitHub repo VviLliAm-qwq/dsh-open-path (1*); npm package dsh-open-path at 0.6.2 (registry check 2026-10-16; the registry repository field resolves back to this repo). MIT licensed; a dsh-TUI ecosystem plugin (Community v0.15 manifest); minimum dependency @deepseek-harness-tui/dsh-tui >= 0.10.0-beta.5; supports Windows / macOS / Linux including WSL. English README with a README.zh.md Chinese translation.
Alternatives
Aidenwu0209/dsh-Unlimited-OCR-Skill · amethystluna/logicprobe · aprilxuMLC/dsh-collaborative-notes