Skip to content

Add terminal support for Emacs-like keymap #292

@LitoMore

Description

@LitoMore

Describe the solution you'd like?

In most place of macOS, we can use Emacs-like keymaps to control our cursor. Such as moving cursor, deleting characters...

But in Warp. I cannot use control + n and control + p to replace arrow keys.

Here is some information about the macOS built-in Emacs-like keymaps: https://jblevins.org/log/kbd

Here is a simple list to let you understand the habits of Emacs users:

Any textarea means any textarea on macOS, such as the textarea in browser, Notes app...

Keymap Function Any textarea iTerm / Terminal.app Warp
control + n Down arrow Yes Yes No
control + p Up arrow Yes Yes No
control + b Left arrow Yes Yes No
control + f Right arrow Yes Yes No
control + t Switch characters Yes Yes No
control + d Delete right side character Yes Yes No
control + g Cancel / ESC Yes Yes No
control + h Delete left side character Yes Yes Yes
control + a Move to start of line Yes Yes Yes
control + e Move to end of line Yes Yes Yes
control + u Delete line Yes Yes Yes
control + j Return No Yes No

Is your feature request related to a problem? Please describe.

I strongly recommend finding an Emacs and Vim expert in your team to be a consultant for this feature.

If there is not. I would like to help.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions