Skip to content

Ctrl + Left/Right Arrow Keys should jump entire words #7683

Closed as not planned
@PotatoesFall

Description

@PotatoesFall

Description

When in normal, insert or selection mode, using arrow keys moves the cursor.

Holding Ctrl while using the left/right arrow keys does nothing, instead the cursor should move entire words, similar to the behavior in prompts: https://github.com/helix-editor/helix/blob/master/helix-term/src/ui/prompt.rs#L509

Why is this useful

different keyboard layouts make arrow keys preferable

Generally, navigation is done using hjkl or whatever the user has mapped. However, I (and maybe others) are often switching between keyboard layouts and have the arrow keys conveniently accessible on a second layer, making it easier to navigate using arrow keys, rather than switching keymap constantly.

only useful in insert mode

In normal or selection mode, this would not be an improvement, since b, e, w etc. are around. However in insert mode this feature proves useful as we need to switch to normal mode to navigate, then back into insert mode, when we could simply use the arrow keys (for small movements)

similar to most other text fields

As much as we might like to, we are not using helix all day. We have to use forms on websites, other text editors, etc. Ctrl + left/right arrow almost always moves entire words. In other words, most people already have this in their muscle memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions