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

+14
View File
@@ -340,6 +340,20 @@ func (f *File) Unset(key string) {
f.Lines = kept
}
// Rename gives every entry of key old the key new, in place. Only the key
// is replaced, so indentation and the formatting of the value stay as they
// were.
func (f *File) Rename(old, new string) {
for i, l := range f.Lines {
if l.Key != old {
continue
}
at := strings.Index(l.Raw, old) // the key is the first word of the line
f.Lines[i].Raw = l.Raw[:at] + new + l.Raw[at+len(old):]
f.Lines[i].Key = new
}
}
// Bytes renders the file.
func (f *File) Bytes() []byte {
var b bytes.Buffer