Add optional alphabetical sorting for context menu window list#127
Merged
Conversation
When apps have many open windows, the right-click window list is hard to scan because windows appear in discovery order. This adds a "Window List Sort" option (Preferences > Behavior > Mouse) that lets users sort the list alphabetically by title. Default behavior is unchanged: the option defaults to "default" (scan order). Setting it to "alphabetical" sorts window entries by title, case-insensitive. The left-click action (toggle/cycle/most-recent) is a separate code path and is not affected. - New WindowListSort enum in config with "default" and "alphabetical" - Config plumbing: default constant, normalizer, dataclass field, __post_init__ normalization (same pattern as LeftClickAction) - Sorting in MenuHandler._append_open_windows: only the right-click menu, not preview thumbnails - ComboBox in Preferences > Behavior > Mouse section with binding - POT regenerated with 3 new translatable strings - Backward compatible: missing key gets default; unknown key on older builds is silently ignored
✅ Deploy Preview for dockingbar canceled.
|
Owner
|
Hey @castrapel thanks again for this another contribution. I will try to take a look today (late already here) or at last tomorrow and let you know. Thanks! |
edumucelli
approved these changes
May 28, 2026
Owner
edumucelli
left a comment
There was a problem hiding this comment.
All good, thanks! Will need to cut a release, can do this later today.
Owner
|
@castrapel it went out on the latest release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When apps have many open windows, the right-click window list is hard to scan because windows appear in discovery order. This adds a "Window List Sort" option (Preferences > Behavior > Mouse) that lets users sort the list alphabetically by title.
Default behavior is unchanged: the option defaults to "default" (scan order). Setting it to "alphabetical" sorts window entries by title, case-insensitive. The left-click action
(toggle/cycle/most-recent) is a separate code path and is not affected.
Screenshot showing the results (Sorry for the filter, but you get the idea!)