key bindings: add shift+left/right to switch tabs

This commit is contained in:
Boris Faure 2016-04-12 22:47:49 +02:00
parent ce8eda85e1
commit 15fa7afaa5
3 changed files with 25 additions and 5 deletions

2
README
View File

@ -40,6 +40,8 @@ Shift+PgUp = Scroll 1 page up
Shift+PgDn = Scroll 1 page down
Shift+Up = Scroll 1 line up
Shift+Down = Scroll 1 line down
Shift+Left = switch focus to previous terminal inside a window
Shift+Right = switch focus to next terminal inside a window
Shift+Insert = Paste Clipboard (ctrl+v/c) selection
Shift+Ctrl+Insert = Paste Primary (highlight) selection
Shift+Keypad-Plus = Font size up 1

View File

@ -1,5 +1,5 @@
.\" Manpage for Terminology
.TH man 1 "12 March 2016" "0.9.1" "Terminology man page"
.TH man 1 "12 April 2016" "0.9.1" "Terminology man page"
.SH NAME
Terminology \- Terminal Emulator written with EFL (Enlightenment Foundation Libraries).
.SH SYNOPSIS
@ -196,6 +196,16 @@ Scroll terminology one line up
Scroll terminology one line down
.
.TP
.B Shift+Left
Switch focus to previous terminal inside a window when using splits, or the
previous tab.
.
.TP
.B Shift+Right
Switch focus to next terminal inside a window when using splits, or the next
tab.
.
.TP
.B Shift+Insert
Paste Clipboard (ctrl+v/c) selection
.
@ -221,11 +231,13 @@ Copy highlight to Clipboard (same as ctrl+c in gui apps).
.
.TP
.B Ctrl+PgUp
Switch focus to previous terminal inside a window (when using splits).
Switch focus to previous terminal inside a window when using splits, or the
previous tab.
.
.TP
.B Ctrl+PgDn
Switch focus to next terminal inside a window (when using splits).
Switch focus to next terminal inside a window when using splits, or the next
tab.
.
.TP
.B Ctrl+Shift+h

View File

@ -7,7 +7,7 @@
#include "col.h"
#include "utils.h"
#define CONF_VER 11
#define CONF_VER 12
#define LIM(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min;}
@ -362,6 +362,8 @@ _add_default_keys(Config *config)
ADD_KB("KP_Subtract", 0, 0, 1, 0, "decrease_font_size");
ADD_KB("KP_Multiply", 0, 0, 1, 0, "reset_font_size");
ADD_KB("KP_Divide", 0, 0, 1, 0, "copy_clipboard");
ADD_KB("Left", 0, 0, 1, 0, "term_prev");
ADD_KB("Right", 0, 0, 1, 0, "term_next");
}
void
@ -597,7 +599,11 @@ config_load(const char *key)
case 10:
config->font.bolditalic = EINA_TRUE;
/*pass through*/
case CONF_VER: /* 11 */
case 11:
_add_key(config, "Left", 0, 0, 1, 0, "term_prev");
_add_key(config, "Right", 0, 0, 1, 0, "term_next");
/*pass through*/
case CONF_VER: /* 12 */
config->version = CONF_VER;
break;
default: