Skip to content

Commit

Permalink
Provide both old and new next/prev tab shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidy22 authored and gsemet committed Oct 24, 2021
1 parent 1062014 commit 2bc9672
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 12 additions & 2 deletions guake/data/org.guake.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,25 @@
<description>Move the current tab to the right</description>
</key>
<key name="previous-tab" type="s">
<default>'&lt;Control&gt;&lt;Shift&gt;Tab'</default>
<default>'&lt;Control&gt;Page_Up'</default>
<summary>Previous tab.</summary>
<description>Shows the previous tab.</description>
</key>
<key name="next-tab" type="s">
<default>'&lt;Control&gt;Tab'</default>
<default>'&lt;Control&gt;Page_Down'</default>
<summary>Next tab.</summary>
<description>Shows the next tab.</description>
</key>
<key name="previous-tab-alt" type="s">
<default>'&lt;Control&gt;&lt;Shift&gt;Tab'</default>
<summary>Previous tab (alternative)</summary>
<description>Alternate shortcut to show the previous tab.</description>
</key>
<key name="next-tab-alt" type="s">
<default>'&lt;Control&gt;Tab'</default>
<summary>Next tab (alternative)</summary>
<description>Alternate shortcut to show the next tab.</description>
</key>
<key name="switch-tab1" type="s">
<default>'&lt;Control&gt;F1'</default>
<summary>First tab.</summary>
Expand Down
2 changes: 2 additions & 0 deletions guake/keybindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def x(*args):
("close-tab", x),
("rename-current-tab", self.guake.accel_rename_current_tab),
("previous-tab", self.guake.accel_prev),
("previous-tab-alt", self.guake.accel_prev),
("next-tab", self.guake.accel_next),
("next-tab-alt", self.guake.accel_next),
("clipboard-copy", self.guake.accel_copy_clipboard),
("clipboard-paste", self.guake.accel_paste_clipboard),
("quit", self.guake.accel_quit),
Expand Down
2 changes: 2 additions & 0 deletions guake/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@
"key": "nav",
"keys": [
{"key": "previous-tab", "label": _("Go to previous tab")},
{"key": "previous-tab-alt", "label": _("Go to previous tab (alternative)")},
{"key": "next-tab", "label": _("Go to next tab")},
{"key": "next-tab-alt", "label": _("Go to next tab (alternative)")},
{"key": "move-tab-left", "label": _("Move current tab left")},
{"key": "move-tab-right", "label": _("Move current tab right")},
{"key": "switch-tab1", "label": _("Go to first tab")},
Expand Down

0 comments on commit 2bc9672

Please sign in to comment.