Support Ghostty 1.4, version 1.0.2
The built-in schema now describes Ghostty 1.4.0: 212 options, the new choices of copy-on-select, window-padding-balance = equal, number limits that also take "unlimited", and categories for the new options. genschema reads Ghostty's compatibility table, so old names and values Ghostty still accepts are no longer reported as errors: a renamed key such as scrollback-limit is shown in yellow and renamed in place with enter, a replaced option names its successors, and old values such as copy-on-select = true are accepted with a note. Theme previews expand ~/ like Ghostty 1.4 and only look where Ghostty looks for user themes. Theme names with parentheses of their own keep them. A live test checks every ghostty command against the installed Ghostty. Docs and screenshots updated for 1.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fb5602452a
commit
df261910c5
26 files changed
+920
-132
No files matched your search
+16
-3
@@ -104,7 +104,11 @@ from Ghostty's source. `tools/genschema` reads `src/config/Config.zig` and:
|
||||
- adds documentation and defaults from `+show-config`;
|
||||
- sorts every option into one of the categories in
|
||||
`internal/schema/categories.go`, and detects platform-specific options from
|
||||
their names and documentation.
|
||||
their names and documentation;
|
||||
- reads the `compatibility` table into `compat`: renamed keys with their new
|
||||
name, and for each handler function the old values it compares against and
|
||||
the options it sets. The editor uses it to explain old keys and values
|
||||
instead of reporting them as errors.
|
||||
|
||||
The result is embedded in the binary. At startup, the documentation and
|
||||
defaults are refreshed from the installed Ghostty, so they always match the
|
||||
@@ -125,8 +129,17 @@ or for unreleased versions:
|
||||
go run ./tools/genschema -zig path/to/Config.zig -docs docs.txt -version 1.4.0
|
||||
```
|
||||
|
||||
Afterwards, run `make test` and check the generator's warnings about unknown
|
||||
types. Those types need an entry in `typeMap`.
|
||||
Afterwards, run `make test` and check the generator's warnings. Unknown types
|
||||
need an entry in `typeMap`. A compatibility warning means the table or its
|
||||
handlers changed shape and `parseCompat` needs a look. Then check that every
|
||||
`ghostty` command ghosttyconf runs is still understood:
|
||||
|
||||
```sh
|
||||
GHOSTTYCONF_LIVE_TEST=1 go test -run Live -v ./internal/ghostty
|
||||
```
|
||||
|
||||
New options land in **Advanced** unless `internal/schema/categories.go`
|
||||
places them. `git diff internal/schema/schema.json` shows what changed.
|
||||
|
||||
## The config file model
|
||||
|
||||
|
||||
Reference in new issue
Block a user