Add Home and End for 0 and $ respectively
This commit is contained in:
parent
ff93b3e28d
commit
a37c385b35
|
@ -106,11 +106,11 @@ SELECTION MODE
|
||||||
+-----------------------------------+-----------------------------------------------------------+
|
+-----------------------------------+-----------------------------------------------------------+
|
||||||
| ``B`` or ``ctrl-left`` | backward WORD (non-whitespace) |
|
| ``B`` or ``ctrl-left`` | backward WORD (non-whitespace) |
|
||||||
+-----------------------------------+-----------------------------------------------------------+
|
+-----------------------------------+-----------------------------------------------------------+
|
||||||
| ``0`` | move cursor to the first column in the row |
|
| ``0`` or ``home`` | move cursor to the first column in the row |
|
||||||
+-----------------------------------+-----------------------------------------------------------+
|
+-----------------------------------+-----------------------------------------------------------+
|
||||||
| ``^`` | beginning-of-line (first non-blank character) |
|
| ``^`` | beginning-of-line (first non-blank character) |
|
||||||
+-----------------------------------+-----------------------------------------------------------+
|
+-----------------------------------+-----------------------------------------------------------+
|
||||||
| ``$`` | end-of-line |
|
| ``$`` or ``end`` | end-of-line |
|
||||||
+-----------------------------------+-----------------------------------------------------------+
|
+-----------------------------------+-----------------------------------------------------------+
|
||||||
| ``g`` | jump to start of first row |
|
| ``g`` | jump to start of first row |
|
||||||
+-----------------------------------+-----------------------------------------------------------+
|
+-----------------------------------+-----------------------------------------------------------+
|
||||||
|
|
|
@ -95,11 +95,11 @@ backward word
|
||||||
forward \fIWORD\fP (non-whitespace)
|
forward \fIWORD\fP (non-whitespace)
|
||||||
.IP "\fBB\fP or \fBctrl-left\fP"
|
.IP "\fBB\fP or \fBctrl-left\fP"
|
||||||
backward \fIWORD\fP (non-whitespace)
|
backward \fIWORD\fP (non-whitespace)
|
||||||
.IP "\fB0\fP"
|
.IP "\fB0\fP or \fBhome\fP"
|
||||||
move cursor to the first column in the row\fP"
|
move cursor to the first column in the row\fP"
|
||||||
.IP "\fB^\fP"
|
.IP "\fB^\fP"
|
||||||
beginning-of-line (first non-blank character)
|
beginning-of-line (first non-blank character)
|
||||||
.IP "\fB$\fP"
|
.IP "\fB$\fP or \fBend\fP"
|
||||||
end-of-line
|
end-of-line
|
||||||
.IP "\fBg\fP"
|
.IP "\fBg\fP"
|
||||||
jump to start of first row
|
jump to start of first row
|
||||||
|
|
|
@ -842,6 +842,7 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
||||||
move_forward_blank_word(vte, &info->select);
|
move_forward_blank_word(vte, &info->select);
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_0:
|
case GDK_KEY_0:
|
||||||
|
case GDK_KEY_Home:
|
||||||
set_cursor_column(vte, &info->select, 0);
|
set_cursor_column(vte, &info->select, 0);
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_asciicircum:
|
case GDK_KEY_asciicircum:
|
||||||
|
@ -849,6 +850,7 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
||||||
move_first(vte, &info->select, std::not1(std::ref(g_unichar_isspace)));
|
move_first(vte, &info->select, std::not1(std::ref(g_unichar_isspace)));
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_dollar:
|
case GDK_KEY_dollar:
|
||||||
|
case GDK_KEY_End:
|
||||||
move_to_eol(vte, &info->select);
|
move_to_eol(vte, &info->select);
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_g:
|
case GDK_KEY_g:
|
||||||
|
|
Loading…
Reference in New Issue