[DOCS] Keybindings reference missing `chat:newline` action for configurable multi-line input
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/keybindings
https://code.claude.com/docs/en/terminal-config
Section/Topic
keybindingspage: Chat actions tableterminal-configpage: "Line breaks" guidance for custom keybindings
Current Documentation
keybindings currently lists these Chat actions:
chat:cancelchat:cycleModechat:modelPickerchat:thinkingTogglechat:submitchat:undochat:externalEditorchat:stashchat:imagePaste
No chat:newline action is documented.
terminal-config says:
"Keyboard shortcut: Set up a keybinding to insert a newline in other terminals"
But it does not specify which keybinding action performs newline insertion.
What's Wrong or Missing?
Claude Code v2.1.47 added a new keybinding action:
chat:newlinefor configurable multi-line input
That action is discoverable in release notes but not in documentation. Users who want Enter to insert newlines and another key to submit cannot discover the exact action name from docs.
Suggested Improvement
- Add
chat:newlineto the Chat actions table inkeybindings. - Include a short example config that maps Enter to newline and a different key to submit.
- Update
terminal-configline-break section to reference the exact action name (chat:newline) and cross-link tokeybindings.
Suggested example:
{
"bindings": [
{
"context": "Chat",
"bindings": {
"enter": "chat:newline",
"ctrl+j": "chat:submit"
}
}
]
}
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/keybindings | 91-106 | Chat actions table omits chat:newline |
| https://code.claude.com/docs/en/terminal-config | 15-22 | Mentions "keyboard shortcut" for newline but not the action name |
Release note reference (v2.1.47):
- "Added
chat:newlinekeybinding action for configurable multi-line input"
Dedup check:
- Open issue #26477 requests adding the feature itself. This issue tracks post-release documentation coverage now that the feature exists.
8 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
in addition, the keybindings doc page states:
when i just tried that in CC 2.1.47, it didn't show up in the slash-command autocomplete, and when i tried it anyway, it said:
while i appreciate that this appears to now be finally customizable, documentation needs to be consistently updated when features are added, so that the release notes don't end up being an empty gift box half the time ...
update: moreover, i can't even get the feature to work, no matter what i put in
keybindings.json. as expected, CC itself is no help, displaying its usual lack of self-awarenessI was just about to submit the same complaint
Feature Request: Default keybinding for newline in chat input
Summary
There is no default keybinding to insert a newline in the chat input. This makes composing multi-line prompts unnecessarily difficult, and multi-line prompts are important for writing clear, structured instructions.
Current behavior
entersubmits the message (the only default chat input binding)chat:newlinehas no default keybindingshift+enterdoes not work because most terminal emulators send the same keycode forshift+enterandenter— they are indistinguishableWorkarounds that exist today
ctrl+gto open an external editor — works, but can conflict with other apps (e.g., Gemini usesctrl+gglobally on macOS)\continuation before pressing enter — works, but not intuitiveSuggestion
Assign a default keybinding to
chat:newlinethat actually works in terminals.alt+enter(oroption+enteron macOS) is distinguishable fromenterin most terminal emulators and is a common newline convention in other tools (Slack, JetBrains IDEs, etc.).Why this matters
Good prompts are often multi-line — numbered instructions, code blocks, structured context. Making newline entry frictionless would improve the experience for everyone using Claude Code in the terminal.
Environment
Still unresolved as of 2026-03-17.
chat:newlinedoes not appear in the keybindings reference page despite being confirmed in the changelog.Correction after a full re-verification on 2026-04-01: this issue is still only partially resolved, not resolved. The keybindings page now documents
chat:newline, but theterminal-configpage still tells users to set up a newline shortcut without naming or linking to thechat:newlineaction, so this should remain open.Setting chat:newline did not work for me
Issue #26708 Verification
Title: [DOCS] Keybindings reference missing
chat:newlineaction for configurable multi-line inputIssue Date: (filed pre-verification)
Verification Date: 2026-04-27
Status: RESOLVED
Issue Summary
The issue reported that the
chat:newlinekeybinding action (added in v2.1.47 / changelog entry referencing PR #26075) was missing from the keybindings documentation page and that the terminal-config page referenced a "keyboard shortcut" for newline insertion without naming the specific action. Three documentation gaps were identified:chat:newlineabsent from the Chat actions table on the keybindings pageterminal-configpage did not reference thechat:newlineaction name or cross-link to keybindingsVerification Results
Claim 1:
chat:newlinemissing from Chat actions table on keybindings page/docs/en/keybindings) now listschat:newlineat line 112 in the Chat actions table:> |
chat:newline| Ctrl+J | Insert a newline without submitting |Claim 2: No example config showing Enter-to-newline with alternate submit key
ctrl+xtochat:newlinein the Chat context, demonstrating the chord-unbinding pattern needed to remap newline. The terminal-config page at line 36 explicitly instructs:> "To bind newline to a different key, or to swap behavior so Enter inserts a newline and Shift+Enter submits, map the
chat:newlineandchat:submitactions in your keybindings file."Claim 3:
terminal-configpage does not referencechat:newlineaction name or cross-linkchat:newlineandchat:submitaction names and links to the keybindings page ([keybindings file](https://code.claude.com/docs/en/keybindings)). Line 18 also provides a general cross-link: "To change which keys Claude Code itself responds to, see keybindings instead."Current State
| Location | Before | After |
|----------|--------|-------|
| keybindings.md Chat actions table (line 112) |
chat:newlinemissing |chat:newlinedocumented with defaultCtrl+Jand description || keybindings.md example config (lines 403-416) | No newline remapping example | Example showing
ctrl+xmapped tochat:newline|| terminal-config.md line 36 | Vague "keyboard shortcut" reference | Explicit
chat:newlineandchat:submitaction names with cross-link |Suggested Fix
N/A — all requested documentation changes have been applied.
References
chat:newlinekeybinding action for configurable multi-line input")Conclusion & Recommendation
Primary Concern: The
chat:newlinekeybinding action was not documented after being added in a release.Resolution Status: Fully resolved. All three documentation gaps identified in the issue have been addressed in the current docs mirror.
Recommendation: Close as completed.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.