Skip to content
Myr

Add half-page-{up,down} actions (#784)

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

authored by Amos Bird · committed by Junegunn Choi · parent 05ed57a · Browse files · 3 files+14 added−0 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+14 added−0 removed

  • other:+14 added−0 removed

3 files+14 added−0 removed

modified:man/man1/fzf.1+2 added
468 unmodified lines
469 \fBkill-word\fR \fIalt-d\fR470 \fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)471 \fBpage-down\fR \fIpgdn\fR472 \fBpage-up\fR \fIpgup\fR473 \fBhalf-page-down\fR474 \fBhalf-page-up\fR475 \fBpreview-down\fR476 \fBpreview-up\fR477 \fBpreview-page-down\fR478 \fBpreview-page-up\fR
71 unmodified lines
modified:src/options.go+4 added
686 unmodified lines
687 case "page-up":688 keymap[key] = actPageUp689 case "page-down":690 keymap[key] = actPageDown691 case "half-page-up":692 keymap[key] = actHalfPageUp693 case "half-page-down":694 keymap[key] = actHalfPageDown695 case "previous-history":696 keymap[key] = actPreviousHistory697 case "next-history":698 keymap[key] = actNextHistory
494 unmodified lines
modified:src/terminal.go+8 added
184 unmodified lines
185 actDown186 actUp187 actPageUp188 actPageDown189 actHalfPageUp190 actHalfPageDown191 actJump192 actJumpAccept193 actPrintQuery194 actToggleSort
1284 unmodified lines
1479 req(reqList)1480 case actPageDown:1481 t.vmove(-(t.maxItems() - 1))1482 req(reqList)1483 case actHalfPageUp:1484 t.vmove(t.maxItems() / 2)1485 req(reqList)1486 case actHalfPageDown:1487 t.vmove(-(t.maxItems() / 2))1488 req(reqList)1489 case actJump:1490 t.jumping = jumpEnabled1491 req(reqJump)1492 case actJumpAccept:
171 unmodified lines