Skip to content

Regression: Shift+Enter no longer inserts newline inside Zellij #3259

@NigelThorne

Description

@NigelThorne

Summary

Shift+Enter no longer inserts a newline in pi when running inside Zellij after upgrading pi. It still works correctly outside Zellij.

Environment

  • pi: 0.67.3
  • zellij: 0.43.1
  • terminal outside zellij: works as expected
  • custom pi keybindings:
{
  "tui.input.newLine": ["ctrl+j", "shift+enter"],
  "tui.input.submit": ["enter"]
}

Expected behaviour

Inside Zellij, Shift+Enter should insert a newline in the editor.

Actual behaviour

Inside Zellij, Shift+Enter does not insert a newline / behaves like plain Enter.

Reproduction

  1. Start zellij
  2. Launch pi
  3. Type some text in the editor
  4. Press Shift+Enter

Observations

  • This used to work inside Zellij before upgrading pi.
  • It still works outside Zellij.
  • pi docs currently say for Zellij: "no extra Zellij config is required" and pi uses modifyOtherKeys mode 2 inside Zellij.

Notes

This looks like a regression in pi’s key handling around Zellij-specific modified Enter detection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    inprogressIssue 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