readline: add alt+arrow to move by word default binding. Common on macOS

This commit is contained in:
Kovid Goyal 2022-12-27 10:59:13 +05:30
parent 6e4376e44e
commit e673747ef4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -41,7 +41,9 @@ func default_shortcuts() *ShortcutMap {
sm.AddOrPanic(ActionMoveToEndOfWord, "alt+f")
sm.AddOrPanic(ActionMoveToEndOfWord, "ctrl+right")
sm.AddOrPanic(ActionMoveToEndOfWord, "alt+right")
sm.AddOrPanic(ActionMoveToStartOfWord, "ctrl+left")
sm.AddOrPanic(ActionMoveToStartOfWord, "alt+left")
sm.AddOrPanic(ActionMoveToStartOfWord, "alt+b")
sm.AddOrPanic(ActionCursorLeft, "left")