mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
CommaSplitter treats backslash as an escape character, which breaks Windows paths like C:\Users\foo since \U is not a valid escape. On Windows, treat backslash as a literal character outside of quoted strings. Inside quotes, escape sequences still work as before. The platform behavior is controlled by a single comptime constant (escape_outside_quotes) so the logic lives in one place. Escape-specific tests are skipped on Windows with SkipZigTest, and Windows-specific tests are added separately. Also fix Theme.parseCLI to not mistake the colon in a Windows drive letter (C:\...) for a light/dark theme pair separator. Note: other places in the config parsing also use colon as a delimiter without accounting for Windows drive letters (command.zig prefix parsing, keybind parsing). Those are tracked separately. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.