Customizable keyboard shortcut for toggling plan mode - #5
karamanliev wants to merge 1 commit into
Conversation
|
I applied this behavior in the same way you did, as I also needed it. However, to my knowledge, keybindings are not directly usable in extensions since they are defined by an While keybindings through a custom JSON file could be worthwhile, I would not recommend creating a global configuration file for such a trivial parameter. Likewise, a CLI flag would be unnecessary. Additionally, as a side note: Anyway, I consider this shortcut a necessary addition. I hope @qmx considers this for merger! |
|
Thanks @karamanliev - works just fine! |
Often you realize mid-prompt that you need plan mode: type out a question, notice you should explore first, then have to delete everything, run
/plan, and type it again. A keyboard shortcut fixes this: tapCtrl+Shift+Pat any point, no text lost.Summary
ctrl+shift+pas default shortcut viapi.registerShortcut()togglePlanMode()function (command + shortcut reuse same code)~/.pi/agent/keybindings.jsonChanges
plan-mode.ts: extracttogglePlanMode(), addpi.registerShortcut("ctrl+shift+p", ...)README.md: add Keyboard Shortcut section with customization example