hytime/dsh-client-ui-shortcuts ↗★ 2
@hytime/dsh-client-ui-shortcuts
Quick panel using official DSH shortcuts, with opt-in question and approval enhancements
安裝
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 file | Current state | Import action |
|---|---|---|
true | — | Write the override; binding: null clears that key |
false | overridden | Restore the official default |
false | untouched | Leave 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.