Bind CTRL-/ and ALT-/ to toggle-wrap by default

This commit is contained in:
Junegunn Choi
2024-07-06 14:10:02 +09:00
parent 8ff4e52641
commit 3b2e932c13
7 changed files with 18 additions and 16 deletions

View File

@@ -617,6 +617,8 @@ func defaultKeymap() map[tui.Event][]*action {
if !util.IsWindows() {
add(tui.CtrlZ, actSigStop)
}
add(tui.CtrlSlash, actToggleWrap)
addEvent(tui.AltKey('/'), actToggleWrap)
addEvent(tui.AltKey('b'), actBackwardWord)
add(tui.ShiftLeft, actBackwardWord)