Skip to content
Myr

Add shift-up and shift-down

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

For now, they are respectively bound to preview-up and preview-down by default (TBD). Not available on tcell build. Close #1201

authored by Junegunn Choi · committed by Junegunn Choi · parent cce6aef · Browse files · 5 files+23 added−15 removed
This commit

State

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

Diff stats

5 files+23 added−15 removed

  • other:+23 added−15 removed

5 files+23 added−15 removed

modified:man/man1/fzf.1+5 added-3 removed
19 unmodified lines
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN22THE SOFTWARE.23..24.TH fzf 1 "Dec 2017" "fzf 0.17.3" "fzf - a command-line fuzzy finder"24.TH fzf 1 "Feb 2018" "fzf 0.17.4-devel" "fzf - a command-line fuzzy finder"2526.SH NAME27fzf - a command-line fuzzy finder28
447 unmodified lines
476 \fIhome\fR477 \fIend\fR478 \fIpgup\fR (\fIpage-up\fR)479 \fIpgdn\fR (\fIpage-down\fR)480 \fIshift-up\fR481 \fIshift-down\fR482 \fIshift-left\fR483 \fIshift-right\fR484 \fIleft-click\fR485 \fIright-click\fR
35 unmodified lines
521 \fBpage-down\fR \fIpgdn\fR522 \fBpage-up\fR \fIpgup\fR523 \fBhalf-page-down\fR524 \fBhalf-page-up\fR523 \fBpreview-down\fR524 \fBpreview-up\fR525 \fBpreview-down\fR \fIshift-down\fR526 \fBpreview-up\fR \fIshift-up\fR527 \fBpreview-page-down\fR528 \fBpreview-page-up\fR529 \fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)530 \fBprint-query\fR (print query and exit)
78 unmodified lines
modified:src/tui/light.go+9 added-12 removed
456 unmodified lines
457 return Event{F8, 0, nil}458 }459 }460 return Event{Invalid, 0, nil}461 case 59:461 case ';':462 if len(r.buffer) != 6 {463 return Event{Invalid, 0, nil}464 }465 *sz = 6466 switch r.buffer[4] {467 case 50:467 case '2', '5':468 switch r.buffer[5] {469 case 68:470 return Event{Home, 0, nil}471 case 67:472 return Event{End, 0, nil}473 }474 case 53:475 switch r.buffer[5] {476 case 68:477 return Event{SLeft, 0, nil}478 case 67:469 case 'A':470 return Event{SUp, 0, nil}471 case 'B':472 return Event{SDown, 0, nil}473 case 'C':474 return Event{SRight, 0, nil}475 case 'D':476 return Event{SLeft, 0, nil}477 }478 } // r.buffer[4]479 } // r.buffer[3]480 } // r.buffer[2]
427 unmodified lines
modified:src/tui/tui.go+2 added
59 unmodified lines
60 Right61 Home62 End6364 SUp65 SDown66 SLeft67 SRight6869 F1
357 unmodified lines
modified:src/options.go+4 added
424 unmodified lines
425 case "pgup", "page-up":426 chord = tui.PgUp427 case "pgdn", "page-down":428 chord = tui.PgDn429 case "shift-up":430 chord = tui.SUp431 case "shift-down":432 chord = tui.SDown433 case "shift-left":434 chord = tui.SLeft435 case "shift-right":436 chord = tui.SRight
831 unmodified lines
modified:src/terminal.go+3 added
275 unmodified lines
276 keymap[tui.Del] = toActions(actDeleteChar)277 keymap[tui.PgUp] = toActions(actPageUp)278 keymap[tui.PgDn] = toActions(actPageDown)279280 keymap[tui.SUp] = toActions(actPreviewUp)281 keymap[tui.SDown] = toActions(actPreviewDown)282283 keymap[tui.Rune] = toActions(actRune)284 keymap[tui.Mouse] = toActions(actMouse)285 keymap[tui.DoubleClick] = toActions(actAccept)286 keymap[tui.LeftClick] = toActions(actIgnore)
1604 unmodified lines