helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.09k stars 2.46k forks source link

Enter key maps to j #8971

Closed migsar closed 10 months ago

migsar commented 10 months ago

Summary

I tried my best to figure out this on my own, maybe it is mentioned somewhere but I didn't think of the right keywords.

When I enter the editor, in Normal mode, enter key maps to j, in Insert mode it works fine. I have to use shift+enter to execute any command.

I discovered it may be related to Alacritty, since in Tilix it works fine. Nothing is logged, so I am not sure if it is a Helix thing or an Alacritty thing.

Reproduction Steps

I tried this: 1. `hx` 2. Pressed `:q` to quit the editor. 3. When I press `enter`, `:qj` appears in the command bar, I have to press `shift+enter` to execute the command. I expected this to happen: Close the application. Instead, this happened: A `j` character appears after the command I'm typing as part of the command. ### Helix log No problem being logged. ### Platform Linux Ubuntu 22.04.3 LTS ### Terminal Emulator alacritty 0.10.1 () ### Installation Method apt package manager ### Helix Version helix 23.10 (f6021dd0)
pascalkuthe commented 10 months ago

I can't reproduce this, I also use alacritty and never had any similar issues on a wide variety of distros and helic versions. Perhaphs something is wrong with your setup or alacritty installation. Nothing we can do on our end if it's not reproducible