mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
support home/end keys in editors
This commit is contained in:
4
vendor/github.com/jesseduffield/gocui/edit.go
generated
vendored
4
vendor/github.com/jesseduffield/gocui/edit.go
generated
vendored
@ -49,9 +49,9 @@ func simpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
|
||||
v.TextArea.ToggleOverwrite()
|
||||
case key == KeyCtrlU:
|
||||
v.TextArea.DeleteToStartOfLine()
|
||||
case key == KeyCtrlA:
|
||||
case key == KeyCtrlA || key == KeyHome:
|
||||
v.TextArea.GoToStartOfLine()
|
||||
case key == KeyCtrlE:
|
||||
case key == KeyCtrlE || key == KeyEnd:
|
||||
v.TextArea.GoToEndOfLine()
|
||||
|
||||
// TODO: see if we need all three of these conditions: maybe the final one is sufficient
|
||||
|
Reference in New Issue
Block a user