Repository navigation
Group select menu options under headings - #18024
Open
VinhLe1410 wants to merge 3 commits into
Open
VinhLe1410 wants to merge 3 commits into
VinhLe1410 wants to merge 3 commits into
Conversation
VinhLe1410
marked this pull request as ready for review
November 7, 2026 13:28
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues remain. SummaryAdds
The earlier heading-clipping concern is addressed. No new actionable issues were found. Visual checks could not run here because Quickshell and a Wayland session are unavailable. Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'upstream/q..." · Reviewed by Greptile |
This was referenced Nov 14, 2026
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.
What changes
omarchy-menu-selecthas no way to group options. In a long picker that mixes kinds of rows, I can't tell where one group ends and the next starts. Suggested in #18019.An option written
--heading=<text>now becomes a heading over the options after it:A heading uses the panel section header style with a separator line. It is a disabled row, so the cursor, pointer and Enter skip it, and it is never returned. A search hides a heading when no option under it matches. Multi-select ignores headings.
MenuModel.dmenuRowsturns the options into rows and handles the search, somenu-test.shcan cover it. Thejqfilter that builds the payload (#19877) turns each--heading=<text>option into{"heading": "<text>"}.Verification
bash test/shell.d/menu-test.sh: passes, including four new checks for headings, search and returned values. The new checks fail without this change.typing-setup-test.sh,overlay-window-test.sh,menu-plugin-test.shandmenu-guards-test.shpass.Menu.qmlandMenuModel.jsin my running shell and opened a select menu with three headings. The cursor starts on the first option, and the headings render as in the screenshot.Screenshots