mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 12:55:17 +00:00
parent
23a06d63ac
commit
168453da71
@ -41,6 +41,7 @@ CHANGELOG
|
|||||||
```
|
```
|
||||||
- When you transform the input with `--with-nth`, the trailing white spaces
|
- When you transform the input with `--with-nth`, the trailing white spaces
|
||||||
are removed.
|
are removed.
|
||||||
|
- `ctrl-\`, `ctrl-]`, `ctrl-^`, and `ctrl-/` can now be used with `--bind`
|
||||||
- See https://github.com/junegunn/fzf/milestone/15?closed=1 for more details
|
- See https://github.com/junegunn/fzf/milestone/15?closed=1 for more details
|
||||||
|
|
||||||
[argmax]: https://unix.stackexchange.com/questions/120642/what-defines-the-maximum-size-for-a-command-single-argument
|
[argmax]: https://unix.stackexchange.com/questions/120642/what-defines-the-maximum-size-for-a-command-single-argument
|
||||||
|
@ -521,6 +521,14 @@ e.g.
|
|||||||
.br
|
.br
|
||||||
\fIctrl-space\fR
|
\fIctrl-space\fR
|
||||||
.br
|
.br
|
||||||
|
\fIctrl-\\\fR
|
||||||
|
.br
|
||||||
|
\fIctrl-]\fR
|
||||||
|
.br
|
||||||
|
\fIctrl-^\fR (\fIctrl-6\fR)
|
||||||
|
.br
|
||||||
|
\fIctrl-/\fR (\fIctrl-_\fR)
|
||||||
|
.br
|
||||||
\fIctrl-alt-[a-z]\fR
|
\fIctrl-alt-[a-z]\fR
|
||||||
.br
|
.br
|
||||||
\fIalt-[a-z]\fR
|
\fIalt-[a-z]\fR
|
||||||
|
@ -417,6 +417,14 @@ func parseKeyChords(str string, message string) map[int]string {
|
|||||||
chord = tui.BSpace
|
chord = tui.BSpace
|
||||||
case "ctrl-space":
|
case "ctrl-space":
|
||||||
chord = tui.CtrlSpace
|
chord = tui.CtrlSpace
|
||||||
|
case "ctrl-^", "ctrl-6":
|
||||||
|
chord = tui.CtrlCaret
|
||||||
|
case "ctrl-/", "ctrl-_":
|
||||||
|
chord = tui.CtrlSlash
|
||||||
|
case "ctrl-\\":
|
||||||
|
chord = tui.CtrlBackSlash
|
||||||
|
case "ctrl-]":
|
||||||
|
chord = tui.CtrlRightBracket
|
||||||
case "change":
|
case "change":
|
||||||
chord = tui.Change
|
chord = tui.Change
|
||||||
case "alt-enter", "alt-return":
|
case "alt-enter", "alt-return":
|
||||||
|
@ -345,6 +345,14 @@ func (r *LightRenderer) GetChar() Event {
|
|||||||
return Event{BSpace, 0, nil}
|
return Event{BSpace, 0, nil}
|
||||||
case 0:
|
case 0:
|
||||||
return Event{CtrlSpace, 0, nil}
|
return Event{CtrlSpace, 0, nil}
|
||||||
|
case 28:
|
||||||
|
return Event{CtrlBackSlash, 0, nil}
|
||||||
|
case 29:
|
||||||
|
return Event{CtrlRightBracket, 0, nil}
|
||||||
|
case 30:
|
||||||
|
return Event{CtrlCaret, 0, nil}
|
||||||
|
case 31:
|
||||||
|
return Event{CtrlSlash, 0, nil}
|
||||||
case ESC:
|
case ESC:
|
||||||
ev := r.escSequence(&sz)
|
ev := r.escSequence(&sz)
|
||||||
// Second chance
|
// Second chance
|
||||||
|
@ -284,6 +284,12 @@ func (r *FullscreenRenderer) GetChar() Event {
|
|||||||
return Event{keyfn('z'), 0, nil}
|
return Event{keyfn('z'), 0, nil}
|
||||||
case tcell.KeyCtrlSpace:
|
case tcell.KeyCtrlSpace:
|
||||||
return Event{CtrlSpace, 0, nil}
|
return Event{CtrlSpace, 0, nil}
|
||||||
|
case tcell.KeyCtrlBackslash:
|
||||||
|
return Event{CtrlBackSlash, 0, nil}
|
||||||
|
case tcell.KeyCtrlRightSq:
|
||||||
|
return Event{CtrlRightBracket, 0, nil}
|
||||||
|
case tcell.KeyCtrlUnderscore:
|
||||||
|
return Event{CtrlSlash, 0, nil}
|
||||||
case tcell.KeyBackspace2:
|
case tcell.KeyBackspace2:
|
||||||
if alt {
|
if alt {
|
||||||
return Event{AltBS, 0, nil}
|
return Event{AltBS, 0, nil}
|
||||||
|
@ -40,6 +40,12 @@ const (
|
|||||||
ESC
|
ESC
|
||||||
CtrlSpace
|
CtrlSpace
|
||||||
|
|
||||||
|
// https://apple.stackexchange.com/questions/24261/how-do-i-send-c-that-is-control-slash-to-the-terminal
|
||||||
|
CtrlBackSlash
|
||||||
|
CtrlRightBracket
|
||||||
|
CtrlCaret
|
||||||
|
CtrlSlash
|
||||||
|
|
||||||
Invalid
|
Invalid
|
||||||
Resize
|
Resize
|
||||||
Mouse
|
Mouse
|
||||||
|
Loading…
Reference in New Issue
Block a user