mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-25 06:18:37 +00:00
Expose toggle-quick-terminal as a proper IPC action so it can be triggered via 'ghostty +toggle-quick-terminal' from the command line, instead of calling the raw D-Bus org.gtk.Actions.Activate interface. This follows the same pattern as the existing +new-window IPC command: - Add toggle_quick_terminal to apprt.ipc.Action enum (Zig + C ABI) - Create apprt/gtk/ipc/toggle_quick_terminal.zig (GTK D-Bus handler) - Route .toggle_quick_terminal in apprt/gtk/App.zig performIpc - Register toggle-quick-terminal GAction in application.zig - Add +toggle-quick-terminal CLI handler in cli/ - Register in cli/ghostty.zig Action enum, runMain, and options - Add stub in apprt/embedded.zig - Update include/ghostty.h C header enum Usage: ghostty +toggle-quick-terminal Closes: #12618
Subcommand Actions
This is the cli specific code. It contains cli actions and tui definitions and argument parsing.
This README is meant as developer documentation and not as user documentation. For user documentation, see the main README or ghostty.org.
Updating documentation
Each cli action is defined in it's own file. Documentation for each action is defined
in the doc comment associated with the run function. For example the run function
in list_keybinds.zig contains the help text for ghostty +list-keybinds.