omdsh-plugins/omdsh-shortcuts

omdsh-plugins★ 0TypeScript最后同步: 2026-08-16

在 GitHub 打开

Bind a chord to anything the harness can do: a menu the desktop shell renders natively, a switchboard the runtime dispatches through, and an in-page listener for the web — one document, two surfaces

README 摘要

omdsh-shortcuts English 中文 Bind a chord to anything the DeepSeek Harness can do, from one document, across both surfaces it runs on. Mounting this plugin makes a menu appear and a set of keys start working; unmounting it takes both away; editing its configuration rebuilds them in place. None of that rebuilds or restarts the desktop shell, and none of it is a harness edit. What it adds Surface Where it comes from The desktop shell's native menu, and every accelerator on it The document served over GET /api/desktop/menu , pushed again on GET /api/desktop/menu.events at every revision A native press arriving in the page that is actually in front POST /api/desktop/menu.invoke from the shell, then GET /api/desktop/shortcut.events?client= down to the client that last reported focus In-page chords on the web, where there is no menu to claim them The browser half's own key listener, binding this surface's chords from the same document The shortcut service, in the runtime and in the page alike ctx.reflect.provide('shortcut', …) on both halves: register , bindings() , onBindings , chordLabel Twelve of the fifteen UI commands, performed src/client/builtins.ts , calling layout , sessions , wor…

在 GitHub 查看完整 README →
工具/开发dshdsh-pluginvision

分类