Commit ba2da3e2 authored by etaoin's avatar etaoin Committed by Jordi Mas

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
parent c089321c
Pipeline #75791 passed with stage
in 6 minutes and 33 seconds
......@@ -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>
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment