summaryrefslogtreecommitdiff
path: root/src/cli/action.zig
AgeCommit message (Collapse)Author
2025-07-09cli: make the action parser (+foo) generic and reusableMitchell Hashimoto
2025-07-03feat(ssh): rewrite SSH cache system in native ZigJason Rayne
- Eliminates standalone bash dependency - Consolidates `+list-ssh-cache` and `+clear-ssh-cache` actions into single `+ssh-cache` action with args - Structured cache format with timestamps and expiration support - Memory-safe entry handling with proper file locking - Comprehensive hostname validation (IPv4/IPv6/domains) - Atomic updates via temp file + rename - Updated shell integrations for improved cross-platform support and reliability - Cache operations are now unit-testable
2025-06-25fix: use imported modules consistently in action dispatchJason Rayne
2025-06-25docs: improve clear-ssh-cache description (missed in previous commit)Jason Rayne
Clarifies this clears hosts cached by SSH shell integration, completing mitchellh's feedback on both action descriptions.
2025-06-25docs: improve SSH cache CLI action descriptionsJason Rayne
- Clarify that +list-ssh-cache shows shell integration cached hosts - Add note about +clear-ssh-cache command and when to use it Addresses mitchellh's feedback on action descriptions.
2025-06-25refactor: replace ghostty wrapper with proper CLI actions for terminfo cache ↵Jason Rayne
management - Add +list-ssh-cache and +clear-ssh-cache CLI actions - Remove ghostty() wrapper functions from all shell integrations - Improve variable naming in shell scripts for readability Addresses @00-kat's feedback about CLI discoverability and naming consistency. The new CLI actions follow established Ghostty patterns and are discoverable via `ghostty --help`, while maintaining clean separation of concerns between shell logic and cache management.
2025-06-24cli: +edit-config command to open the config file in $EDITORMitchell Hashimoto
This adds a new CLI `ghostty +edit-config`. This will open the config file in the user's specified `$EDITOR`. If Ghostty has never been configured, this will also create the initial config file with some default templated contents (the same as that which we introduced back in Ghostty 1.0.1 or something -- not new behavior here). This is useful on its own because it will find the correct configuration path to open. If users are terminal users anyway (not a big stretch since this is a terminal app), this will allow them to easily edit config right away. This is also forward looking: I want to replace our "Open Config" action to open a Ghostty window executing this command so that users can edit their config in a terminal editor. This has been heavily requested since forever (short of a full GUI settings editor, which is not ready yet). I don't do this in this PR but plan to in a future PR.
2025-03-12Lots of 0.14 changesMitchell Hashimoto
2025-02-14cli: add +boo commandTim Culverhouse
Add a `+boo` command to show the animation from the website. The data for the frames is compressed during the build process. This build step was added to the SharedDeps object because it is used in both libghostty and in binaries. The compression is done as follows: - All files are concatenated together using \x01 as a combining byte - The files are compressed to a cached build file - A zig file is written to stdout which `@embedFile`s the compressed file and exposes it to the importer - A new anonymous module "framedata" is added in the SharedDeps object Any file can import framedata and access the compressed bytes via `framedata.compressed`. In the `boo` command, we decompress the file and split it into frames for use in the animation. The overall addition to the binary size is 348k.
2025-01-23documentation: consistent format for actions helpAnund
2024-12-17cli: add +show-face CLI actionJeffrey C. Ollie
This CLI action shows what font face Ghostty will use to display a particular codepoint.
2024-12-11zsh: add completions generationAnund
2024-10-30cli: do not parse actions (+command) after -eMitchell Hashimoto
Fixes #2506
2024-09-10feat: basic +crash-report cli actionJeffrey C. Ollie
Only lists crash reports right now. Viewing and/or submitting crash reports to come later.
2024-08-01commentMitchell Hashimoto
2024-08-01Add +list-actions CLI action to list keybind actions.Jeffrey C. Ollie
2024-07-17feat(cli): add initial validate-config actionRemi Gelinas
2024-01-20add +show-config action to print out the config from the cliJeffrey C. Ollie
2024-01-20cli: add help commandMitchell Hashimoto
2024-01-20cli: support --help and -h for actionsMitchell Hashimoto
2024-01-20rewrite generate_help for personal styleMitchell Hashimoto
- Output to stdin instead of a file - Less nesting - Utilize ranged for loops instead of while loops - Eliminate unnecessary state tracking - Put help in a struct
2024-01-10add ability to specify RGB colors as names from the X11 rgb name listJeffrey C. Ollie
2023-11-22cli: +list-themesMitchell Hashimoto
2023-11-02feat(actions): add new list-keybinds actionRaiden1411
2023-09-23cli/list-fonts: dumb implementationMitchell Hashimoto
2023-09-23cli: dedicated directoryMitchell Hashimoto