jesseduffield / jesseduffield/lazygit

Improve the usability of the cursor movement in the commit window

Open
#4,412 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
In the commit window only char by char movement with the left and right arrow is possible.
In input fields (or most text editors) if you press ctrl (option on mac) and the left/right arrow key the cursor moves word by word not character by character.

**Describe the solution you'd like**
Move word by word, if ctrl (option on mac) is pressed with the arrow keys

**Describe alternatives you've considered**
None

**Additional context**
To make it perfect support also selection with the movent keys.
If shift is pressed it will be selected (shift+arrow selects the character / shift+ctrl+arrow selects the whole word, moving in reverse un-selects)
I know that implementing selection correctly is quite complicated and I don't know how lazygit implemented the TUI (custom UI or a library), and therefore I don't know if a selection is possible at all

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.