Skip to content

feat(shortcut)支持配置任务预览切换快捷键#292

Open
suntianc wants to merge 1 commit into
hanshuaikang:mainfrom
suntianc:codex/configurable-view-shortcuts
Open

feat(shortcut)支持配置任务预览切换快捷键#292
suntianc wants to merge 1 commit into
hanshuaikang:mainfrom
suntianc:codex/configurable-view-shortcuts

Conversation

@suntianc

Copy link
Copy Markdown
Contributor

Summary

  • 新增任务 / 文件预览切换快捷键设置,支持 Cmd/Ctrl + Shift + E 和 Cmd/Ctrl + Shift + Space。
  • 将视图切换快捷键保存到应用级 settings,并在应用重启后恢复用户选择。
  • 将任务列表分组逻辑抽到共享模型,保证数字快捷键选择任务时与列表展示顺序一致。
  • 扩展快捷键 helper 与回归测试,覆盖可配置视图切换和 1-9 数字导航。

Root cause

原先任务 / 文件预览切换快捷键是固定的,设置页只展示说明,用户无法按偏好调整;同时数字快捷键需要复用任务列表的排序与分组规则,避免快捷键选中的任务和 UI 中看到的顺序不一致。

Validation

  • pnpm exec prettier --check src/components/ProjectPage.tsx src/components/TaskPanel.tsx src/components/app-settings/AgentPathSection.tsx src/components/app-settings/ShortcutsPanel.tsx src/components/app-settings/types.ts src/components/task-panel/TaskList.tsx src/components/task-panel/taskListModel.ts src/i18n.tsx src/shortcuts.ts src/test/send-shortcut.test.ts
  • git diff --check
  • pnpm lint
  • pnpm test -- --run
  • pnpm build

@suntianc suntianc changed the title [codex] 支持配置任务预览切换快捷键 feat(shortcut)支持配置任务预览切换快捷键 Jun 17, 2026
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.

1 participant