mirror of
https://github.com/junegunn/fzf.git
synced 2026-05-18 14:29:58 +08:00
committed by
Junegunn Choi
parent
06e70570e2
commit
1ad7c617b1
@@ -689,6 +689,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
switch r.buffer[4] {
|
switch r.buffer[4] {
|
||||||
case '1', '2', '3', '4', '5', '6', '7', '8', '9':
|
case '1', '2', '3', '4', '5', '6', '7', '8', '9':
|
||||||
// Kitty iTerm2 WezTerm
|
// Kitty iTerm2 WezTerm
|
||||||
|
// ARROW "\e[1;1D"
|
||||||
// SHIFT-ARROW "\e[1;2D"
|
// SHIFT-ARROW "\e[1;2D"
|
||||||
// ALT-SHIFT-ARROW "\e[1;4D" "\e[1;10D" "\e[1;4D"
|
// ALT-SHIFT-ARROW "\e[1;4D" "\e[1;10D" "\e[1;4D"
|
||||||
// CTRL-SHIFT-ARROW "\e[1;6D" N/A
|
// CTRL-SHIFT-ARROW "\e[1;6D" N/A
|
||||||
@@ -743,6 +744,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if shift {
|
if shift {
|
||||||
return Event{ShiftUp, 0, nil}
|
return Event{ShiftUp, 0, nil}
|
||||||
}
|
}
|
||||||
|
return Event{Up, 0, nil}
|
||||||
case 'B':
|
case 'B':
|
||||||
if ctrlAltShift {
|
if ctrlAltShift {
|
||||||
return Event{CtrlAltShiftDown, 0, nil}
|
return Event{CtrlAltShiftDown, 0, nil}
|
||||||
@@ -765,6 +767,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if shift {
|
if shift {
|
||||||
return Event{ShiftDown, 0, nil}
|
return Event{ShiftDown, 0, nil}
|
||||||
}
|
}
|
||||||
|
return Event{Down, 0, nil}
|
||||||
case 'C':
|
case 'C':
|
||||||
if ctrlAltShift {
|
if ctrlAltShift {
|
||||||
return Event{CtrlAltShiftRight, 0, nil}
|
return Event{CtrlAltShiftRight, 0, nil}
|
||||||
@@ -787,6 +790,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if alt {
|
if alt {
|
||||||
return Event{AltRight, 0, nil}
|
return Event{AltRight, 0, nil}
|
||||||
}
|
}
|
||||||
|
return Event{Right, 0, nil}
|
||||||
case 'D':
|
case 'D':
|
||||||
if ctrlAltShift {
|
if ctrlAltShift {
|
||||||
return Event{CtrlAltShiftLeft, 0, nil}
|
return Event{CtrlAltShiftLeft, 0, nil}
|
||||||
@@ -809,6 +813,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if shift {
|
if shift {
|
||||||
return Event{ShiftLeft, 0, nil}
|
return Event{ShiftLeft, 0, nil}
|
||||||
}
|
}
|
||||||
|
return Event{Left, 0, nil}
|
||||||
case 'H':
|
case 'H':
|
||||||
if ctrlAltShift {
|
if ctrlAltShift {
|
||||||
return Event{CtrlAltShiftHome, 0, nil}
|
return Event{CtrlAltShiftHome, 0, nil}
|
||||||
@@ -831,6 +836,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if shift {
|
if shift {
|
||||||
return Event{ShiftHome, 0, nil}
|
return Event{ShiftHome, 0, nil}
|
||||||
}
|
}
|
||||||
|
return Event{Home, 0, nil}
|
||||||
case 'F':
|
case 'F':
|
||||||
if ctrlAltShift {
|
if ctrlAltShift {
|
||||||
return Event{CtrlAltShiftEnd, 0, nil}
|
return Event{CtrlAltShiftEnd, 0, nil}
|
||||||
@@ -853,6 +859,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if shift {
|
if shift {
|
||||||
return Event{ShiftEnd, 0, nil}
|
return Event{ShiftEnd, 0, nil}
|
||||||
}
|
}
|
||||||
|
return Event{End, 0, nil}
|
||||||
}
|
}
|
||||||
} // r.buffer[4]
|
} // r.buffer[4]
|
||||||
} // r.buffer[3]
|
} // r.buffer[3]
|
||||||
|
|||||||
Reference in New Issue
Block a user