Move zoom in/out/reset bindings to general

Changing the cursor when in command mode, messes
up vte's state which causes aborts, misplaced cursor
and other bugs.

Closes: #194
This commit is contained in:
Jelle van der Waa 2016-03-28 22:41:32 +02:00
parent 9a3115603a
commit 1f1b1e2151
3 changed files with 21 additions and 21 deletions

View File

@ -61,6 +61,12 @@ INSERT MODE
+----------------------+---------------------------------------------+
| ``shift-pagedown`` | scroll down a page |
+----------------------+---------------------------------------------+
| ``ctrl-+`` | increase font size |
+----------------------+---------------------------------------------+
| ``ctrl--`` | decrease font size |
+----------------------+---------------------------------------------+
| ``ctrl-=`` | reset font size to default |
+----------------------+---------------------------------------------+
.. [1] The directory can be set by a process running in the terminal. For
example, with zsh:
@ -142,12 +148,6 @@ SELECTION MODE
+-----------------------------------+-----------------------------------------------------------+
| ``N`` | previous search match |
+-----------------------------------+-----------------------------------------------------------+
| ``+`` | increase font size |
+-----------------------------------+-----------------------------------------------------------+
| ``-`` | decrease font size |
+-----------------------------------+-----------------------------------------------------------+
| ``=`` | reset font size to default |
+-----------------------------------+-----------------------------------------------------------+
During scrollback search, the current selection is changed to the search match
and copied to the PRIMARY clipboard buffer.

View File

@ -71,6 +71,12 @@ scroll down a line
scroll up a page
.IP "\fBshift-pagedown\fP"
scroll down a page
.IP "\fBctrl-+\fP"
increase font size
.IP "\fBctrl--\fP"
decrease font size
.IP "\fBctrl-=\fP"
reset font size to default
.SS Selection Mode
In \fBSelection Mode\fP you interact with the interface of \fBtermite\fP
and the visual representation of the programs running within it. You can
@ -133,12 +139,6 @@ open the current selection as a url and enter insert mode
next search match
.IP "\fBN\fP"
previous search match
.IP "\fB+\fP"
increase font size
.IP "\fB-\fP"
decrease font size
.IP "\fB=\fP"
reset font size to default
.SS Hints Mode
The
\fBHints Mode\fP is meant for accessing urls outputted to the terminal.

View File

@ -909,20 +909,14 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
gtk_widget_show(info->panel.da);
overlay_show(&info->panel, overlay_mode::urlselect, nullptr);
break;
case GDK_KEY_plus:
increase_font_scale(vte);
break;
case GDK_KEY_minus:
decrease_font_scale(vte);
break;
case GDK_KEY_equal:
reset_font_scale(vte, info->config.font_scale);
break;
}
return TRUE;
}
if (modifiers == (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) {
switch (gdk_keyval_to_lower(event->keyval)) {
case GDK_KEY_plus:
increase_font_scale(vte);
return TRUE;
case GDK_KEY_t:
launch_in_directory(vte);
return TRUE;
@ -959,6 +953,12 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
case GDK_KEY_Tab:
overlay_show(&info->panel, overlay_mode::completion, vte);
return TRUE;
case GDK_KEY_minus:
decrease_font_scale(vte);
return TRUE;
case GDK_KEY_equal:
reset_font_scale(vte, info->config.font_scale);
return TRUE;
default:
if (modify_key_feed(event, info, modify_table))
return TRUE;