Skip to content
Myr

Make ctrl-alt-h a synonym of ctrl-alt-backspace on non-Windows environment (#4589)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by GitHub · parent 53a8aee · Browse files · 2 files+7 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−3 removed

  • other:+7 added−3 removed

2 files+7 added−3 removed

modified:man/man1/fzf.1+2 added-2 removed
1493 unmodified lines
1494\fIctrl\-^\fR (\fIctrl\-6\fR)1495.br1496\fIctrl\-/\fR (\fIctrl\-_\fR)1497.br1498\fIctrl\-alt\-[a\-z]\fR1498\fIctrl\-alt\-[a\-z]\fR (\fIctrl\-alt\-h\fR is \fIctrl\-alt\-backspace\fR on non-Windows)1499.br1500\fIalt\-[*]\fR (Any case-sensitive single character is allowed)1501.br1502\fIf[1\-12]\fR
121 unmodified lines
1624\fIctrl\-alt\-home\fR1625.br1626\fIctrl\-alt\-end\fR1627.br1628\fIctrl\-alt\-backspace\fR (\fIctrl\-alt\-bspace\fR \fIctrl\-alt\-bs\fR)1628\fIctrl\-alt\-backspace\fR (\fIctrl\-alt\-bspace\fR \fIctrl\-alt\-bs\fR) (\fIctrl\-alt\-h\fR (non-Windows))1629.br1630\fIctrl\-alt\-delete\fR1631.br1632\fIctrl\-alt\-page\-up\fR
553 unmodified lines
modified:src/options.go+5 added-1 removed
1215 unmodified lines
1216 add(tui.F12)1217 default:1218 runes := []rune(key)1219 if len(key) == 10 && strings.HasPrefix(lkey, "ctrl-alt-") && isAlphabet(lkey[9]) {1220 r := rune(lkey[9])1220 evt := tui.CtrlAltKey(rune(key[9]))1221 evt := tui.CtrlAltKey(r)1222 if r == 'h' && !util.IsWindows() {1223 evt = tui.CtrlAltBackspace.AsEvent()1224 }1225 chords[evt] = key1226 list = append(list, evt)1227 } else if len(key) == 6 && strings.HasPrefix(lkey, "ctrl-") && isAlphabet(lkey[5]) {1228 add(tui.EventType(tui.CtrlA.Int() + int(lkey[5]) - 'a'))
2576 unmodified lines