增加 Ctrl+K 模糊搜索以快速定位会话和项目
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**客户端版本**: 0.1.61
**反馈类型**: feature
---
## 使用场景
当用户在 Cindy 中管理多个项目和较多历史会话时,希望通过类似飞书或 Slack 的快速搜索入口,迅速找到目标项目或会话。
## 当前痛点
目前主要依赖左侧会话树逐层浏览和手动切换。对于近期不活跃、位置较深或数量较多的项目和会话,定位成本较高,切换体验不够高效。
## 诉求
增加一个由 `Ctrl+K` 唤起的全局搜索条,支持对以下内容进行模糊搜索:
- 会话标题
- 项目名称
用户可以通过键盘或鼠标选择搜索结果:
- 选中项目时,自动切换到该项目
- 选中会话时,自动切换到所属项目,展开必要的左侧会话树,并定位到具体会话
## 建议方案
搜索结果可以区分项目和会话,并支持上下键选择、回车确认和关闭搜索。搜索范围和交互可沿用常见的快速切换/命令面板模式,以便用户在不离开当前界面的情况下完成定位。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26100)
**界面语言**: zh-CN
Contributor guide
Research direction
Start by tracing the client’s project and session tree, then inspect existing keyboard navigation and switching behavior. Define the Ctrl+K search entry point, result selection, project switching, session expansion, and closing behavior from the issue. Done means fuzzy project and session search works with keyboard or mouse and navigates to the selected target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100