add "select all" keyboard shortcut: [control] + [shift] + [A]
and it can be changed in "edit" -> "keyboard shortcuts" Closes https://github.com/mate-desktop/mate-terminal/issues/191master-1.22
parent
d58bde2033
commit
9a574072ee
|
@ -315,6 +315,11 @@
|
||||||
<summary>Keyboard shortcut to paste text</summary>
|
<summary>Keyboard shortcut to paste text</summary>
|
||||||
<description>Keyboard shortcut key for pasting the contents of the clipboard into the terminal. Expressed as a string in the same format used for GTK+ resource files. If you set the option to the special string "disabled", then there will be no keyboard shortcut for this action.</description>
|
<description>Keyboard shortcut key for pasting the contents of the clipboard into the terminal. Expressed as a string in the same format used for GTK+ resource files. If you set the option to the special string "disabled", then there will be no keyboard shortcut for this action.</description>
|
||||||
</key>
|
</key>
|
||||||
|
<key name="select-all" type="s">
|
||||||
|
<default>'<Ctrl><Shift>a'</default>
|
||||||
|
<summary>Keyboard shortcut to select all text</summary>
|
||||||
|
<description>Keyboard shortcut key for selecting all the text into the terminal. Expressed as a string in the same format used for GTK+ resource files. If you set the option to the special string "disabled", then there will be no keyboard shortcut for this action.</description>
|
||||||
|
</key>
|
||||||
<key name="full-screen" type="s">
|
<key name="full-screen" type="s">
|
||||||
<default>'F11'</default>
|
<default>'F11'</default>
|
||||||
<summary>Keyboard shortcut to toggle full screen mode</summary>
|
<summary>Keyboard shortcut to toggle full screen mode</summary>
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
#define ACCEL_PATH_CLOSE_WINDOW ACCEL_PATH_ROOT "FileCloseWindow"
|
#define ACCEL_PATH_CLOSE_WINDOW ACCEL_PATH_ROOT "FileCloseWindow"
|
||||||
#define ACCEL_PATH_COPY ACCEL_PATH_ROOT "EditCopy"
|
#define ACCEL_PATH_COPY ACCEL_PATH_ROOT "EditCopy"
|
||||||
#define ACCEL_PATH_PASTE ACCEL_PATH_ROOT "EditPaste"
|
#define ACCEL_PATH_PASTE ACCEL_PATH_ROOT "EditPaste"
|
||||||
|
#define ACCEL_PATH_SELECT_ALL ACCEL_PATH_ROOT "EditSelectAll"
|
||||||
#define ACCEL_PATH_TOGGLE_MENUBAR ACCEL_PATH_ROOT "ViewMenubar"
|
#define ACCEL_PATH_TOGGLE_MENUBAR ACCEL_PATH_ROOT "ViewMenubar"
|
||||||
#define ACCEL_PATH_FULL_SCREEN ACCEL_PATH_ROOT "ViewFullscreen"
|
#define ACCEL_PATH_FULL_SCREEN ACCEL_PATH_ROOT "ViewFullscreen"
|
||||||
#define ACCEL_PATH_RESET ACCEL_PATH_ROOT "TerminalReset"
|
#define ACCEL_PATH_RESET ACCEL_PATH_ROOT "TerminalReset"
|
||||||
|
@ -91,6 +92,7 @@
|
||||||
#define KEY_PREV_TAB "prev-tab"
|
#define KEY_PREV_TAB "prev-tab"
|
||||||
#define KEY_RESET_AND_CLEAR "reset-and-clear"
|
#define KEY_RESET_AND_CLEAR "reset-and-clear"
|
||||||
#define KEY_RESET "reset"
|
#define KEY_RESET "reset"
|
||||||
|
#define KEY_SELECT_ALL "select-all"
|
||||||
#define KEY_SAVE_CONTENTS "save-contents"
|
#define KEY_SAVE_CONTENTS "save-contents"
|
||||||
#define KEY_SET_TERMINAL_TITLE "set-terminal-title"
|
#define KEY_SET_TERMINAL_TITLE "set-terminal-title"
|
||||||
#define KEY_TOGGLE_MENUBAR "toggle-menubar"
|
#define KEY_TOGGLE_MENUBAR "toggle-menubar"
|
||||||
|
@ -174,6 +176,10 @@ static KeyEntry edit_entries[] =
|
||||||
N_("Paste"),
|
N_("Paste"),
|
||||||
KEY_PASTE, ACCEL_PATH_PASTE, GDK_SHIFT_MASK | GDK_CONTROL_MASK, GDK_KEY_v, NULL, FALSE, TRUE
|
KEY_PASTE, ACCEL_PATH_PASTE, GDK_SHIFT_MASK | GDK_CONTROL_MASK, GDK_KEY_v, NULL, FALSE, TRUE
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
N_("Select All"),
|
||||||
|
KEY_SELECT_ALL, ACCEL_PATH_SELECT_ALL, GDK_SHIFT_MASK | GDK_CONTROL_MASK, GDK_KEY_a, NULL, FALSE, TRUE
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static KeyEntry view_entries[] =
|
static KeyEntry view_entries[] =
|
||||||
|
|
|
@ -1932,7 +1932,7 @@ terminal_window_init (TerminalWindow *window)
|
||||||
G_CALLBACK (edit_paste_callback)
|
G_CALLBACK (edit_paste_callback)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"EditSelectAll", GTK_STOCK_SELECT_ALL, NULL, NULL,
|
"EditSelectAll", GTK_STOCK_SELECT_ALL, NULL, "<shift><control>A",
|
||||||
NULL,
|
NULL,
|
||||||
G_CALLBACK (edit_select_all_callback)
|
G_CALLBACK (edit_select_all_callback)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue