Skip to content

apprt: move command palette support check into zig - #13672

Open
bo2themax wants to merge 1 commit into
ghostty-org:mainfrom
bo2themax:push-59c9e27f
Open

apprt: move command palette support check into zig#13672
bo2themax wants to merge 1 commit into
ghostty-org:mainfrom
bo2themax:push-59c9e27f

Conversation

@bo2themax

@bo2themax bo2themax commented Aug 6, 2026

Copy link
Copy Markdown
Member

Raised during conversation in #10999.

  • Added two command files for macOS and GTK to check whether an action is supported. So new action added in the future will have to update these two to avoid drifting.

  • Fixes the entries both lists were missing:

    • macOS: show_on_screen_keyboard, move_tab_to_new_window
    • GTK: toggle_background_opacity, toggle_visibility

AI Disclosure

Claude implemented this, i reviewed and tested on macOS, gtk part looks simple enough.

@bo2themax
bo2themax requested review from a team as code owners August 6, 2026 17:08

@tristan957 tristan957 left a comment

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.

GTK tree looks good.

@bo2themax
bo2themax force-pushed the push-59c9e27f branch 5 times, most recently from d0ffa99 to 99154c7 Compare August 13, 2026 15:23
Whether a command palette entry does anything is a property of the apprt
that receives the action, but both apps kept their own hand-maintained
list and both had drifted.

`ghostty_command_s` now carries `supported`, filled from a table that
each apprt owns:

  * macOS, iOS: src/apprt/embedded/command.zig
  * GTK: src/apprt/gtk/command.zig

Fixes the entries both lists were missing:

  * macOS: show_on_screen_keyboard, move_tab_to_new_window
  * GTK: toggle_background_opacity
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.

4 participants