Skip to content

shift+enter submits and does not create new line #5188

@snorreks

Description

@snorreks

What happened?

If I press shift+enter i submit instead of creating a new line.

With this agent/keybindings.json:

  {
    "tui.input.newLine": ["shift+enter", "alt+enter", "ctrl+j"],
    "tui.input.submit": ["enter"]
  }

ctr+j works and creates a new line. But shift+enter does not, it submit.

if i change "tui.input.submit": ["enter"] to another key, then pressing enter or shift+enter does nothing.

Steps to reproduce

  1. Add the config above to ~/.pi/agent/keybindings.json
  2. /reload
  3. Press shift+enter → submits
  4. Remap submit to something else → enter and shift+enter do nothing

I am on linux:

Terminal: kitty 0.47.0
Kernel: Linux 7.0.10
Shell: fish 4.7.1
OS: NixOS 26.05 (Yarara) x86_64

Expected behavior

Expect to enter a new line when pressing shift+enter.

Version

0.77.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions