Closed yellowred closed 2 years ago
Removing cursor navigation from insert mode has been a recent (controversial) change, see #3671, #3865.
If you want to reintroduce the keybinds you can do so by adding them to your config.toml
:
[keys.insert]
up = "move_line_up"
down = "move_line_down"
left = "move_char_left"
right = "move_char_right"
Further to @CptPotato’s reply, if you want to enable the word movement keys and home and end functionality also, you need to add the following to your config file:
[keys.insert]
up = "move_line_up"
down = "move_line_down"
left = "move_char_left"
right = "move_char_right"
C-left = "move_prev_word_end"
C-right = "move_next_word_start"
end = "goto_line_end_newline"
home = "goto_line_start"
Although you might want to remove the up
and down
bindings so you don’t trigger the autocomplete bug when navigating vertically in insert mode.
Thanks for your help. Would be great to have it in the docs, so new comers like myself understood what that mode is for. Right now the docs say arrows work in the Insert mode.
EDIT: Was pointed out that this feature is not in the stable, so this why it is not in the docs yet.
@yellowred Hey Oleg, the decision is being reversed to some degree so the arrow keys, home, and end should continue working in the next release (however the C-left and C-right keys will be disabled).
Update: Ah, just saw your “EDIT” addendum now :)
@aral Thanks for update. I have also put arrows keys back into the config except Up and Down so I wouldn't be affected by auto complete bug. Nice to see that this project has so lively discussions and passionate devs.
Summary
I used arrow keys to move in INS mode to edit text, but after upgrade to a new version from 22.05 (dad6d0f3) it does not work anymore. Arrow keys move cursor in NORMAL mode, but not in INSERT. Home and End keys do not work either. I use Helix on Ubuntu to edit Rust files with lang server enabled.
Reproduction Steps
1. Start Helix `hx`. 2. `SPACE`, `f`, then select a file, Enter. 3. Use arrows to navigate to a code block. 4. `a` 5. Try to use arrows: not working. ### Helix log~/.cache/helix/helix.log
``` 2022-09-20T11:39:53.321 helix_lsp::transport [ERROR] err <- "thread '