MoonshotAI / MoonshotAI/kimi-cli
Feature Request: Shift+Enter to insert newline in prompt input
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
Description
Currently, pressing Enter in the prompt input submits the message. To insert a newline, users must use Ctrl-J or Alt-Enter.
However, Shift+Enter has become the universal standard across modern chat interfaces (ChatGPT, Claude, Discord, Slack, etc.) for inserting a new line without submitting. Muscle memory from these platforms makes the current kimi-cli behavior feel unintuitive.
Current Behavior
| Shortcut | Action |
|---|---|
| Enter | Submit prompt |
| Ctrl-J | Insert newline |
| Alt-Enter | Insert newline |
| Shift+Enter | ❌ Not supported for newline |
Desired Behavior
| Shortcut | Action |
|---|---|
| Enter | Submit prompt |
| Shift+Enter | Insert newline |
| Ctrl-J / Alt-Enter | Keep for backward compatibility |
Why This Matters
- Muscle memory: Millions of users are trained on Shift+Enter from web chat UIs. Supporting it reduces friction for new CLI users.
- Ergonomics: Shift+Enter is easier to discover and type than Ctrl-J or Alt-Enter.
- Parity: Aligns kimi-cli with the de-facto standard behavior users expect.
Environment
- kimi-cli version: latest
- OS: macOS (but applies to all platforms)
Thanks for considering this!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the prompt input's keyboard handling and reproduce the current Enter, Ctrl-J, and Alt-Enter behavior in kimi-cli. Add Shift+Enter as another newline shortcut while preserving Enter submission and the existing alternatives, then verify the behavior interactively on the CLI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100