zai-org / zai-org/feedback

[建议 / Feature] 侧边栏两项改进:快捷键可自定义(如 Ctrl+B→Ctrl+Q)+ 双击会话条目重命名(类似 F2)

Open
#529 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复提议 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category

UI / 界面体验 · UI / UX

涉及的 Agent 框架 · Agent framework

不涉及框架 · Not framework-specific

使用场景 · Use case

① 快捷键固定不可改

ZCode 桌面端的侧边栏显示/隐藏快捷键固定为 Ctrl+B,设置里找不到修改入口。Ctrl+B 的按键跨度很大(小指压住 Ctrl、食指要伸到左上角去够 B),切侧边栏又是每天几十次的高频动作,连续操作时手指很不舒服;而 Ctrl+Q 位置正好顺手。除了侧边栏,切换终端等其他默认键位目前也无法查看或调整——想换一个更顺手的键、或者和输入法/其他常用软件的键位冲突时,只能被动接受默认值。

② 会话改名步骤偏多

侧边栏里的会话标题基本是自动生成的,跑过几轮之后列表里一堆"XX 实现 / XX 修复"很难分清哪条是哪条,想给常用会话改成自己认得的短名。目前改名的入口在右键菜单里(「重命名任务」):悬停 → 右键 → 点菜单 → 弹窗输入,偶尔整理一条还好,经常整理就嫌烦。Cursor、Codex 桌面端都提供了更直接的方式——双击会话条目就能进入重命名。

建议方案 · Proposal

① 快捷键自定义(形态可参考 VS Code 和 Codex 桌面端):

  • 方案 A(推荐):Settings 中增加「键盘快捷键 / Keyboard Shortcuts」页,列出各命令(如 workspaceSidebar.toggleSidebar「切换侧边栏」、toggleTerminal「切换终端」、quickPick.command.* 等),支持修改、清除和重置;
  • 方案 B(更轻量):支持一个键位配置文件(类似 VS Code 的 keybindings.json),允许把动作映射到自定义组合键。

优先覆盖高频 UI 动作即可:切换侧边栏、切换终端、切换模型菜单、新建会话等。

② 双击会话条目重命名(类似资源管理器里双击文件名 / F2):

双击侧边栏会话条目,进入重命名编辑态——原地出现输入框,回车确认、Esc 取消;现有右键菜单入口保留。本地观察(3.11.2):改名的底层链路其实已经齐了——右键菜单项(taskList.rename「重命名任务」)、带输入法状态处理的重命名输入框、协议层的 renameSession {title} 命令(与 createSession / deleteSession 同级);会话条目目前没有绑定双击事件,双击只需要接到这条现成链路上。

预期价值 · Expected value
  • 切侧边栏这类高频动作换成顺手键位后,每天能省下大量别扭的手指移动,也避免与输入法、其他工具的键位冲突,和 VSCode 系 IDE 的键位习惯对齐,跨工具切换成本更低。
  • 有了双击重命名,会话一多也能随手把名字改成自己认得的,列表保持可读;交互习惯与 Cursor、Codex 对齐,跨工具不用重新记一套操作。
你认为的优先级 · Your perceived priority

中 · Medium

你使用的 ZCode 版本 / 环境 · ZCode version / environment

ZCode 3.11.2 / Windows 11 x64 桌面端

补充材料 · Additional context
  • VS Code 键位自定义官方文档(Keyboard Shortcuts editor + keybindings.json):https://code.visualstudio.com/docs/configure/keybindings
  • Codex 桌面端已内置 Settings > Keyboard Shortcuts(官方文档 "To find, customize, or reset app shortcuts, open Settings > Keyboard Shortcuts"):https://learn.chatgpt.com/docs/reference/commands
  • 本地观察(键位):客户端渲染层已有 workspaceSidebar.toggleSidebarquickPick.command.toggleSidebarquickPick.command.toggleTerminal 等命令 id 和对应文案,具备做成可配置键位的基础。
  • 本地观察(重命名):3.11.2 客户端中会话重命名的菜单项、输入框与协议命令均已存在(taskList.rename / renameSession {title}),仅缺双击入口的绑定。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing workspaceSidebar.toggleSidebar, quickPick.command.toggleSidebar, quickPick.command.toggleTerminal, taskList.rename, and renameSession {title} entry points in the desktop client. Define the scope for configurable shortcuts and the double-click rename interaction, then verify that shortcut changes work and that double-click supports edit, Enter confirmation, and Esc cancellation while preserving the context-menu path.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.