Skip to content

Keymap for Terminal History Navigation #18628

@ogabrielinacio

Description

@ogabrielinacio

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

How can I use Ctrl+P to navigate to the previous command in terminal history and Ctrl+N to move to the next command in Zed's terminal?

In a regular terminal, these are standard GNU readline features, and I would like to enable similar behavior while inside the terminal. Other keybindings, such as Ctrl+A for moving to the beginning of the line, Ctrl+E for the end of the line, and Alt+F and Alt+B for word navigation, are functioning correctly. However, Ctrl+N and Ctrl+P are not behaving as expected—instead, they trigger a different action. How can I make them work for terminal history navigation like they do in standard GNU terminals?

Environment

Fedora Linux 40 (KDE Plasma) x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:integrations/terminalFeedback for terminal integration, shell commands, etcbugDEPRECATED label: use issue type 'Bug' insteadplatform:linuxhappens only on linux, not other OSstaleLabel used by `stale` action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions