Merge pull request #46 from dkasak/half-screen-movements
Half screen movements
This commit is contained in:
commit
27ccafdf77
|
@ -91,6 +91,10 @@ COMMAND MODE
|
|||
+------------------------+-----------------------------------------------------------+
|
||||
| ``G`` | jump to start of last row |
|
||||
+------------------------+-----------------------------------------------------------+
|
||||
| ctrl-u | move cursor half a screen up |
|
||||
+------------------------+-----------------------------------------------------------+
|
||||
| ctrl-d | move cursor half a screen down |
|
||||
+------------------------+-----------------------------------------------------------+
|
||||
| ``y`` | copy to CLIPBOARD |
|
||||
+------------------------+-----------------------------------------------------------+
|
||||
| ``/`` | forward search |
|
||||
|
|
|
@ -544,6 +544,12 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
|||
case GDK_KEY_Right:
|
||||
move_forward_blank_word(vte, &info->select);
|
||||
break;
|
||||
case GDK_KEY_u:
|
||||
move(vte, &info->select, 0, -(vte_terminal_get_row_count(vte) / 2));
|
||||
break;
|
||||
case GDK_KEY_d:
|
||||
move(vte, &info->select, 0, vte_terminal_get_row_count(vte) / 2);
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue