feat: 终端支持底部面板打开并允许用户选择打开位置
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
### 使用场景 / Use case
在 Cindy 中需要使用终端(例如运行命令、查看输出或执行开发任务)时,希望可以根据当前工作流选择终端在界面中的位置。侧边栏终端适合窄屏并排查看,但需要更大终端空间或同时查看上下文时,底部面板更方便。
### 当前问题 / Current limitation
目前“打开终端”只能通过侧边栏打开,无法在底部面板打开,也没有设置项让用户选择默认打开位置。侧边栏会占用横向空间,不适合长命令或宽输出,频繁切换也不方便。
### 期望方案 / Proposed solution
增加终端打开位置选项,至少包括:
- 侧边栏(保留当前行为)
- 底部面板(可拖拽调整高度,并支持折叠/展开)
允许用户在设置中选择默认打开位置,或在打开终端时选择位置;同时记住用户上次的选择。如果一次实现全部选项成本较高,也可以优先支持底部面板,再补充可配置的默认位置。
### 已考虑的替代方案 / Alternatives considered
继续只使用侧边栏:实现简单,但无法解决终端需要更大横向空间的问题。
打开独立的外部终端窗口:可以获得更大空间,但会失去 Cindy 内的上下文,体验也不如在 Cindy 内切换打开位置。
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the existing terminal-opening UI and settings persistence flow, then verify that sidebar behavior remains intact and that a bottom-panel terminal can be resized, collapsed, reopened, and retain the user’s chosen location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100