fix(tui): bind ctrl+j as newline by default
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
### Changed
|
||||
|
||||
- Added `Ctrl+J` as a default newline keybinding alongside `Shift+Enter`.
|
||||
- Renamed the displayed `zai` provider label to ZAI Coding Plan (Global) for clarity ([#5965](https://github.com/earendil-works/pi/issues/5965)).
|
||||
|
||||
## [0.79.10] - 2026-06-22
|
||||
|
||||
@@ -54,7 +54,7 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, `ctrl+1
|
||||
|
||||
| Keybinding id | Default | Description |
|
||||
|--------|---------|-------------|
|
||||
| `tui.input.newLine` | `shift+enter` | Insert new line |
|
||||
| `tui.input.newLine` | `shift+enter`, `ctrl+j` | Insert new line |
|
||||
| `tui.input.submit` | `enter` | Submit input |
|
||||
| `tui.input.tab` | `tab` | Tab / autocomplete |
|
||||
|
||||
|
||||
@@ -30,13 +30,7 @@ That mapping sends a raw linefeed byte. Inside pi, that is indistinguishable fro
|
||||
|
||||
If Claude Code 2.x or newer is the only reason you added that mapping, you can remove it, unless you want to use Claude Code in tmux, where it still requires that Ghostty mapping.
|
||||
|
||||
If you want `Shift+Enter` to keep working in tmux via that remap, add `ctrl+j` to your pi `newLine` keybinding in `~/.pi/agent/keybindings.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"newLine": ["shift+enter", "ctrl+j"]
|
||||
}
|
||||
```
|
||||
Pi binds `Ctrl+J` as a default newline alias, so `Shift+Enter` keeps working in tmux via that remap without extra pi configuration.
|
||||
|
||||
## WezTerm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user