[gedit: 2/2] Add a shortcut window
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit: 2/2] Add a shortcut window
- Date: Tue, 8 Dec 2015 20:43:51 +0000 (UTC)
commit 72a6cf5795f7ec162806289e9f13ab56d58930c7
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Dec 8 19:50:19 2015 +0100
Add a shortcut window
gedit/resources/ui/gedit-shortcuts.ui | 248 +++++++++++++++++++++++++++++----
1 files changed, 223 insertions(+), 25 deletions(-)
---
diff --git a/gedit/resources/ui/gedit-shortcuts.ui b/gedit/resources/ui/gedit-shortcuts.ui
index acb30d0..ac28930 100644
--- a/gedit/resources/ui/gedit-shortcuts.ui
+++ b/gedit/resources/ui/gedit-shortcuts.ui
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.17 -->
-
<object class="GtkShortcutsWindow" id="shortcuts-gedit">
<property name="modal">1</property>
<child>
@@ -12,67 +11,130 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
- <property name="title" translatable="yes">Touchpad gestures</property>
+ <property name="title" translatable="yes">Documents</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>T</property>
+ <property name="title" translatable="yes">Create a new document in a tab</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>O</property>
+ <property name="title" translatable="yes">Open a document</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>S</property>
+ <property name="title" translatable="yes">Save the document</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl><shift>S</property>
+ <property name="title" translatable="yes">Save the document with a new filename</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl><shift>L</property>
+ <property name="title" translatable="yes">Save all the documents</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>W</property>
+ <property name="title" translatable="yes">Close the document</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl><shift>W</property>
+ <property name="title" translatable="yes">Close all the documents</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl><shift>T</property>
+ <property name="title" translatable="yes">Reopen the most recently closed document</property>
+ </object>
+ </child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="shortcut-type">gesture-two-finger-swipe-right</property>
+ <property name="accelerator"><ctrl><Alt>Page_Down</property>
<property name="title" translatable="yes">Switch to the next document</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="shortcut-type">gesture-two-finger-swipe-left</property>
+ <property name="accelerator"><ctrl><Alt>Page_Up</property>
<property name="title" translatable="yes">Switch to the previous document</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Alt>1...9</property>
+ <property name="title" translatable="yes">Switch to the first - ninth document</property>
+ </object>
+ </child>
</object>
</child>
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
- <property name="title" translatable="yes">Documents</property>
+ <property name="title" translatable="yes">Windows and Panels</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
<property name="accelerator"><ctrl>N</property>
- <property name="title" translatable="yes">Create new document</property>
+ <property name="title" translatable="yes">Create a new document in a window</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><ctrl>O</property>
- <property name="title" translatable="yes">Open a document</property>
+ <property name="accelerator"><ctrl><alt>N</property>
+ <property name="title" translatable="yes">Create a new tab group</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><ctrl>S</property>
- <property name="title" translatable="yes">Save the document</property>
+ <property name="accelerator">F9</property>
+ <property name="title" translatable="yes">Show side panel</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><ctrl>W</property>
- <property name="title" translatable="yes">Close the document</property>
+ <property name="accelerator"><ctrl>F9</property>
+ <property name="title" translatable="yes">Show bottom panel</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><ctrl><Alt>Page_Down</property>
- <property name="title" translatable="yes">Switch to the next document</property>
+ <property name="accelerator">F11</property>
+ <property name="title" translatable="yes">Fullscreen on / off</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><ctrl><Alt>Page_Up</property>
- <property name="title" translatable="yes">Switch to the previous document</property>
+ <property name="accelerator"><ctrl>Q</property>
+ <property name="title" translatable="yes">Quit the application</property>
</object>
</child>
</object>
@@ -128,12 +190,26 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
- <property name="title" translatable="yes">Tools</property>
+ <property name="title" translatable="yes">Copy and Paste</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><shift>F7</property>
- <property name="title" translatable="yes">Check spelling</property>
+ <property name="accelerator"><ctrl>C</property>
+ <property name="title" translatable="yes">Copy selected text to clipboard</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>X</property>
+ <property name="title" translatable="yes">Cut selected text to clipboard</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>P</property>
+ <property name="title" translatable="yes">Paste text from clipboard</property>
</object>
</child>
</object>
@@ -141,21 +217,40 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
- <property name="title" translatable="yes">Miscellaneous</property>
+ <property name="title" translatable="yes">Undo and Redo</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator">F11</property>
- <property name="title" translatable="yes">Fullscreen on / off</property>
+ <property name="accelerator"><ctrl>Z</property>
+ <property name="title" translatable="yes">Undo previous command</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator"><ctrl>P</property>
- <property name="title" translatable="yes">Print the document</property>
+ <property name="accelerator"><ctrl><shift>Z</property>
+ <property name="title" translatable="yes">Redo previous command</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title" translatable="yes">Selection</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>A</property>
+ <property name="title" translatable="yes">Select all text</property>
</object>
</child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title" translatable="yes">Editing</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
@@ -163,10 +258,113 @@
<property name="title" translatable="yes">Toggle insert / overwrite</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>D</property>
+ <property name="title" translatable="yes">Delete current line</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>J</property>
+ <property name="title" translatable="yes">Join selected lines</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><alt>Up</property>
+ <property name="title" translatable="yes">Move current line up</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><alt>Down</property>
+ <property name="title" translatable="yes">Move current line down</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><alt>Left</property>
+ <property name="title" translatable="yes">Move current word left</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><alt>Right</property>
+ <property name="title" translatable="yes">Move current word right</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>U</property>
+ <property name="title" translatable="yes">Convert to uppercase</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>L</property>
+ <property name="title" translatable="yes">Convert to lowercase</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>asciitilde</property>
+ <property name="title" translatable="yes">Invert case</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl><shift>a</property>
+ <property name="title" translatable="yes">Increment number at cursor</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl><shift>x</property>
+ <property name="title" translatable="yes">Decrement number at cursor</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title" translatable="yes">Tools</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><shift>F7</property>
+ <property name="title" translatable="yes">Check spelling</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>P</property>
+ <property name="title" translatable="yes">Print the document</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><ctrl>space</property>
+ <property name="title" translatable="yes">Show completion window</property>
+ </object>
+ </child>
</object>
</child>
</object>
</child>
</object>
-
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]