Add configurable multiline input behavior to chat
- 主要语言
- 没有语言数据
- 星标
- 2.1k
- 派生
- 153
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Feature summary
Please add an option for easier multiline prompt editing in chat.
### What problem are you trying to solve?
Writing multiline prompts is difficult because pressing `Enter` immediately sends the message instead of adding a new line.
**Proposed behavior:**
- `Enter` inserts a new line.
- `Ctrl+Enter` sends the prompt.
- Add a general setting or toggle to the chat so users can choose between this behavior and the current `Enter to send` behavior.
**Why:**
This would make writing and editing longer, structured prompts easier while accommodating different user preferences.
**Acceptance criteria:**
- Users can select their preferred send shortcut in Settings or with the toggle.
- The selected behavior persists across sessions.
- The UI clearly indicates the active send shortcut.
### Proposed solution
- `Enter` inserts a new line.
- `Ctrl+Enter` sends the prompt.
- Add a general setting or toggle to the chat so users can choose between this behavior and the current `Enter to send` behavior.
### Workflow impact
This would make longer, structured prompts easier to write and reduce accidental submissions, while preserving each user’s preferred workflow.
### Installation context
_No response_
### Additional context
_No response_
贡献指南
调研方向
未指定文件或测试。首先定位聊天编辑器以及设置或偏好持久化的入口点,然后跟踪当前发送快捷键的处理方式。完成的标准是用户可以选择任一快捷键,该选择会跨会话持久保存,并且当前使用的快捷键会被清晰显示。
由索引模型根据 Issue 内容生成。
评估
- 领域
- desktop, frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100