[gedit] Add some missing shortcuts to the shortcuts dialog



commit ba2da3e205d4b80948d64c1e8af6dd3d703833d0
Author: etaoin <etaoin disroot org>
Date:   Wed Apr 17 05:49:04 2019 +0000

    Add some missing shortcuts to the shortcuts dialog
    
    - Unselect all text
    - Move viewport up within the file
    - Move viewport down within the file
    - Move viewport to end of file
    - Move viewport to beginning of file
    - Move to matching bracket

 gedit/resources/ui/gedit-shortcuts.ui | 78 +++++++++++++++++++++++++++-------
 help/C/gedit-shortcut-keys.page       | 80 ++++++++++++++++++++++++++---------
 2 files changed, 123 insertions(+), 35 deletions(-)
---
diff --git a/gedit/resources/ui/gedit-shortcuts.ui b/gedit/resources/ui/gedit-shortcuts.ui
index f020c94ca..2f2472b05 100644
--- a/gedit/resources/ui/gedit-shortcuts.ui
+++ b/gedit/resources/ui/gedit-shortcuts.ui
@@ -178,11 +178,44 @@
                 <property name="title" translatable="yes" context="shortcut window">Clear 
highlight</property>
               </object>
             </child>
+          </object>
+        </child>
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">1</property>
+            <property name="title" translatable="yes" context="shortcut window">Undo and Redo</property>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;I</property>
-                <property name="title" translatable="yes" context="shortcut window">Go to line</property>
+                <property name="accelerator">&lt;ctrl&gt;Z</property>
+                <property name="title" translatable="yes" context="shortcut window">Undo previous 
command</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;ctrl&gt;&lt;shift&gt;Z</property>
+                <property name="title" translatable="yes" context="shortcut window">Redo previous 
command</property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">1</property>
+            <property name="title" translatable="yes" context="shortcut window">Selection</property>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;ctrl&gt;A</property>
+                <property name="title" translatable="yes" context="shortcut window">Select all 
text</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;ctrl&gt;backslash</property>
+                <property name="title" translatable="yes" context="shortcut window">Unselect all 
text</property>
               </object>
             </child>
           </object>
@@ -217,32 +250,47 @@
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">1</property>
-            <property name="title" translatable="yes" context="shortcut window">Undo and Redo</property>
+            <property name="title" translatable="yes" context="shortcut window">Navigation</property>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;Z</property>
-                <property name="title" translatable="yes" context="shortcut window">Undo previous 
command</property>
+                <property name="accelerator">&lt;ctrl&gt;I</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to line</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;&lt;shift&gt;Z</property>
-                <property name="title" translatable="yes" context="shortcut window">Redo previous 
command</property>
+                <property name="accelerator">&lt;alt&gt;&lt;shift&gt;Up</property>
+                <property name="title" translatable="yes" context="shortcut window">Move viewport up within 
the file</property>
               </object>
             </child>
-          </object>
-        </child>
-        <child>
-          <object class="GtkShortcutsGroup">
-            <property name="visible">1</property>
-            <property name="title" translatable="yes" context="shortcut window">Selection</property>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;A</property>
-                <property name="title" translatable="yes" context="shortcut window">Select all 
text</property>
+                <property name="accelerator">&lt;alt&gt;&lt;shift&gt;Down</property>
+                <property name="title" translatable="yes" context="shortcut window">Move viewport down 
within the file</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;alt&gt;&lt;shift&gt;End</property>
+                <property name="title" translatable="yes" context="shortcut window">Move viewport to end of 
file</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;alt&gt;&lt;shift&gt;Home</property>
+                <property name="title" translatable="yes" context="shortcut window">Move viewport to 
beginning of file</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;ctrl&gt;percent</property>
+                <property name="title" translatable="yes" context="shortcut window">Move to matching 
bracket</property>
               </object>
             </child>
           </object>
diff --git a/help/C/gedit-shortcut-keys.page b/help/C/gedit-shortcut-keys.page
index 519d8b7e0..057864f8e 100644
--- a/help/C/gedit-shortcut-keys.page
+++ b/help/C/gedit-shortcut-keys.page
@@ -169,22 +169,6 @@
         </tr>
       </thead>
       <tbody>
-        <tr>
-          <td><p>Move to the beginning of the current line</p></td>
-          <td><p><key>Home</key></p></td>
-        </tr>
-        <tr>
-          <td><p>Move to the end of the current line</p></td>
-          <td><p><key>End</key></p></td>
-        </tr>
-        <tr>
-          <td><p>Move to the beginning of the document</p></td>
-          <td><p><keyseq><key>Ctrl</key><key>Home</key></keyseq></p></td>
-        </tr>
-        <tr>
-          <td><p>Move to the end of the document</p></td>
-          <td><p><keyseq><key>Ctrl</key><key>End</key></keyseq></p></td>
-        </tr>
         <tr>
           <td><p>Move the selected word right one word</p></td>
           <td><p><keyseq><key>Alt</key><key>Right Arrow</key></keyseq></p></td>
@@ -219,6 +203,10 @@
           <td><p>Select all text in the file</p></td>
           <td><p><keyseq><key>Ctrl</key><key>A</key></keyseq></p></td>
         </tr>
+        <tr>
+          <td><p>Unselect all text</p></td>
+          <td><p><keyseq><key>Ctrl</key><key>Backslash</key></keyseq></p></td>
+        </tr>
         <tr>
           <td><p>Delete the current line</p></td>
           <td><p><keyseq><key>Ctrl</key><key>D</key></keyseq></p></td>
@@ -251,6 +239,10 @@
           <td><p>Toggle case of the selected text</p></td>
           <td><p><keyseq><key>Ctrl</key><key>~</key></keyseq></p></td>
         </tr>
+        <tr>
+          <td><p>Toggle cursor visibility</p></td>
+          <td><p><keyseq><key>F7</key></keyseq></p></td>
+        </tr>
       </tbody>
     </table>
 
@@ -274,6 +266,58 @@
       </tbody>
     </table>
 
+    <table rules="rows" frame="top bottom" ui:expanded="false">
+    <title>Shortcut keys for navigation</title>
+      <thead>
+        <tr>
+          <td><p>Action</p></td>
+          <td><p>Keyboard shortcut</p></td>
+        </tr>
+      </thead>
+      <tbody>
+        <tr>
+          <td><p>Move to matching bracket</p></td>
+          <td><p><keyseq><key>Ctrl</key><key>%</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Goto line</p></td>
+          <td><p><keyseq><key>Ctrl</key><key>I</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Move to the beginning of the current line</p></td>
+          <td><p><key>Home</key></p></td>
+        </tr>
+        <tr>
+          <td><p>Move to the end of the current line</p></td>
+          <td><p><key>End</key></p></td>
+        </tr>
+        <tr>
+          <td><p>Move to the beginning of the document</p></td>
+          <td><p><keyseq><key>Ctrl</key><key>Home</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Move to the end of the document</p></td>
+          <td><p><keyseq><key>Ctrl</key><key>End</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Move viewport up within the file</p></td>
+          <td><p><keyseq><key>Shift</key><key>Alt</key><key>Up</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Move viewport down within the file</p></td>
+          <td><p><keyseq><key>Shift</key><key>Alt</key><key>Down</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Move viewport to beginning of file</p></td>
+          <td><p><keyseq><key>Shift</key><key>Alt</key><key>Home</key></keyseq></p></td>
+        </tr>
+        <tr>
+          <td><p>Move viewport to end of file</p></td>
+          <td><p><keyseq><key>Shift</key><key>Alt</key><key>End</key></keyseq></p></td>
+        </tr>
+      </tbody>
+    </table>
+
     <table rules="rows" frame="top bottom" ui:expanded="false">
     <title>Shortcut keys for searching</title>
       <thead>
@@ -304,10 +348,6 @@
           <td><p><keyseq><key>Ctrl</key><key>Shift</key>
           <key>K</key></keyseq></p></td>
         </tr>
-        <tr>
-          <td><p>Goto line</p></td>
-          <td><p><keyseq><key>Ctrl</key><key>I</key></keyseq></p></td>
-        </tr>
       </tbody>
     </table>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]