add ^B and ^F for paging in selection mode

This commit is contained in:
Mark Oteiza 2014-09-13 17:44:37 -04:00 committed by Daniel Micay
parent 113ca4b7c9
commit be4e2faf73
3 changed files with 18 additions and 4 deletions

View File

@ -109,9 +109,13 @@ SELECTION MODE
+--------------------------+-----------------------------------------------------------+
| ``G`` | jump to start of last row |
+--------------------------+-----------------------------------------------------------+
| ``ctrl-u`` | move cursor half a screen up |
| ``ctrl-u`` | move cursor a half screen up |
+--------------------------+-----------------------------------------------------------+
| ``ctrl-d`` | move cursor half a screen down |
| ``ctrl-d`` | move cursor a half screen down |
+--------------------------+-----------------------------------------------------------+
| ``ctrl-b`` | move cursor a full screen up (back) |
+--------------------------+-----------------------------------------------------------+
| ``ctrl-f`` | move cursor a full screen down (forward) |
+--------------------------+-----------------------------------------------------------+
| ``y`` | copy to CLIPBOARD |
+--------------------------+-----------------------------------------------------------+

View File

@ -106,9 +106,13 @@ jump to start of first row
.IP "\fBG\fP"
jump to start of last row
.IP "\fBctrl-u\fP"
move cursor half a screen up
move cursor a half screen up
.IP "\fBctrl-d\fP"
move cursor half a screen down
move cursor a half screen down
.IP "\fBctrl-b\fP"
move cursor a full screen up (back)
.IP "\fBctrl-f\fP"
move cursor a full screen down (forward)
.IP "\fBy\fP"
copy to \fICLIPBOARD\fP
.IP "\fB/\fP"

View File

@ -700,6 +700,12 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
case GDK_KEY_d:
move(vte, &info->select, 0, vte_terminal_get_row_count(vte) / 2);
break;
case GDK_KEY_b:
move(vte, &info->select, 0, -(vte_terminal_get_row_count(vte) - 1));
break;
case GDK_KEY_f:
move(vte, &info->select, 0, vte_terminal_get_row_count(vte) - 1);
break;
}
return TRUE;
}