Repository navigation
maple-agent: add macOS Hide, Hide Others, and Show All - #1014
Merged
Merged
Conversation
The Maple menu now includes the standard macOS hide commands. Hide Maple is ⌘H, Hide Others is ⌥⌘H, and Show All has no reserved key. The handlers call GPUI's NSApplication hide APIs, matching v1 Maple and Zed. Linux and Windows catalogs omit these slots. Fixes #1013
Collaborator
|
tested on macOS. All three new menu items work correctly. |
AnthonyRonning
approved these changes
Sep 23, 2026
AnthonyRonning
left a comment
Contributor
There was a problem hiding this comment.
Reviewed at 6fd3f56. Small, correctly cfg-gated change: Hide/Hide Others/Show All only on macOS, no conflicting cmd-h / alt-cmd-h bindings in the catalog, other platforms' catalogs and menus unchanged (asserted by tests), CI green on macOS/Linux/Windows, and manually verified on macOS by @marksftw. LGTM.
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.
Summary
Adds the standard macOS application-menu hide commands to maple-agent, matching Apple's reserved shortcuts, v1 Maple, and Zed:
⌘H)⌥⌘H)Handlers are macOS-only and call GPUI's
hide/hide_other_apps/unhide_other_apps, which map toNSApplication. The shortcut catalog includes Hide and Hide Others only on macOS, soCtrl+Hon Linux/Windows is unchanged. About and Check for Updates stay out of scope.Windows and Linux have no equivalent application-menu pattern; GPUI's hide APIs are no-ops there (and
hide_other_appswould panic on Windows). Those platforms are intentionally unchanged.Fixes #1013
Test plan
just ciinapps/maple-agent⌘Hand the menu item) hides the app⌥⌘H) hides other appsCtrl+Hare unchanged