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:
mikeandClaude Opus 5.5 committed 2026-10-28 10:44:23 +01:00
1 parent fb5602452a
commit df261910c5
26 files changed
+920 -132

No files matched your search

+5 -3
View File
@@ -110,9 +110,11 @@ func (g *Ghostty) Themes() ([]string, error) {
if line == "" {
continue
}
// Lines look like "Dracula (resources)" or "Mine (user)".
if i := strings.LastIndex(line, " ("); i > 0 && strings.HasSuffix(line, ")") {
line = line[:i]
// Lines look like "Dracula (resources)" or "Mine (user)". Only these
// two are cut off: names such as "Black Metal (Bathory)" have
// parentheses of their own.
for _, loc := range []string{" (resources)", " (user)"} {
line = strings.TrimSuffix(line, loc)
}
if !seen[line] {
seen[line] = true