You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
gitter-me
changed the title
Improve the usablity of the cursor movement in the commit window
Improve the usability of the cursor movement in the commit window
Mar 21, 2025
Option-left and option-right work for me on Mac to jump by word. If they don't work for you, then maybe it has something to with the terminal emulator you are using. I don't remember what it is on Windows, probably Alt-left/right.
You can also click with the mouse in the text to move the cursor, that can sometimes be faster for longer paragraphs of text.
On Linux I use the standard Gnome Terminal and on Windows the new Windows Terminal and the modern Powershell (pwsh) so nothing too fancy or exotic.
On Linux I just tried Alt+left/right and you are correct it works.
But this goes against the normal convention, in every system UI textbox/input and in (almost) all texteditors (vscode, sublime, notepad, gedit), it is Ctrl and not Alt.
I assume the contributors of lazygit are all on Mac? (On Mac its Alt)
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
The text was updated successfully, but these errors were encountered: