Skip to content

feat: make the Plan/Act toggle shortcut configurable#124

Open
youdie006 wants to merge 1 commit into
dirac-run:masterfrom
youdie006:feat/configurable-planact-key
Open

feat: make the Plan/Act toggle shortcut configurable#124
youdie006 wants to merge 1 commit into
dirac-run:masterfrom
youdie006:feat/configurable-planact-key

Conversation

@youdie006

Copy link
Copy Markdown

Summary

The Plan/Act toggle shortcut was hardcoded to Meta/Ctrl+Shift+a, which collides with VSCode's new Cmd/Ctrl+Shift+A "Agents" command (#100).

Fix

  • Change the default to Alt+Shift+a — the binding the maintainer endorsed in the issue thread — fixing the collision for everyone with zero new surface.
  • Add an opt-in dirac.planActToggleShortcut setting that overrides the default (empty = unchanged behavior), addressing the "conflicts aren't zero" concern without forcing a broad keybinding-customization pipeline. The setting is injected into the webview (window.__DIRAC_CONFIG__) and resolved by a pure resolveTogglePlanActKeys helper; changing it re-renders the webview live.

This deliberately avoids the gRPC ExtensionState / state-keys path (which would auto-regenerate the state proto). Added unit tests for the resolver.

Closes #100

The Plan/Act toggle was hardcoded to Meta/Ctrl+Shift+a, which collides with
VSCode's Cmd/Ctrl+Shift+A "Agents" command. Change the default to the
Alt+Shift+a binding the maintainer endorsed, and add an opt-in
dirac.planActToggleShortcut setting that overrides it (empty = default), so the
collision is fixed for everyone without forcing a broad customization surface.
The setting is injected into the webview and resolved by a pure
resolveTogglePlanActKeys helper; changing it re-renders the webview live.

Closes dirac-run#100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a different shortcut key for the Plan/Act toggle

1 participant