mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 00:35:51 +00:00
feat(keybindings): 注册 EffortPanel context 与 6 个 action
绑定 ←/→/h/l/home/end/enter/escape/q/ctrl+c 到 effortPanel:* action。 与 ModelPicker context 范式一致,避免左右键被全局 keybinding 拦截。 Co-Authored-By: glm-5.2 <zai-org@claude-code-best.win>
This commit is contained in:
@@ -326,6 +326,22 @@ export const DEFAULT_BINDINGS: KeybindingBlock[] = [
|
|||||||
space: 'modelPicker:toggle1M',
|
space: 'modelPicker:toggle1M',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// Effort panel (slash /effort without args)
|
||||||
|
{
|
||||||
|
context: 'EffortPanel',
|
||||||
|
bindings: {
|
||||||
|
left: 'effortPanel:decrease',
|
||||||
|
right: 'effortPanel:increase',
|
||||||
|
h: 'effortPanel:decrease',
|
||||||
|
l: 'effortPanel:increase',
|
||||||
|
home: 'effortPanel:home',
|
||||||
|
end: 'effortPanel:end',
|
||||||
|
enter: 'effortPanel:confirm',
|
||||||
|
escape: 'effortPanel:cancel',
|
||||||
|
q: 'effortPanel:cancel',
|
||||||
|
'ctrl+c': 'effortPanel:cancel',
|
||||||
|
},
|
||||||
|
},
|
||||||
// Select component navigation (used by /model, /resume, permission prompts, etc.)
|
// Select component navigation (used by /model, /resume, permission prompts, etc.)
|
||||||
{
|
{
|
||||||
context: 'Select',
|
context: 'Select',
|
||||||
|
|||||||
@@ -154,6 +154,13 @@ export const KEYBINDING_ACTIONS = [
|
|||||||
'modelPicker:decreaseEffort',
|
'modelPicker:decreaseEffort',
|
||||||
'modelPicker:increaseEffort',
|
'modelPicker:increaseEffort',
|
||||||
'modelPicker:toggle1M',
|
'modelPicker:toggle1M',
|
||||||
|
// Effort panel actions (slash /effort without args)
|
||||||
|
'effortPanel:decrease',
|
||||||
|
'effortPanel:increase',
|
||||||
|
'effortPanel:home',
|
||||||
|
'effortPanel:end',
|
||||||
|
'effortPanel:confirm',
|
||||||
|
'effortPanel:cancel',
|
||||||
// Select component actions (distinct from confirm: to avoid collisions)
|
// Select component actions (distinct from confirm: to avoid collisions)
|
||||||
'select:next',
|
'select:next',
|
||||||
'select:previous',
|
'select:previous',
|
||||||
|
|||||||
Reference in New Issue
Block a user