mirror of
https://github.com/junegunn/fzf.git
synced 2026-06-17 06:26:08 +08:00
Bind alt-left/alt-right to backward-word/forward-word by default
Fix #4833
This commit is contained in:
@@ -11,6 +11,7 @@ CHANGELOG
|
||||
(seq 100; sleep 1; seq 100) | fzf --query 1 \
|
||||
--bind 'result:transform-header(echo result: $FZF_MATCH_COUNT),result-final:transform-footer(echo final: $FZF_MATCH_COUNT)'
|
||||
```
|
||||
- Bound `alt-left` to `backward-word` and `alt-right` to `forward-word` by default (#4833)
|
||||
|
||||
0.73.1
|
||||
------
|
||||
|
||||
+2
-2
@@ -2012,7 +2012,7 @@ A key or an event can be bound to one or more of the following actions.
|
||||
\fBbackward\-kill\-subword\fR
|
||||
\fBbackward\-kill\-word\fR \fIalt\-bs\fR
|
||||
\fBbackward\-subword\fR
|
||||
\fBbackward\-word\fR \fIalt\-b shift\-left\fR
|
||||
\fBbackward\-word\fR \fIalt\-b shift\-left alt\-left\fR
|
||||
\fBbecome(...)\fR (replace fzf process with the specified command; see below for the details)
|
||||
\fBbeginning\-of\-line\fR \fIctrl\-a home\fR
|
||||
\fBbell\fR (ring the terminal bell)
|
||||
@@ -2059,7 +2059,7 @@ A key or an event can be bound to one or more of the following actions.
|
||||
\fBfirst\fR (move to the first match; same as \fBpos(1)\fR)
|
||||
\fBforward\-char\fR \fIctrl\-f right\fR
|
||||
\fBforward\-subword\fR
|
||||
\fBforward\-word\fR \fIalt\-f shift\-right\fR
|
||||
\fBforward\-word\fR \fIalt\-f shift\-right alt\-right\fR
|
||||
\fBignore\fR
|
||||
\fBjump\fR (EasyMotion-like 2-keystroke movement)
|
||||
\fBkill\-line\fR
|
||||
|
||||
@@ -871,8 +871,10 @@ func defaultKeymap() map[tui.Event][]*action {
|
||||
|
||||
addEvent(tui.AltKey('b'), actBackwardWord)
|
||||
add(tui.ShiftLeft, actBackwardWord)
|
||||
add(tui.AltLeft, actBackwardWord)
|
||||
addEvent(tui.AltKey('f'), actForwardWord)
|
||||
add(tui.ShiftRight, actForwardWord)
|
||||
add(tui.AltRight, actForwardWord)
|
||||
addEvent(tui.AltKey('d'), actKillWord)
|
||||
add(tui.AltBackspace, actBackwardKillWord)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user