Skip to content

Add search results options for Win7-style menus (limit, prioritize, scrollable) - #2597

Open
St0RM53 wants to merge 2 commits into
Open-Shell:masterfrom
St0RM53:search-results-priority
Open

St0RM53 wants to merge 2 commits into
Open-Shell:masterfrom
St0RM53:search-results-priority

Conversation

@St0RM53

@St0RM53 St0RM53 commented Nov 20, 2026

Copy link
Copy Markdown

Three search improvements for Win7-style menus:

  1. The SearchResults/SearchResultsMax settings were only honored by the classic menu styles; Win7-style menus always divided the available height equally between categories. Both settings are now exposed in Win7 style and the height-based count is clamped so both styles behave consistently. Note: with the default of 5, tall menus that previously showed more items per category will now show fewer.
  2. New SearchResultsPriority option: when enabled, the configured per-category counts are always used instead of dividing the available space, and the search list becomes scrollable when the results don't fit (reusing the existing search scroll machinery).
  3. The scroll offset is now computed from the actual row heights, so mixed-height lists (category headers are taller than items) scroll correctly.

Tested on Windows 10 22H2.

The SearchResults/SearchResultsMax settings were only honored by the
classic menu styles; Win7-style menus always divided the available
height equally between categories. Expose both settings in Win7 style
and clamp the height-based count so both styles behave consistently.

Note: with the default of 5, tall menus that previously showed more
items per category will now show fewer.
New SearchResultsPriority option (Win7 style): when enabled, the
configured per-category counts are always used instead of dividing the
available space, and the search list becomes scrollable when the
results don't fit, reusing the existing search scroll machinery.

The scroll offset is now computed from the actual row heights, so
mixed-height lists (category headers are taller than items) scroll
correctly.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant