[gedit] Add shortcut for inserting a timestamp



commit 90e92d79e5b2a031a675c2aebc3a3b457fd6a445
Author: Matthias Schneider <cx879 posteo de>
Date:   Tue Jun 18 04:58:44 2019 +0000

    Add shortcut for inserting a timestamp

 gedit/gedit-app.c                     | 1 +
 gedit/resources/ui/gedit-shortcuts.ui | 7 +++++++
 help/C/gedit-shortcut-keys.page       | 5 +++++
 3 files changed, 13 insertions(+)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 00c059bb2..47d7b4eac 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -841,6 +841,7 @@ gedit_app_startup (GApplication *application)
        add_accelerator (GTK_APPLICATION (application), "win.next-tab-group", 
"<Primary><Shift><Alt>Page_Down");
        add_accelerator (GTK_APPLICATION (application), "win.previous-document", "<Primary><Alt>Page_Up");
        add_accelerator (GTK_APPLICATION (application), "win.next-document", "<Primary><Alt>Page_Down");
+       add_accelerator (GTK_APPLICATION (application), "win.time", "<Primary><Shift>B");
 
        load_accels ();
 
diff --git a/gedit/resources/ui/gedit-shortcuts.ui b/gedit/resources/ui/gedit-shortcuts.ui
index 2f2472b05..7322b0367 100644
--- a/gedit/resources/ui/gedit-shortcuts.ui
+++ b/gedit/resources/ui/gedit-shortcuts.ui
@@ -410,6 +410,13 @@
                 <property name="title" translatable="yes" context="shortcut window">Show completion 
window</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="accelerator">&lt;ctrl&gt;&lt;shift&gt;b</property>
+                <property name="title" translatable="yes" context="shortcut window">Insert 
timestamp</property>
+              </object>
+            </child>
           </object>
         </child>
       </object>
diff --git a/help/C/gedit-shortcut-keys.page b/help/C/gedit-shortcut-keys.page
index 057864f8e..c8729bf55 100644
--- a/help/C/gedit-shortcut-keys.page
+++ b/help/C/gedit-shortcut-keys.page
@@ -377,6 +377,11 @@
           <td><p><keyseq><key>Ctrl</key><key>Shift</key>
           <key>D</key></keyseq></p></td>
         </tr>
+        <tr>
+          <td><p>Insert timestamp (with plugin)</p></td>
+          <td><p><keyseq><key>Ctrl</key><key>Shift</key>
+          <key>B</key></keyseq></p></td>
+        </tr>
       </tbody>
     </table>
 


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