Skip to content

Commit b801685

Browse files
committed
Attempt to add keybind for tabs-search
1 parent 0f140b7 commit b801685

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/browser/base/content/zen-keysets.inc.xhtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<command id="cmd_zenUnloadTab" />
4848
<command id="cmd_zenPreventUnloadTab" />
4949
<command id="cmd_zenIgnoreUnloadTab" />
50+
<command id="cmd_zenSearchTabs" />
5051
</commandset>
5152

5253
<keyset id="zenKeyset"></keyset>

src/zen/common/zen-sets.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ document.addEventListener(
9797
case 'cmd_zenIgnoreUnloadTab':
9898
gZenTabUnloader.ignoreUnloadTab();
9999
break;
100+
case 'cmd_zenSearchTabs':
101+
gURLBar.search("%");
102+
break;
100103
default:
101104
if (event.target.id.startsWith('cmd_zenWorkspaceSwitch')) {
102105
const index = parseInt(event.target.id.replace('cmd_zenWorkspaceSwitch', ''), 10) - 1;

src/zen/kbs/ZenKeyboardShortcuts.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const defaultKeyboardGroups = {
7777
],
7878
searchAndFind: [
7979
'zen-search-focus-shortcut',
80+
'zen-search-tabs-shortcut',
8081
'zen-search-focus-shortcut-alt',
8182
'zen-find-shortcut',
8283
'zen-search-find-again-shortcut-2',
@@ -733,6 +734,17 @@ class ZenKeyboardShortcutsLoader {
733734
'zen-split-view-shortcut-unsplit'
734735
)
735736
);
737+
newShortcutList.push(
738+
new KeyShortcut(
739+
'zen-search-tabs',
740+
'J',
741+
'',
742+
ZEN_WORKSPACE_SHORTCUTS_GROUP,
743+
KeyShortcutModifiers.fromObject({ accel: true, alt: true }),
744+
'cmd_zenSearchTabs',
745+
'zen-search-shortcut-tabs'
746+
)
747+
);
736748

737749
return newShortcutList;
738750
}

0 commit comments

Comments
 (0)