READMESource: main@05af359b
dsh-py-nav
Python code navigation plugin for DeepSeek Harness (DSH) — brings VS Code-style Ctrl+Click / F12 Go to Definition, Shift+F12 Find All References, Hover type signatures & docstrings, Document Symbols, and Alt+←/→ history to local (Ubuntu/Linux/macOS/Windows), WSL, and SSH / dsh-remote Python workspaces.
Features
- Works directly inside
dsh-remotefile viewer & IDE mode: Automatically attaches todsh-remote's.py/.pyieditor (both read-only highlight view and edit mode) and auto-reads$DSH_HOME/remote-workspaces/*/*/.dsh-remote-meta.jsonso multi-host / multi-repo SSH projects need zero duplicate setup. - Native DSH
.py/.pyiDocument Preview (Monaco Editor): Replaces static read-only previews with an offline-bundled Monaco Editor wired to persistent Python LSP. - Dedicated
Python NavSidebar Tab: Browse and navigate local, WSL, or SSH Python repositories directly from DSH's right sidebar. - Zero-config Local Linux / Ubuntu mode: When running directly on Ubuntu / Linux, defaults to
transport: 'local'and automatically discovers & switches Python project roots (pyproject.toml,pyrightconfig.json,ty.toml,setup.py,.venv,.git). - Dual-carrier compatible: Registers
/api/py-navonctx.connection.fetch(Electron Desktop IPC + Web HTTP) withwebServerfallback. - Fast persistent Python LSP: Auto-detects
ty(Astral's Rust Python LSP),basedpyright-langserver, orpyright-langserverin the project's.venvor user PATH.
Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+Click / F12 |
Go to Definition (same file, cross-file, or external .venv / typeshed) |
Shift+F12 |
Find All References across the workspace |
Ctrl + Hover |
Type signature & docstring tooltip |
Alt+Left / Alt+Right |
Navigate Back / Forward |
Esc |
Dismiss References drawer or Definition picker |
Prerequisites (on the host running Python)
Install at least one Python LSP server (recommended: ty):
uv tool install ty
# or: pip install ty / basedpyright
Build & Pack
npm install
npm run typecheck
npm run build
npm pack --pack-destination dist
Install into DSH
# DSH Web (Ubuntu / Linux / macOS / Windows)
dsh plugin --profile web add dsh-py-nav
# Or install directly from a GitHub Release tarball
dsh plugin --profile web add https://github.com/Gipbear/dsh-py-nav/releases/download/v0.1.0/dsh-py-nav-0.1.0.tgz
In DSH Desktop, open Plugins and install dsh-py-nav, then restart DSH.
Settings are persisted to ~/.dsh/py-nav.json.
Integration Tests
npm run test:local # Local Ubuntu/Linux zero-config + Fetch API
npm run test:wsl # Windows -> WSL Ubuntu transport
npm run test:ssh # Windows -> OpenSSH + dsh-remote mirror auto-binding
No comments yet. Be the first to write one.