hytime/dsh-client-ui-shortcuts ↗★ 2

@hytime/dsh-client-ui-shortcuts

Quick panel using official DSH shortcuts, with opt-in question and approval enhancements

パッケージ
@hytime/dsh-client-ui-shortcuts
互換性
未検証
Harness ピア範囲
>=0.2.0-rc.1 <1.0.0
Cordis ピア範囲
~4.0.4
バージョン
0.2.1
ライセンス
MIT
最終更新
2026/10/18

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add @hytime/dsh-client-ui-shortcuts@0.2.1

ドキュメント

README 全文を読む ↗

Configuration import and export

The panel's top row exports and imports a portable JSON document for backup, migration, and team distribution.

The export is a complete shortcut snapshot: every command in the official catalog is written, including untouched defaults, not only the customized ones:

{
  "format": "dsh-client-ui-shortcuts/quick-panel",
  "version": 2,
  "configuration": {
    "questionEnabled": false,
    "approvalEnabled": false,
    "profile": "web:macos",
    "shortcuts": {
      "hytime.shortcuts.open": { "modified": false, "binding": { "code": "KeyS", "modifiers": ["alt","shift","meta"] }, "label": "Open quick panel", "keys": ["⌥","⇧","⌘","S"] },
      "session.new": { "modified": true, "binding": { "code": "KeyJ", "modifiers": ["shift","meta"] } }
    }
  }
}

modified decides what an import does, so a default is never pinned as a new override:

modified in the fileCurrent stateImport action
true—Write the override; binding: null clears that key
falseoverriddenRestore the official default
falseuntouchedLeave it alone

An import is strictly validated first (format, version, exact field sets, command ids, physical codes and modifiers; unknown fields and future versions are refused wholesale, capped at 1 MiB), then planned against the whole target snapshot: keys the file moves or clears are released before the target values are written through the official describeBinding() and edit(), so swapping two bindings restores correctly. Both switches commit in one atomic write. The official edit() has no batch transaction, so a mid-import failure is rolled back on a best-effort basis and any command still unrestored is listed instead of reporting success. A refused or conflicting official edit never writes the plugin switches. Export normalizes the logical primary modifier to the device's real meta/control, so importing an export and exporting again is byte-identical. See the integration notes (Chinese) for format details and limits.