Skip to content
Myr

Bind alt-left/alt-right to backward-word/forward-word by default

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

Fix #4833

authored by Junegunn Choi · committed by Junegunn Choi · parent 5dd698b · Browse files · 3 files+5 added−2 removed
This commit

State

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

Diff stats

3 files+5 added−2 removed

  • other:+5 added−2 removed

3 files+5 added−2 removed

modified:man/man1/fzf.1+2 added-2 removed
2010 unmodified lines
2011 \fBbackward\-delete\-char/eof\fR (same as \fBbackward\-delete\-char\fR except aborts fzf if query is empty)2012 \fBbackward\-kill\-subword\fR2013 \fBbackward\-kill\-word\fR \fIalt\-bs\fR2014 \fBbackward\-subword\fR2015 \fBbackward\-word\fR \fIalt\-b shift\-left\fR2015 \fBbackward\-word\fR \fIalt\-b shift\-left alt\-left\fR2016 \fBbecome(...)\fR (replace fzf process with the specified command; see below for the details)2017 \fBbeginning\-of\-line\fR \fIctrl\-a home\fR2018 \fBbell\fR (ring the terminal bell)2019 \fBbest\fR (move to the best match; same as \fBfirst\fR if raw mode is disabled)
38 unmodified lines
2058 \fBexecute\-silent(...)\fR (see below for the details)2059 \fBfirst\fR (move to the first match; same as \fBpos(1)\fR)2060 \fBforward\-char\fR \fIctrl\-f right\fR2061 \fBforward\-subword\fR2062 \fBforward\-word\fR \fIalt\-f shift\-right\fR2062 \fBforward\-word\fR \fIalt\-f shift\-right alt\-right\fR2063 \fBignore\fR2064 \fBjump\fR (EasyMotion-like 2-keystroke movement)2065 \fBkill\-line\fR2066 \fBkill\-subword\fR
285 unmodified lines
modified:src/terminal.go+2 added
869 unmodified lines
870 addEvent(tui.AltKey('/'), actToggleWrapWord)871872 addEvent(tui.AltKey('b'), actBackwardWord)873 add(tui.ShiftLeft, actBackwardWord)874 add(tui.AltLeft, actBackwardWord)875 addEvent(tui.AltKey('f'), actForwardWord)876 add(tui.ShiftRight, actForwardWord)877 add(tui.AltRight, actForwardWord)878 addEvent(tui.AltKey('d'), actKillWord)879 add(tui.AltBackspace, actBackwardKillWord)880881 add(tui.Up, actUp)
7500 unmodified lines
modified:CHANGELOG.md+1 added
9 unmodified lines
10 # 'result-final' fires once after the stream closes (footer shows the final count)11 (seq 100; sleep 1; seq 100) | fzf --query 1 \12 --bind 'result:transform-header(echo result: $FZF_MATCH_COUNT),result-final:transform-footer(echo final: $FZF_MATCH_COUNT)'13 ```14- Bound `alt-left` to `backward-word` and `alt-right` to `forward-word` by default (#4833)15160.73.117------18- Bug fixes
3315 unmodified lines