すべてのプラグイン

dsh-shortcut-extensions

dsh-shortcut-extensions · バージョン 1.4.2 · 2026/11/29 更新

DSHにキーボードショートカットを追加します。モデルやセッションの素早い切り替え(セッションはプロンプトのプレビュー付き)、次の回答済みメッセージへの移動、入力欄へのフォーカスができ、サイドバーで設定できます。

  • バージョンごとに審査
  • UI 拡張
  • MIT
  • 0回ダウンロード

説明

以下はプラグイン作者による原文です。

dsh-shortcut-extensions · 快捷键拓展

License: MIT Release Platform

A DeepSeek Harness (DSH) plugin that adds a keyboard-driven quick-switching layer to the DSH web/desktop UI: a model palette, a session palette with prompt preview, session cycling, find-next-answered, composer focus, and three-step permission cycling — all manageable from a sidebar control panel.

中文说明见 README.zh.md。

  • Header chips — the current workspace name and git branch sit right beside the session title (conversation.session.header.actions); the branch is re-read whenever you enter a session.
  • Header chips are buttons — click the repository chip to copy its full path; the branch chip shows lazygit-style divergence (↑2 to push, ↓1 to pull) right after the branch name, and clicking it syncs: fetch, then fast-forward when behind, push when ahead. Diverged branches are reported, never merged automatically.
  • Skill palette (⌘⇧K) — lists installed skills from skills/list and inserts /name at the caret without touching the rest of your draft.
  • The workspace and git-branch chips use a stable per-name hue (colored tags).

Features

  • Model palette (Cmd/Ctrl+Shift+M) — fuzzy search; AntD-style colored provider tags (click a tag to filter that provider); name-suffix tags (e.g. routing group); reasoning badges; pin favorites to the top.
  • Session palette (Cmd/Ctrl+Shift+S) — two-column layout: sessions on the left, your own prompts preview on the right (follows the highlighted row, debounced + cached). Includes archived sessions with badges; Enter opens and auto-restores archived ones.
  • Session cycling (Ctrl+Tab / Ctrl+Shift+Tab, desktop) — cycle in the sidebar's recency order.
  • Find next answered session (Cmd/Ctrl+G, web Cmd/Ctrl+Shift+G) — jumps to the most recently answered not-yet-viewed session; falls back to sessions that are still running.
  • Focus composer (Cmd/Ctrl+I) — restores caret position via the host composer facade.
  • Permission cycling (Cmd/Ctrl+Shift+P) — one press advances Read Only → Workspace Write → Full access in a fixed order (Full access sets approval to never).
  • Sidebar control panel — every command with live keycaps and an on/off switch; a shortcut reference tab listing every host command, with device-local rebind/reset; transient hint banner so no command fails silently.
  • IME-safe — key handling ignores IME composition state (pressing Enter to commit candidates never accidentally selects an item).
  • Theme-aware (light/dark), fixed-height palettes (no jumping while searching).

Repository state comes from a small same-origin Host route that runs git via ctx.subprocess. While the page is visible the branch chip re-runs a quiet git fetch every two minutes (and immediately when the window regains focus), so ahead/behind marks stay current. Sync needs the desktop Host's git capability; without it the branch chip still shows the branch name, but syncing reports that git is unavailable.

Default shortcuts (macOS desktop; Ctrl on Windows/Linux)

CommandKeys
Model palette⌘⇧M
Session palette⌘⇧S
Permission cycle⌘⇧P
Find next answered session⌘G (web: ⌘⇧G)
Focus composer⌘I (web: ⌘⌥I)
Next / previous session⌃Tab / ⌃⇧Tab

Every command can be rebound in DSH Settings → Shortcuts or in the panel's reference tab; overrides are device-local.

Install

  1. Clone this repository.
  2. In DSH, open 插件 (Plugins) and install the plugin from the cloned directory.
  3. Reload the window (Cmd+R).

Requires a standard DSH web composition that includes the permission-presets plugin. Without the turn-outline projection the prompt preview shows a notice.

Notes & limitations

  • Browsers reserve some keys: single-modifier bindings like Cmd+G are desktop-only, and Cmd+Shift+P is taken by Firefox (private window).
  • In the desktop app, Cmd+W belongs to the native "close window" menu item and cannot be taken over by plugins.
  • Keybinding overrides are stored per device (desktop: userData/keybindings.json; web: origin-local storage).

Development

Plain JavaScript, no build step, no npm dependencies (React is provided by the host module table):

dsh-shortcut-extensions/
├── package.json        # manifest: bundle patch + dsh.client declaration
├── cordis.patch.yml    # loader patch: one insert row
├── index.js            # host half (same-origin git route for chip status + pull/push)
├── client.js           # all UI/logic (client half, registered via ModuleLoader)
├── locale/zh.json      # display metadata + dictionaries (zh/en)
├── locale/en.json
└── icon.svg

Icons / 图标

  • Icons: Lucide — keyboard, cpu, messages-square, arrow-left, arrow-right, search-check, text-cursor-input, shield, shield-half, panel-left, message-circle, layout-grid, message-square-plus (ISC License).

License

MIT

バージョン履歴

  • 1.4.22026/11/29 · 55 KB
dsh-shortcut-extensions · SoleAPI Agent プラグイン | SoleAPI