Skip to content

Add workspaces search#12745

Open
SilverEzhik wants to merge 4 commits intozen-browser:devfrom
SilverEzhik:spaces-search
Open

Add workspaces search#12745
SilverEzhik wants to merge 4 commits intozen-browser:devfrom
SilverEzhik:spaces-search

Conversation

@SilverEzhik
Copy link
Copy Markdown

@SilverEzhik SilverEzhik commented Mar 12, 2026

Hope a drive-by PR is alright.

This PR implements a dedicated search shortcut, bound to ` (backtick).

image

Zen already has support for spaces search, but it's implemented on the actions search mode. This PR introduces a new search mode for spaces, activated with a special key, similar to Firefox's existing tabs/bookmarks/history search shortcuts.

I was originally considering ~ instead of `, but that interferes with resolving to the user's home directory. On Mac, at least, using ` does not interfere with the Opt-` dead key combo for typing à and such, but would appreciate additional tests for this one. The backtick is missing on some keyboard layouts, but so are Firefox's existing keys, such as ^.

Since actions search mode already had support for workspace search, I've opted to factor out the common bits (specifically, fuzzy search and presenting search results) into a common helper, which is used by both search modes.

@SilverEzhik SilverEzhik requested a review from mr-cheffy as a code owner March 12, 2026 11:06
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Feature labels Mar 12, 2026
@mr-cheffy mr-cheffy marked this pull request as draft March 12, 2026 11:11
@SilverEzhik SilverEzhik requested a review from mr-cheffy March 12, 2026 12:35
@SilverEzhik SilverEzhik requested a review from mr-cheffy March 21, 2026 08:41
@SilverEzhik SilverEzhik force-pushed the spaces-search branch 2 times, most recently from 60304a2 to 455a5b4 Compare March 21, 2026 09:01
Copy link
Copy Markdown
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please dont do text for other languages

@SilverEzhik
Copy link
Copy Markdown
Author

Alright, removed all except for en-US.

@SilverEzhik SilverEzhik requested a review from mr-cheffy March 21, 2026 12:57
@mr-cheffy mr-cheffy marked this pull request as ready for review March 26, 2026 11:04
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Mar 26, 2026
+ source: this.RESULT_SOURCE.WORKSPACES,
+ restrict: lazy.UrlbarTokenizer.RESTRICT.WORKSPACE,
+ icon: "chrome://browser/skin/zen-icons/selectable/layers.svg",
+ pref: "shortcuts.workspaces",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pref should probably be added into zen-urlbar.yml, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants