Merge pull request #46 from dkasak/half-screen-movements

Half screen movements
This commit is contained in:
Daniel Micay 2012-11-25 20:46:59 -08:00
commit 27ccafdf77
2 changed files with 10 additions and 0 deletions

View File

@ -91,6 +91,10 @@ COMMAND MODE
+------------------------+-----------------------------------------------------------+ +------------------------+-----------------------------------------------------------+
| ``G`` | jump to start of last row | | ``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 | | ``y`` | copy to CLIPBOARD |
+------------------------+-----------------------------------------------------------+ +------------------------+-----------------------------------------------------------+
| ``/`` | forward search | | ``/`` | forward search |

View File

@ -544,6 +544,12 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
case GDK_KEY_Right: case GDK_KEY_Right:
move_forward_blank_word(vte, &info->select); move_forward_blank_word(vte, &info->select);
break; 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; return TRUE;
} }