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 b7f9e58ca9
26 files changed
+919 -131

No files matched your search

+9 -4
View File
@@ -8,7 +8,7 @@
<p align="center"> <p align="center">
<a href="https://git.micw.org/mike/ghosttyconf/releases"><img alt="Release" src="https://img.shields.io/gitea/v/release/mike/ghosttyconf?gitea_url=https%3A%2F%2Fgit.micw.org&label=release&color=a6e3a1"></a> <a href="https://git.micw.org/mike/ghosttyconf/releases"><img alt="Release" src="https://img.shields.io/gitea/v/release/mike/ghosttyconf?gitea_url=https%3A%2F%2Fgit.micw.org&label=release&color=a6e3a1"></a>
<img alt="Go 1.24+" src="https://img.shields.io/badge/go-1.24%2B-00ADD8?logo=go&logoColor=white"> <img alt="Go 1.24+" src="https://img.shields.io/badge/go-1.24%2B-00ADD8?logo=go&logoColor=white">
<img alt="Ghostty 1.3" src="https://img.shields.io/badge/ghostty-1.3-7aa2f7"> <img alt="Ghostty 1.4" src="https://img.shields.io/badge/ghostty-1.4-7aa2f7">
<img alt="macOS and Linux" src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux-a6adc8"> <img alt="macOS and Linux" src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux-a6adc8">
</p> </p>
@@ -26,12 +26,12 @@ stay intact, and after saving, Ghostty reloads the configuration right away.
## ✨ Highlights ## ✨ Highlights
- 📚 **All options, documented.** All 201 options of Ghostty 1.3, in 19 - 📚 **All options, documented.** All 212 options of Ghostty 1.4, in 19
categories, with the documentation of *your* Ghostty version. categories, with the documentation of *your* Ghostty version.
- 🎛 **An editor for every type.** Toggles, choice lists, checklists for flags, - 🎛 **An editor for every type.** Toggles, choice lists, checklists for flags,
number steppers, colors with live swatches, a list editor for repeatable number steppers, colors with live swatches, a list editor for repeatable
options, the 256-color palette. options, the 256-color palette.
- 🎨 **Theme and font pickers.** Filter more than 460 themes with a live color - 🎨 **Theme and font pickers.** Filter more than 800 themes with a live color
preview, or pick from the font families Ghostty can find. preview, or pick from the font families Ghostty can find.
- ⌨️ **Key binding editor.** See Ghostty's built-in bindings merged with yours, - ⌨️ **Key binding editor.** See Ghostty's built-in bindings merged with yours,
and change, unbind, restore or add bindings. Record shortcuts straight from and change, unbind, restore or add bindings. Record shortcuts straight from
@@ -57,7 +57,7 @@ but Ghostty.
```sh ```sh
# macOS on Apple silicon; for other systems, replace darwin-arm64 with # macOS on Apple silicon; for other systems, replace darwin-arm64 with
# darwin-amd64, linux-amd64 or linux-arm64 # darwin-amd64, linux-amd64 or linux-arm64
curl -fLo ghosttyconf https://git.micw.org/mike/ghosttyconf/releases/download/1.0.1/ghosttyconf-darwin-arm64 curl -fLo ghosttyconf https://git.micw.org/mike/ghosttyconf/releases/download/1.0.2/ghosttyconf-darwin-arm64
chmod +x ghosttyconf chmod +x ghosttyconf
mv ghosttyconf ~/bin/ # or any other directory in your $PATH mv ghosttyconf ~/bin/ # or any other directory in your $PATH
``` ```
@@ -237,6 +237,11 @@ your version. Themes, fonts, actions and validation also come from the
`ghostty` command line. Without Ghostty (`--offline`), the built-in data is `ghostty` command line. Without Ghostty (`--offline`), the built-in data is
used. used.
Old option names and values that Ghostty still reads, such as
`scrollback-limit` (now `scrollback-limit-bytes`) or `copy-on-select = true`,
are recognized from Ghostty's compatibility table and explained instead of
being flagged as errors. `enter` on an old name renames it in place.
## 📖 Documentation ## 📖 Documentation
- [User guide](docs/guide.md): every editor, key bindings in depth, saving, - [User guide](docs/guide.md): every editor, key bindings in depth, saving,
+16 -3
View File
@@ -104,7 +104,11 @@ from Ghostty's source. `tools/genschema` reads `src/config/Config.zig` and:
- adds documentation and defaults from `+show-config`; - adds documentation and defaults from `+show-config`;
- sorts every option into one of the categories in - sorts every option into one of the categories in
`internal/schema/categories.go`, and detects platform-specific options from `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 The result is embedded in the binary. At startup, the documentation and
defaults are refreshed from the installed Ghostty, so they always match the 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 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 Afterwards, run `make test` and check the generator's warnings. Unknown types
types. Those types need an entry in `typeMap`. 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 ## The config file model
+16 -1
View File
@@ -63,6 +63,19 @@ Keys in your file that Ghostty doesn't know (typos, options of a newer or
older Ghostty version) appear under **Set in Config** with a red name and an older Ghostty version) appear under **Set in Config** with a red name and an
explanation. They are kept as they are until you remove them with `r`. explanation. They are kept as they are until you remove them with `r`.
Old names and values that Ghostty still reads for compatibility are not
errors, and ghosttyconf doesn't mark them as such:
- **Renamed options**, such as `scrollback-limit` (since 1.4
`scrollback-limit-bytes`) or `background-blur-radius`, have a yellow name.
`enter` renames the entry in place and keeps its value. The current option
shows the value too, with a note that it is set under the old name.
- **Replaced options**, such as `bold-is-bright`, also have a yellow name. The
documentation names the options that replace them. Set those, then remove
the old line with `r`.
- **Old values**, such as `copy-on-select = true` from before 1.4, are
accepted, and the documentation lists the current values.
`←`/`→` or `tab` switch between the category and option lists. `shift+↑`/`↓` `←`/`→` or `tab` switch between the category and option lists. `shift+↑`/`↓`
(or `ctrl+u`/`ctrl+d`) scroll the documentation. Mouse clicks and the wheel work (or `ctrl+u`/`ctrl+d`) scroll the documentation. Mouse clicks and the wheel work
in every list. in every list.
@@ -131,7 +144,9 @@ highlighted name. The preview below the list shows the highlighted theme's
prompt, file listing, syntax colors and palette. If your config sets colors prompt, file listing, syntax colors and palette. If your config sets colors
itself (`background`, `cursor-color`, `palette`, …), a note lists them, because itself (`background`, `cursor-color`, `palette`, …), a note lists them, because
they take precedence over any theme. You can also type a value the list doesn't they take precedence over any theme. You can also type a value the list doesn't
know, such as `light:Catppuccin Latte,dark:Catppuccin Mocha`. know, such as `light:Catppuccin Latte,dark:Catppuccin Mocha`, or the path of a
theme file. Since Ghostty 1.4, a path may start with `~/`, and the preview
finds it there too.
**Fonts.** `font-family`, `font-family-bold` and the other font options offer **Fonts.** `font-family`, `font-family-bold` and the other font options offer
the families from `ghostty +list-fonts`. the families from `ghostty +list-fonts`.
+17 -17
View File
@@ -6,27 +6,27 @@
<circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/> <circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/>
<text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text> <text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text>
<g transform="translate(14 48)"> <g transform="translate(14 48)">
<rect x="0" y="0" width="184.6" height="17.6" fill="#74a8fc"/> <rect x="0" y="0" width="184.6" height="17.6" fill="#aeccfc"/>
<rect x="472" y="119" width="16.6" height="17.6" fill="#f5e0dc"/> <rect x="472" y="119" width="16.6" height="17.6" fill="#f5e0dc"/>
<rect x="472" y="136" width="16.6" height="17.6" fill="#585b70"/> <rect x="472" y="136" width="16.6" height="17.6" fill="#585b70"/>
<rect x="216" y="221" width="192.6" height="17.6" fill="#3a3a3a"/> <rect x="216" y="221" width="192.6" height="17.6" fill="#3a3a3a"/>
<rect x="736" y="221" width="408.6" height="17.6" fill="#3a3a3a"/> <rect x="736" y="221" width="408.6" height="17.6" fill="#3a3a3a"/>
<path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M112 25.5H120M120 25.5H128M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H200Q204 25.5 204 29.5V34M4 34V51M204 34V51M4 51V68M204 51V68M4 68V85M8 76.5H16M16 76.5H24M24 76.5H32M32 76.5H40M40 76.5H48M48 76.5H56M56 76.5H64M64 76.5H72M72 76.5H80M80 76.5H88M88 76.5H96M96 76.5H104M104 76.5H112M112 76.5H120M120 76.5H128M128 76.5H136M136 76.5H144M144 76.5H152M152 76.5H160M160 76.5H168M168 76.5H176M176 76.5H184M184 76.5H192M192 76.5H200M204 68V85M4 85V102M204 85V102M4 102V119M204 102V119M4 119V136M204 119V136M4 136V153M204 136V153M4 153V170M204 153V170M4 170V187M204 170V187M4 187V204M204 187V204M4 204V221M204 204V221M4 221V238M204 221V238M4 238V255M204 238V255M4 255V272M204 255V272M4 272V289M204 272V289M4 289V306M204 289V306M4 306V323M204 306V323M216 314.5H216Q212 314.5 212 318.5V323M216 314.5H224M736 314.5H744M744 314.5H752M752 314.5H760M760 314.5H768M768 314.5H776M776 314.5H784M784 314.5H792M792 314.5H800M800 314.5H808M808 314.5H816M816 314.5H824M824 314.5H832M832 314.5H840M840 314.5H848M848 314.5H856M856 314.5H864M864 314.5H872M872 314.5H880M880 314.5H888M888 314.5H896M896 314.5H904M904 314.5H912M912 314.5H920M920 314.5H928M928 314.5H936M936 314.5H944M944 314.5H952M952 314.5H960M960 314.5H968M968 314.5H976M976 314.5H984M984 314.5H992M992 314.5H1000M1000 314.5H1008M1008 314.5H1016M1016 314.5H1024M1024 314.5H1032M1032 314.5H1040M1040 314.5H1048M1048 314.5H1056M1056 314.5H1064M1064 314.5H1072M1072 314.5H1080M1080 314.5H1088M1088 314.5H1096M1096 314.5H1104M1104 314.5H1112M1112 314.5H1120M1120 314.5H1128M1128 314.5H1136M1136 314.5H1144M1144 314.5H1144Q1148 314.5 1148 318.5V323M4 323V340M204 323V340M212 323V340M1148 323V340M4 340V357M204 340V357M212 340V357M1148 340V357M4 357V374M204 357V374M212 357V374M1148 357V374M4 374V391M204 374V391M212 374V391M1148 374V391M4 391V408M204 391V408M212 391V408M1148 391V408M4 408V425M204 408V425M212 408V425M1148 408V425M4 425V442M204 425V442M212 425V442M1148 425V442M4 442V459M204 442V459M212 442V459M1148 442V459M4 459V476M204 459V476M212 459V476M1148 459V476M4 476V493M204 476V493M212 476V493M1148 476V493M4 493V510M204 493V510M212 493V510M1148 493V510M4 510V527M204 510V527M212 510V527M1148 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H200Q204 535.5 204 531.5V527M216 535.5H216Q212 535.5 212 531.5V527M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H632M632 535.5H640M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/> <path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M112 25.5H120M120 25.5H128M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H200Q204 25.5 204 29.5V34M4 34V51M204 34V51M4 51V68M204 51V68M4 68V85M8 76.5H16M16 76.5H24M24 76.5H32M32 76.5H40M40 76.5H48M48 76.5H56M56 76.5H64M64 76.5H72M72 76.5H80M80 76.5H88M88 76.5H96M96 76.5H104M104 76.5H112M112 76.5H120M120 76.5H128M128 76.5H136M136 76.5H144M144 76.5H152M152 76.5H160M160 76.5H168M168 76.5H176M176 76.5H184M184 76.5H192M192 76.5H200M204 68V85M4 85V102M204 85V102M4 102V119M204 102V119M4 119V136M204 119V136M4 136V153M204 136V153M4 153V170M204 153V170M4 170V187M204 170V187M4 187V204M204 187V204M4 204V221M204 204V221M4 221V238M204 221V238M4 238V255M204 238V255M4 255V272M204 255V272M4 272V289M204 272V289M4 289V306M204 289V306M4 306V323M204 306V323M216 314.5H216Q212 314.5 212 318.5V323M216 314.5H224M736 314.5H744M744 314.5H752M752 314.5H760M760 314.5H768M768 314.5H776M776 314.5H784M784 314.5H792M792 314.5H800M800 314.5H808M808 314.5H816M816 314.5H824M824 314.5H832M832 314.5H840M840 314.5H848M848 314.5H856M856 314.5H864M864 314.5H872M872 314.5H880M880 314.5H888M888 314.5H896M896 314.5H904M904 314.5H912M912 314.5H920M920 314.5H928M928 314.5H936M936 314.5H944M944 314.5H952M952 314.5H960M960 314.5H968M968 314.5H976M976 314.5H984M984 314.5H992M992 314.5H1000M1000 314.5H1008M1008 314.5H1016M1016 314.5H1024M1024 314.5H1032M1032 314.5H1040M1040 314.5H1048M1048 314.5H1056M1056 314.5H1064M1064 314.5H1072M1072 314.5H1080M1080 314.5H1088M1088 314.5H1096M1096 314.5H1104M1104 314.5H1112M1112 314.5H1120M1120 314.5H1128M1128 314.5H1136M1136 314.5H1144M1144 314.5H1144Q1148 314.5 1148 318.5V323M4 323V340M204 323V340M212 323V340M1148 323V340M4 340V357M204 340V357M212 340V357M1148 340V357M4 357V374M204 357V374M212 357V374M1148 357V374M4 374V391M204 374V391M212 374V391M1148 374V391M4 391V408M204 391V408M212 391V408M1148 391V408M4 408V425M204 408V425M212 408V425M1148 408V425M4 425V442M204 425V442M212 425V442M1148 425V442M4 442V459M204 442V459M212 442V459M1148 442V459M4 459V476M204 459V476M212 459V476M1148 459V476M4 476V493M204 476V493M212 476V493M1148 476V493M4 493V510M204 493V510M212 493V510M1148 493V510M4 510V527M204 510V527M212 510V527M1148 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H200Q204 535.5 204 531.5V527M216 535.5H216Q212 535.5 212 531.5V527M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H632M632 535.5H640M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/>
<path d="M216 25.5H216Q212 25.5 212 29.5V34M216 25.5H224M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H632M632 25.5H640M640 25.5H648M648 25.5H656M656 25.5H664M664 25.5H672M672 25.5H680M680 25.5H688M688 25.5H696M696 25.5H704M704 25.5H712M712 25.5H720M720 25.5H728M728 25.5H736M736 25.5H744M744 25.5H752M752 25.5H760M760 25.5H768M768 25.5H776M776 25.5H784M784 25.5H792M792 25.5H800M800 25.5H808M808 25.5H816M816 25.5H824M824 25.5H832M832 25.5H840M840 25.5H848M848 25.5H856M856 25.5H864M864 25.5H872M872 25.5H880M880 25.5H888M888 25.5H896M896 25.5H904M904 25.5H912M912 25.5H920M920 25.5H928M928 25.5H936M936 25.5H944M944 25.5H952M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M212 34V51M1148 34V51M212 51V68M1148 51V68M212 68V85M1148 68V85M212 85V102M1148 85V102M212 102V119M1148 102V119M212 119V136M1148 119V136M212 136V153M1148 136V153M212 153V170M416 161.5H416Q412 161.5 412 165.5V170M416 161.5H424M592 161.5H600M600 161.5H608M608 161.5H616M616 161.5H624M624 161.5H632M632 161.5H640M640 161.5H648M648 161.5H656M656 161.5H664M664 161.5H672M672 161.5H680M680 161.5H688M688 161.5H696M696 161.5H704M704 161.5H712M712 161.5H720M720 161.5H728M728 161.5H728Q732 161.5 732 165.5V170M1148 153V170M212 170V187M412 170V187M732 170V187M1148 170V187M212 187V204M412 187V204M732 187V204M1148 187V204M212 204V221M412 204V221M732 204V221M1148 204V221M212 221V238M412 221V238M732 221V238M1148 221V238M212 238V255M412 238V255M732 238V255M1148 238V255M212 255V272M412 255V272M732 255V272M1148 255V272M212 272V289M412 272V289M732 272V289M1148 272V289M216 297.5H216Q212 297.5 212 293.5V289M216 297.5H224M224 297.5H232M232 297.5H240M240 297.5H248M248 297.5H256M256 297.5H264M264 297.5H272M272 297.5H280M280 297.5H288M288 297.5H296M296 297.5H304M304 297.5H312M312 297.5H320M320 297.5H328M328 297.5H336M336 297.5H344M344 297.5H352M352 297.5H360M360 297.5H368M368 297.5H376M376 297.5H384M384 297.5H392M392 297.5H400M400 297.5H408M412 289V306M732 289V306M736 297.5H744M744 297.5H752M752 297.5H760M760 297.5H768M768 297.5H776M776 297.5H784M784 297.5H792M792 297.5H800M800 297.5H808M808 297.5H816M816 297.5H824M824 297.5H832M832 297.5H840M840 297.5H848M848 297.5H856M856 297.5H864M864 297.5H872M872 297.5H880M880 297.5H888M888 297.5H896M896 297.5H904M904 297.5H912M912 297.5H920M920 297.5H928M928 297.5H936M936 297.5H944M944 297.5H952M952 297.5H960M960 297.5H968M968 297.5H976M976 297.5H984M984 297.5H992M992 297.5H1000M1000 297.5H1008M1008 297.5H1016M1016 297.5H1024M1024 297.5H1032M1032 297.5H1040M1040 297.5H1048M1048 297.5H1056M1056 297.5H1064M1064 297.5H1072M1072 297.5H1080M1080 297.5H1088M1088 297.5H1096M1096 297.5H1104M1104 297.5H1112M1112 297.5H1120M1120 297.5H1128M1128 297.5H1136M1136 297.5H1144M1144 297.5H1144Q1148 297.5 1148 293.5V289M412 306V323M732 306V323M412 323V340M732 323V340M412 340V357M732 340V357M412 357V374M732 357V374M412 374V391M732 374V391M416 399.5H416Q412 399.5 412 395.5V391M416 399.5H424M424 399.5H432M432 399.5H440M440 399.5H448M448 399.5H456M456 399.5H464M464 399.5H472M472 399.5H480M480 399.5H488M488 399.5H496M496 399.5H504M504 399.5H512M512 399.5H520M520 399.5H528M528 399.5H536M536 399.5H544M544 399.5H552M552 399.5H560M560 399.5H568M568 399.5H576M576 399.5H584M584 399.5H592M592 399.5H600M600 399.5H608M608 399.5H616M616 399.5H624M624 399.5H632M632 399.5H640M640 399.5H648M648 399.5H656M656 399.5H664M664 399.5H672M672 399.5H680M680 399.5H688M688 399.5H696M696 399.5H704M704 399.5H712M712 399.5H720M720 399.5H728M728 399.5H728Q732 399.5 732 395.5V391" fill="none" stroke="#74a8fc" stroke-width="1.2"/> <path d="M216 25.5H216Q212 25.5 212 29.5V34M216 25.5H224M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H632M632 25.5H640M640 25.5H648M648 25.5H656M656 25.5H664M664 25.5H672M672 25.5H680M680 25.5H688M688 25.5H696M696 25.5H704M704 25.5H712M712 25.5H720M720 25.5H728M728 25.5H736M736 25.5H744M744 25.5H752M752 25.5H760M760 25.5H768M768 25.5H776M776 25.5H784M784 25.5H792M792 25.5H800M800 25.5H808M808 25.5H816M816 25.5H824M824 25.5H832M832 25.5H840M840 25.5H848M848 25.5H856M856 25.5H864M864 25.5H872M872 25.5H880M880 25.5H888M888 25.5H896M896 25.5H904M904 25.5H912M912 25.5H920M920 25.5H928M928 25.5H936M936 25.5H944M944 25.5H952M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M212 34V51M1148 34V51M212 51V68M1148 51V68M212 68V85M1148 68V85M212 85V102M1148 85V102M212 102V119M1148 102V119M212 119V136M1148 119V136M212 136V153M1148 136V153M212 153V170M416 161.5H416Q412 161.5 412 165.5V170M416 161.5H424M592 161.5H600M600 161.5H608M608 161.5H616M616 161.5H624M624 161.5H632M632 161.5H640M640 161.5H648M648 161.5H656M656 161.5H664M664 161.5H672M672 161.5H680M680 161.5H688M688 161.5H696M696 161.5H704M704 161.5H712M712 161.5H720M720 161.5H728M728 161.5H728Q732 161.5 732 165.5V170M1148 153V170M212 170V187M412 170V187M732 170V187M1148 170V187M212 187V204M412 187V204M732 187V204M1148 187V204M212 204V221M412 204V221M732 204V221M1148 204V221M212 221V238M412 221V238M732 221V238M1148 221V238M212 238V255M412 238V255M732 238V255M1148 238V255M212 255V272M412 255V272M732 255V272M1148 255V272M212 272V289M412 272V289M732 272V289M1148 272V289M216 297.5H216Q212 297.5 212 293.5V289M216 297.5H224M224 297.5H232M232 297.5H240M240 297.5H248M248 297.5H256M256 297.5H264M264 297.5H272M272 297.5H280M280 297.5H288M288 297.5H296M296 297.5H304M304 297.5H312M312 297.5H320M320 297.5H328M328 297.5H336M336 297.5H344M344 297.5H352M352 297.5H360M360 297.5H368M368 297.5H376M376 297.5H384M384 297.5H392M392 297.5H400M400 297.5H408M412 289V306M732 289V306M736 297.5H744M744 297.5H752M752 297.5H760M760 297.5H768M768 297.5H776M776 297.5H784M784 297.5H792M792 297.5H800M800 297.5H808M808 297.5H816M816 297.5H824M824 297.5H832M832 297.5H840M840 297.5H848M848 297.5H856M856 297.5H864M864 297.5H872M872 297.5H880M880 297.5H888M888 297.5H896M896 297.5H904M904 297.5H912M912 297.5H920M920 297.5H928M928 297.5H936M936 297.5H944M944 297.5H952M952 297.5H960M960 297.5H968M968 297.5H976M976 297.5H984M984 297.5H992M992 297.5H1000M1000 297.5H1008M1008 297.5H1016M1016 297.5H1024M1024 297.5H1032M1032 297.5H1040M1040 297.5H1048M1048 297.5H1056M1056 297.5H1064M1064 297.5H1072M1072 297.5H1080M1080 297.5H1088M1088 297.5H1096M1096 297.5H1104M1104 297.5H1112M1112 297.5H1120M1120 297.5H1128M1128 297.5H1136M1136 297.5H1144M1144 297.5H1144Q1148 297.5 1148 293.5V289M412 306V323M732 306V323M412 323V340M732 323V340M412 340V357M732 340V357M412 357V374M732 357V374M412 374V391M732 374V391M416 399.5H416Q412 399.5 412 395.5V391M416 399.5H424M424 399.5H432M432 399.5H440M440 399.5H448M448 399.5H456M456 399.5H464M464 399.5H472M472 399.5H480M480 399.5H488M488 399.5H496M496 399.5H504M504 399.5H512M512 399.5H520M520 399.5H528M528 399.5H536M536 399.5H544M544 399.5H552M552 399.5H560M560 399.5H568M568 399.5H576M576 399.5H584M584 399.5H592M592 399.5H600M600 399.5H608M608 399.5H616M616 399.5H624M624 399.5H632M632 399.5H640M640 399.5H648M648 399.5H656M656 399.5H664M664 399.5H672M672 399.5H680M680 399.5H688M688 399.5H696M696 399.5H704M704 399.5H712M712 399.5H720M720 399.5H728M728 399.5H728Q732 399.5 732 395.5V391" fill="none" stroke="#aeccfc" stroke-width="1.2"/>
<g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve"> <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve">
<text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text> <text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text>
<text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text> <text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text>
<text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.3.1 · 201 options</text> <text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.4.0 · 212 options</text>
<text x="24" y="29.9" fill="#585b70" textLength="80" lengthAdjust="spacingAndGlyphs">Categories</text> <text x="24" y="29.9" fill="#585b70" textLength="80" lengthAdjust="spacingAndGlyphs">Categories</text>
<text x="232" y="29.9" fill="#74a8fc" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">Set in Config (15)</text> <text x="232" y="29.9" fill="#aeccfc" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">Set in Config (15)</text>
<text x="8" y="46.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text> <text x="8" y="46.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text>
<text x="24" y="46.9" fill="#a6e3a1" textLength="104" lengthAdjust="spacingAndGlyphs">Set in Config</text> <text x="24" y="46.9" fill="#a6e3a1" textLength="104" lengthAdjust="spacingAndGlyphs">Set in Config</text>
<text x="184" y="46.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">15</text> <text x="184" y="46.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">15</text>
<text x="232" y="46.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="46.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="46.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">theme</text> <text x="248" y="46.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">theme</text>
<text x="472" y="46.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text> <text x="472" y="46.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text>
<text x="24" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">All Options</text> <text x="24" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">All Options</text>
<text x="176" y="63.9" fill="#585b70" textLength="24" lengthAdjust="spacingAndGlyphs">201</text> <text x="176" y="63.9" fill="#585b70" textLength="24" lengthAdjust="spacingAndGlyphs">212</text>
<text x="232" y="63.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="63.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">font-family</text> <text x="248" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">font-family</text>
<text x="472" y="63.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">JetBrains Mono</text> <text x="472" y="63.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">JetBrains Mono</text>
@@ -57,24 +57,24 @@
<text x="192" y="165.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">7</text> <text x="192" y="165.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">7</text>
<text x="232" y="165.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="165.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="165.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-x</text> <text x="248" y="165.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-x</text>
<text x="432" y="165.9" fill="#74a8fc" textLength="152" lengthAdjust="spacingAndGlyphs" font-weight="700">Unsaved changes (3)</text> <text x="432" y="165.9" fill="#aeccfc" textLength="152" lengthAdjust="spacingAndGlyphs" font-weight="700">Unsaved changes (3)</text>
<text x="24" y="182.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">Window</text> <text x="24" y="182.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">Window</text>
<text x="184" y="182.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">29</text> <text x="184" y="182.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">30</text>
<text x="232" y="182.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="182.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="182.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-y</text> <text x="248" y="182.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-y</text>
<text x="24" y="199.9" fill="#cdd6f4" textLength="104" lengthAdjust="spacingAndGlyphs">Tabs &amp; Splits</text> <text x="24" y="199.9" fill="#cdd6f4" textLength="104" lengthAdjust="spacingAndGlyphs">Tabs &amp; Splits</text>
<text x="192" y="199.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">6</text> <text x="192" y="199.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">7</text>
<text x="232" y="199.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="199.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="199.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">window-save-state</text> <text x="248" y="199.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">window-save-state</text>
<text x="424" y="199.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs" font-weight="700">font-size</text> <text x="424" y="199.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs" font-weight="700">font-size</text>
<text x="24" y="216.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">Mouse &amp; Selection</text> <text x="24" y="216.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">Mouse &amp; Selection</text>
<text x="184" y="216.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">12</text> <text x="184" y="216.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">14</text>
<text x="232" y="216.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="216.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="216.9" fill="#cdd6f4" textLength="144" lengthAdjust="spacingAndGlyphs">background-opacity</text> <text x="248" y="216.9" fill="#cdd6f4" textLength="144" lengthAdjust="spacingAndGlyphs">background-opacity</text>
<text x="440" y="216.9" fill="#f38ba8" textLength="128" lengthAdjust="spacingAndGlyphs">- font-size = 14</text> <text x="440" y="216.9" fill="#f38ba8" textLength="128" lengthAdjust="spacingAndGlyphs">- font-size = 14</text>
<text x="24" y="233.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Clipboard</text> <text x="24" y="233.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Clipboard</text>
<text x="192" y="233.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">7</text> <text x="192" y="233.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">8</text>
<text x="216" y="233.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text> <text x="216" y="233.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text>
<text x="232" y="233.9" fill="#f9e2af" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="233.9" fill="#f9e2af" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="233.9" fill="#cdd6f4" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">macos-titlebar-style</text> <text x="248" y="233.9" fill="#cdd6f4" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">macos-titlebar-style</text>
<text x="440" y="233.9" fill="#a6e3a1" textLength="144" lengthAdjust="spacingAndGlyphs">+ font-size = 14.5</text> <text x="440" y="233.9" fill="#a6e3a1" textLength="144" lengthAdjust="spacingAndGlyphs">+ font-size = 14.5</text>
@@ -89,7 +89,7 @@
<text x="248" y="267.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">copy-on-select</text> <text x="248" y="267.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">copy-on-select</text>
<text x="440" y="267.9" fill="#f38ba8" textLength="232" lengthAdjust="spacingAndGlyphs">- macos-titlebar-style = tabs</text> <text x="440" y="267.9" fill="#f38ba8" textLength="232" lengthAdjust="spacingAndGlyphs">- macos-titlebar-style = tabs</text>
<text x="24" y="284.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Scrolling</text> <text x="24" y="284.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Scrolling</text>
<text x="192" y="284.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">4</text> <text x="192" y="284.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">6</text>
<text x="232" y="284.9" fill="#f9e2af" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="284.9" fill="#f9e2af" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="284.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">keybind</text> <text x="248" y="284.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">keybind</text>
<text x="440" y="284.9" fill="#a6e3a1" textLength="248" lengthAdjust="spacingAndGlyphs">+ macos-titlebar-style = hidden</text> <text x="440" y="284.9" fill="#a6e3a1" textLength="248" lengthAdjust="spacingAndGlyphs">+ macos-titlebar-style = hidden</text>
@@ -102,23 +102,23 @@
<text x="440" y="318.9" fill="#f38ba8" textLength="280" lengthAdjust="spacingAndGlyphs">- keybind = super+d=new_split:right</text> <text x="440" y="318.9" fill="#f38ba8" textLength="280" lengthAdjust="spacingAndGlyphs">- keybind = super+d=new_split:right</text>
<text x="24" y="335.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">Shaders</text> <text x="24" y="335.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">Shaders</text>
<text x="192" y="335.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text> <text x="192" y="335.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text>
<text x="224" y="335.9" fill="#74a8fc" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">macos-titlebar-style</text> <text x="224" y="335.9" fill="#aeccfc" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">macos-titlebar-style</text>
<text x="440" y="335.9" fill="#a6e3a1" textLength="208" lengthAdjust="spacingAndGlyphs">+ keybind = super+d=unbind</text> <text x="440" y="335.9" fill="#a6e3a1" textLength="208" lengthAdjust="spacingAndGlyphs">+ keybind = super+d=unbind</text>
<text x="24" y="352.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">macOS</text> <text x="24" y="352.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">macOS</text>
<text x="184" y="352.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">18</text> <text x="184" y="352.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">18</text>
<text x="440" y="352.9" fill="#a6e3a1" textLength="280" lengthAdjust="spacingAndGlyphs">+ keybind = super+\=new_split:right</text> <text x="440" y="352.9" fill="#a6e3a1" textLength="280" lengthAdjust="spacingAndGlyphs">+ keybind = super+\=new_split:right</text>
<text x="24" y="369.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">Linux &amp; GTK</text> <text x="24" y="369.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">Linux &amp; GTK</text>
<text x="184" y="369.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">17</text> <text x="184" y="369.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">19</text>
<text x="224" y="369.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text> <text x="224" y="369.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text>
<text x="304" y="369.9" fill="#cdd6f4" textLength="104" lengthAdjust="spacingAndGlyphs">one of native</text> <text x="304" y="369.9" fill="#cdd6f4" textLength="104" lengthAdjust="spacingAndGlyphs">one of native</text>
<text x="24" y="386.9" fill="#cdd6f4" textLength="96" lengthAdjust="spacingAndGlyphs">Config Files</text> <text x="24" y="386.9" fill="#cdd6f4" textLength="96" lengthAdjust="spacingAndGlyphs">Config Files</text>
<text x="192" y="386.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text> <text x="192" y="386.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text>
<text x="224" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Default</text> <text x="224" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Default</text>
<text x="304" y="386.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">transparent</text> <text x="304" y="386.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">transparent</text>
<text x="424" y="386.9" fill="#74a8fc" textLength="24" lengthAdjust="spacingAndGlyphs" font-weight="700">esc</text> <text x="424" y="386.9" fill="#aeccfc" textLength="24" lengthAdjust="spacingAndGlyphs" font-weight="700">esc</text>
<text x="456" y="386.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">Close</text> <text x="456" y="386.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">Close</text>
<text x="24" y="403.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">Advanced</text> <text x="24" y="403.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">Advanced</text>
<text x="192" y="403.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text> <text x="192" y="403.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">4</text>
<text x="224" y="403.9" fill="#585b70" textLength="40" lengthAdjust="spacingAndGlyphs">Value</text> <text x="224" y="403.9" fill="#585b70" textLength="40" lengthAdjust="spacingAndGlyphs">Value</text>
<text x="304" y="403.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">hidden</text> <text x="304" y="403.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">hidden</text>
<text x="368" y="403.9" fill="#a6e3a1" textLength="40" lengthAdjust="spacingAndGlyphs">● set</text> <text x="368" y="403.9" fill="#a6e3a1" textLength="40" lengthAdjust="spacingAndGlyphs">● set</text>

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

+26 -26
View File
@@ -6,19 +6,19 @@
<circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/> <circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/>
<text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text> <text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text>
<g transform="translate(14 48)"> <g transform="translate(14 48)">
<rect x="0" y="0" width="184.6" height="17.6" fill="#74a8fc"/> <rect x="0" y="0" width="184.6" height="17.6" fill="#aeccfc"/>
<rect x="16" y="323" width="600.6" height="17.6" fill="#3a3a3a"/> <rect x="16" y="323" width="600.6" height="17.6" fill="#3a3a3a"/>
<path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H208M208 25.5H216M216 25.5H224M224 25.5H232M232 25.5H240M240 25.5H248M248 25.5H256M256 25.5H264M264 25.5H272M272 25.5H280M280 25.5H288M288 25.5H296M296 25.5H304M304 25.5H312M312 25.5H320M320 25.5H328M328 25.5H336M336 25.5H344M344 25.5H352M352 25.5H360M360 25.5H368M368 25.5H376M376 25.5H384M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H624Q628 25.5 628 29.5V34M4 34V51M628 34V51M4 51V68M628 51V68M4 68V85M628 68V85M4 85V102M628 85V102M4 102V119M628 102V119M4 119V136M628 119V136M4 136V153M628 136V153M4 153V170M628 153V170M4 170V187M628 170V187M4 187V204M628 187V204M4 204V221M628 204V221M4 221V238M628 221V238M4 238V255M628 238V255M4 255V272M628 255V272M4 272V289M628 272V289M4 289V306M628 289V306M4 306V323M628 306V323M4 323V340M628 323V340M4 340V357M628 340V357M4 357V374M628 357V374M4 374V391M628 374V391M4 391V408M628 391V408M4 408V425M628 408V425M4 425V442M628 425V442M4 442V459M628 442V459M4 459V476M628 459V476M4 476V493M628 476V493M4 493V510M628 493V510M4 510V527M628 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H208M208 535.5H216M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H624Q628 535.5 628 531.5V527" fill="none" stroke="#74a8fc" stroke-width="1.2"/> <path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H208M208 25.5H216M216 25.5H224M224 25.5H232M232 25.5H240M240 25.5H248M248 25.5H256M256 25.5H264M264 25.5H272M272 25.5H280M280 25.5H288M288 25.5H296M296 25.5H304M304 25.5H312M312 25.5H320M320 25.5H328M328 25.5H336M336 25.5H344M344 25.5H352M352 25.5H360M360 25.5H368M368 25.5H376M376 25.5H384M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H624Q628 25.5 628 29.5V34M4 34V51M628 34V51M4 51V68M628 51V68M4 68V85M628 68V85M4 85V102M628 85V102M4 102V119M628 102V119M4 119V136M628 119V136M4 136V153M628 136V153M4 153V170M628 153V170M4 170V187M628 170V187M4 187V204M628 187V204M4 204V221M628 204V221M4 221V238M628 221V238M4 238V255M628 238V255M4 255V272M628 255V272M4 272V289M628 272V289M4 289V306M628 289V306M4 306V323M628 306V323M4 323V340M628 323V340M4 340V357M628 340V357M4 357V374M628 357V374M4 374V391M628 374V391M4 391V408M628 391V408M4 408V425M628 408V425M4 425V442M628 425V442M4 442V459M628 442V459M4 459V476M628 459V476M4 476V493M628 476V493M4 493V510M628 493V510M4 510V527M628 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H208M208 535.5H216M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H624Q628 535.5 628 531.5V527" fill="none" stroke="#aeccfc" stroke-width="1.2"/>
<path d="M640 25.5H640Q636 25.5 636 29.5V34M640 25.5H648M768 25.5H776M776 25.5H784M784 25.5H792M792 25.5H800M800 25.5H808M808 25.5H816M816 25.5H824M824 25.5H832M832 25.5H840M840 25.5H848M848 25.5H856M856 25.5H864M864 25.5H872M872 25.5H880M880 25.5H888M888 25.5H896M896 25.5H904M904 25.5H912M912 25.5H920M920 25.5H928M928 25.5H936M936 25.5H944M944 25.5H952M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M636 34V51M1148 34V51M636 51V68M1148 51V68M636 68V85M1148 68V85M636 85V102M1148 85V102M636 102V119M1148 102V119M636 119V136M1148 119V136M636 136V153M1148 136V153M636 153V170M1148 153V170M636 170V187M1148 170V187M636 187V204M1148 187V204M636 204V221M1148 204V221M636 221V238M1148 221V238M636 238V255M1148 238V255M636 255V272M1148 255V272M636 272V289M1148 272V289M636 289V306M1148 289V306M636 306V323M1148 306V323M636 323V340M1148 323V340M636 340V357M1148 340V357M636 357V374M1148 357V374M636 374V391M1148 374V391M636 391V408M1148 391V408M636 408V425M1148 408V425M636 425V442M1148 425V442M636 442V459M1148 442V459M636 459V476M1148 459V476M636 476V493M1148 476V493M636 493V510M1148 493V510M636 510V527M1148 510V527M640 535.5H640Q636 535.5 636 531.5V527M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/> <path d="M640 25.5H640Q636 25.5 636 29.5V34M640 25.5H648M768 25.5H776M776 25.5H784M784 25.5H792M792 25.5H800M800 25.5H808M808 25.5H816M816 25.5H824M824 25.5H832M832 25.5H840M840 25.5H848M848 25.5H856M856 25.5H864M864 25.5H872M872 25.5H880M880 25.5H888M888 25.5H896M896 25.5H904M904 25.5H912M912 25.5H920M920 25.5H928M928 25.5H936M936 25.5H944M944 25.5H952M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M636 34V51M1148 34V51M636 51V68M1148 51V68M636 68V85M1148 68V85M636 85V102M1148 85V102M636 102V119M1148 102V119M636 119V136M1148 119V136M636 136V153M1148 136V153M636 153V170M1148 153V170M636 170V187M1148 170V187M636 187V204M1148 187V204M636 204V221M1148 204V221M636 221V238M1148 221V238M636 238V255M1148 238V255M636 255V272M1148 255V272M636 272V289M1148 272V289M636 289V306M1148 289V306M636 306V323M1148 306V323M636 323V340M1148 323V340M636 340V357M1148 340V357M636 357V374M1148 357V374M636 374V391M1148 374V391M636 391V408M1148 391V408M636 408V425M1148 408V425M636 425V442M1148 425V442M636 442V459M1148 442V459M636 459V476M1148 459V476M636 476V493M1148 476V493M636 493V510M1148 493V510M636 510V527M1148 510V527M640 535.5H640Q636 535.5 636 531.5V527M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/>
<g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve"> <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve">
<text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text> <text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text>
<text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text> <text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text>
<text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.3.1 · 201 options</text> <text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.4.0 · 212 options</text>
<text x="24" y="29.9" fill="#74a8fc" textLength="96" lengthAdjust="spacingAndGlyphs" font-weight="700">Edit keybind</text> <text x="24" y="29.9" fill="#aeccfc" textLength="96" lengthAdjust="spacingAndGlyphs" font-weight="700">Edit keybind</text>
<text x="656" y="29.9" fill="#585b70" textLength="104" lengthAdjust="spacingAndGlyphs">Documentation</text> <text x="656" y="29.9" fill="#585b70" textLength="104" lengthAdjust="spacingAndGlyphs">Documentation</text>
<text x="16" y="46.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text> <text x="16" y="46.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text>
<text x="96" y="46.9" fill="#cdd6f4" textLength="224" lengthAdjust="spacingAndGlyphs">key binding (trigger=action)</text> <text x="96" y="46.9" fill="#cdd6f4" textLength="224" lengthAdjust="spacingAndGlyphs">key binding (trigger=action)</text>
<text x="648" y="46.9" fill="#74a8fc" textLength="72" lengthAdjust="spacingAndGlyphs" font-weight="700">new_split</text> <text x="648" y="46.9" fill="#aeccfc" textLength="72" lengthAdjust="spacingAndGlyphs" font-weight="700">new_split</text>
<text x="16" y="80.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">93 active ·</text> <text x="16" y="80.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">93 active ·</text>
<text x="112" y="80.9" fill="#f9e2af" textLength="72" lengthAdjust="spacingAndGlyphs">0 changed</text> <text x="112" y="80.9" fill="#f9e2af" textLength="72" lengthAdjust="spacingAndGlyphs">0 changed</text>
<text x="192" y="80.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">·</text> <text x="192" y="80.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">·</text>
@@ -27,13 +27,13 @@
<text x="296" y="80.9" fill="#f38ba8" textLength="72" lengthAdjust="spacingAndGlyphs">2 unbound</text> <text x="296" y="80.9" fill="#f38ba8" textLength="72" lengthAdjust="spacingAndGlyphs">2 unbound</text>
<text x="392" y="80.9" fill="#585b70" textLength="232" lengthAdjust="spacingAndGlyphs">showing all, sorted by action</text> <text x="392" y="80.9" fill="#585b70" textLength="232" lengthAdjust="spacingAndGlyphs">showing all, sorted by action</text>
<text x="648" y="80.9" fill="#cdd6f4" textLength="368" lengthAdjust="spacingAndGlyphs">Create a new split in the specified direction.</text> <text x="648" y="80.9" fill="#cdd6f4" textLength="368" lengthAdjust="spacingAndGlyphs">Create a new split in the specified direction.</text>
<text x="16" y="97.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">/</text> <text x="16" y="97.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">/</text>
<text x="32" y="97.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">split</text> <text x="32" y="97.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">split</text>
<text x="648" y="114.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Valid arguments:</text> <text x="648" y="114.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Valid arguments:</text>
<text x="32" y="131.9" fill="#585b70" textLength="24" lengthAdjust="spacingAndGlyphs">Key</text> <text x="32" y="131.9" fill="#585b70" textLength="24" lengthAdjust="spacingAndGlyphs">Key</text>
<text x="224" y="131.9" fill="#585b70" textLength="48" lengthAdjust="spacingAndGlyphs">Action</text> <text x="224" y="131.9" fill="#585b70" textLength="48" lengthAdjust="spacingAndGlyphs">Action</text>
<text x="544" y="131.9" fill="#585b70" textLength="48" lengthAdjust="spacingAndGlyphs">Source</text> <text x="544" y="131.9" fill="#585b70" textLength="48" lengthAdjust="spacingAndGlyphs">Source</text>
<text x="32" y="148.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+w</text> <text x="32" y="148.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+w</text>
<text x="224" y="148.9" fill="#585b70" textLength="104" lengthAdjust="spacingAndGlyphs">close_surface</text> <text x="224" y="148.9" fill="#585b70" textLength="104" lengthAdjust="spacingAndGlyphs">close_surface</text>
<text x="544" y="148.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="148.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="664" y="148.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text> <text x="664" y="148.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text>
@@ -44,48 +44,48 @@
<text x="784" y="148.9" fill="#94e2d5" textLength="32" lengthAdjust="spacingAndGlyphs">left</text> <text x="784" y="148.9" fill="#94e2d5" textLength="32" lengthAdjust="spacingAndGlyphs">left</text>
<text x="816" y="148.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">,</text> <text x="816" y="148.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">,</text>
<text x="832" y="148.9" fill="#94e2d5" textLength="16" lengthAdjust="spacingAndGlyphs">up</text> <text x="832" y="148.9" fill="#94e2d5" textLength="16" lengthAdjust="spacingAndGlyphs">up</text>
<text x="32" y="165.9" fill="#74a8fc" textLength="88" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+w</text> <text x="32" y="165.9" fill="#aeccfc" textLength="88" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+w</text>
<text x="224" y="165.9" fill="#585b70" textLength="112" lengthAdjust="spacingAndGlyphs">close_tab:this</text> <text x="224" y="165.9" fill="#585b70" textLength="112" lengthAdjust="spacingAndGlyphs">close_tab:this</text>
<text x="544" y="165.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="165.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="182.9" fill="#74a8fc" textLength="104" lengthAdjust="spacingAndGlyphs" font-weight="700">super+shift+w</text> <text x="32" y="182.9" fill="#aeccfc" textLength="104" lengthAdjust="spacingAndGlyphs" font-weight="700">super+shift+w</text>
<text x="224" y="182.9" fill="#585b70" textLength="96" lengthAdjust="spacingAndGlyphs">close_window</text> <text x="224" y="182.9" fill="#585b70" textLength="96" lengthAdjust="spacingAndGlyphs">close_window</text>
<text x="544" y="182.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="182.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="664" y="182.9" fill="#94e2d5" textLength="408" lengthAdjust="spacingAndGlyphs">Creates a new split in the corresponding direction.</text> <text x="664" y="182.9" fill="#94e2d5" textLength="408" lengthAdjust="spacingAndGlyphs">Creates a new split in the corresponding direction.</text>
<text x="32" y="199.9" fill="#74a8fc" textLength="96" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+=</text> <text x="32" y="199.9" fill="#aeccfc" textLength="96" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+=</text>
<text x="224" y="199.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">equalize_splits</text> <text x="224" y="199.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">equalize_splits</text>
<text x="544" y="199.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="199.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="216.9" fill="#74a8fc" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_down</text> <text x="32" y="216.9" fill="#aeccfc" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_down</text>
<text x="224" y="216.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">goto_split:down</text> <text x="224" y="216.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">goto_split:down</text>
<text x="544" y="216.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="216.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="664" y="216.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text> <text x="664" y="216.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text>
<text x="680" y="216.9" fill="#94e2d5" textLength="32" lengthAdjust="spacingAndGlyphs">auto</text> <text x="680" y="216.9" fill="#94e2d5" textLength="32" lengthAdjust="spacingAndGlyphs">auto</text>
<text x="32" y="233.9" fill="#74a8fc" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_left</text> <text x="32" y="233.9" fill="#aeccfc" textLength="160" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_left</text>
<text x="224" y="233.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">goto_split:left</text> <text x="224" y="233.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">goto_split:left</text>
<text x="544" y="233.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="233.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="250.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+]</text> <text x="32" y="250.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+]</text>
<text x="224" y="250.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">goto_split:next</text> <text x="224" y="250.9" fill="#585b70" textLength="120" lengthAdjust="spacingAndGlyphs">goto_split:next</text>
<text x="544" y="250.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="250.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="664" y="250.9" fill="#94e2d5" textLength="376" lengthAdjust="spacingAndGlyphs">Creates a new split along the larger direction.</text> <text x="664" y="250.9" fill="#94e2d5" textLength="376" lengthAdjust="spacingAndGlyphs">Creates a new split along the larger direction.</text>
<text x="32" y="267.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+[</text> <text x="32" y="267.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+[</text>
<text x="224" y="267.9" fill="#585b70" textLength="152" lengthAdjust="spacingAndGlyphs">goto_split:previous</text> <text x="224" y="267.9" fill="#585b70" textLength="152" lengthAdjust="spacingAndGlyphs">goto_split:previous</text>
<text x="544" y="267.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="267.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="664" y="267.9" fill="#94e2d5" textLength="472" lengthAdjust="spacingAndGlyphs">For example, if the parent split is currently wider than i…</text> <text x="664" y="267.9" fill="#94e2d5" textLength="472" lengthAdjust="spacingAndGlyphs">For example, if the parent split is currently wider than i…</text>
<text x="32" y="284.9" fill="#74a8fc" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_right</text> <text x="32" y="284.9" fill="#aeccfc" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_right</text>
<text x="224" y="284.9" fill="#585b70" textLength="128" lengthAdjust="spacingAndGlyphs">goto_split:right</text> <text x="224" y="284.9" fill="#585b70" textLength="128" lengthAdjust="spacingAndGlyphs">goto_split:right</text>
<text x="544" y="284.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="284.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="664" y="284.9" fill="#94e2d5" textLength="456" lengthAdjust="spacingAndGlyphs">then a left-right split would be created, and vice versa.</text> <text x="664" y="284.9" fill="#94e2d5" textLength="456" lengthAdjust="spacingAndGlyphs">then a left-right split would be created, and vice versa.</text>
<text x="32" y="301.9" fill="#74a8fc" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_up</text> <text x="32" y="301.9" fill="#aeccfc" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">super+alt+arrow_up</text>
<text x="224" y="301.9" fill="#585b70" textLength="104" lengthAdjust="spacingAndGlyphs">goto_split:up</text> <text x="224" y="301.9" fill="#585b70" textLength="104" lengthAdjust="spacingAndGlyphs">goto_split:up</text>
<text x="544" y="301.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="301.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="318.9" fill="#74a8fc" textLength="104" lengthAdjust="spacingAndGlyphs" font-weight="700">super+shift+d</text> <text x="32" y="318.9" fill="#aeccfc" textLength="104" lengthAdjust="spacingAndGlyphs" font-weight="700">super+shift+d</text>
<text x="224" y="318.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">new_split:down</text> <text x="224" y="318.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">new_split:down</text>
<text x="544" y="318.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="318.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="648" y="318.9" fill="#cdd6f4" textLength="192" lengthAdjust="spacingAndGlyphs">Keys bound to new_split:</text> <text x="648" y="318.9" fill="#cdd6f4" textLength="192" lengthAdjust="spacingAndGlyphs">Keys bound to new_split:</text>
<text x="16" y="335.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text> <text x="16" y="335.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text>
<text x="32" y="335.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+\</text> <text x="32" y="335.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+\</text>
<text x="224" y="335.9" fill="#cdd6f4" textLength="120" lengthAdjust="spacingAndGlyphs">new_split:right</text> <text x="224" y="335.9" fill="#cdd6f4" textLength="120" lengthAdjust="spacingAndGlyphs">new_split:right</text>
<text x="544" y="335.9" fill="#a6e3a1" textLength="48" lengthAdjust="spacingAndGlyphs">custom</text> <text x="544" y="335.9" fill="#a6e3a1" textLength="48" lengthAdjust="spacingAndGlyphs">custom</text>
<text x="32" y="352.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+d</text> <text x="32" y="352.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">super+d</text>
<text x="224" y="352.9" fill="#585b70" textLength="312" lengthAdjust="spacingAndGlyphs" text-decoration="line-through">new_split:right                        </text> <text x="224" y="352.9" fill="#585b70" textLength="312" lengthAdjust="spacingAndGlyphs" text-decoration="line-through">new_split:right                        </text>
<text x="544" y="352.9" fill="#f38ba8" textLength="56" lengthAdjust="spacingAndGlyphs">unbound</text> <text x="544" y="352.9" fill="#f38ba8" textLength="56" lengthAdjust="spacingAndGlyphs">unbound</text>
<text x="648" y="352.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text> <text x="648" y="352.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text>
@@ -93,7 +93,7 @@
<text x="776" y="352.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">→</text> <text x="776" y="352.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">→</text>
<text x="792" y="352.9" fill="#94e2d5" textLength="112" lengthAdjust="spacingAndGlyphs">new_split:down</text> <text x="792" y="352.9" fill="#94e2d5" textLength="112" lengthAdjust="spacingAndGlyphs">new_split:down</text>
<text x="912" y="352.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">(default)</text> <text x="912" y="352.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">(default)</text>
<text x="32" y="369.9" fill="#74a8fc" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_down</text> <text x="32" y="369.9" fill="#aeccfc" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_down</text>
<text x="224" y="369.9" fill="#585b70" textLength="160" lengthAdjust="spacingAndGlyphs">resize_split:down,10</text> <text x="224" y="369.9" fill="#585b70" textLength="160" lengthAdjust="spacingAndGlyphs">resize_split:down,10</text>
<text x="544" y="369.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="369.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="648" y="369.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text> <text x="648" y="369.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">•</text>
@@ -101,20 +101,20 @@
<text x="728" y="369.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">→</text> <text x="728" y="369.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">→</text>
<text x="744" y="369.9" fill="#94e2d5" textLength="120" lengthAdjust="spacingAndGlyphs">new_split:right</text> <text x="744" y="369.9" fill="#94e2d5" textLength="120" lengthAdjust="spacingAndGlyphs">new_split:right</text>
<text x="872" y="369.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">(custom)</text> <text x="872" y="369.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">(custom)</text>
<text x="32" y="386.9" fill="#74a8fc" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_left</text> <text x="32" y="386.9" fill="#aeccfc" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_left</text>
<text x="224" y="386.9" fill="#585b70" textLength="160" lengthAdjust="spacingAndGlyphs">resize_split:left,10</text> <text x="224" y="386.9" fill="#585b70" textLength="160" lengthAdjust="spacingAndGlyphs">resize_split:left,10</text>
<text x="544" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="403.9" fill="#74a8fc" textLength="176" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_right</text> <text x="32" y="403.9" fill="#aeccfc" textLength="176" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_right</text>
<text x="224" y="403.9" fill="#585b70" textLength="168" lengthAdjust="spacingAndGlyphs">resize_split:right,10</text> <text x="224" y="403.9" fill="#585b70" textLength="168" lengthAdjust="spacingAndGlyphs">resize_split:right,10</text>
<text x="544" y="403.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="403.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="420.9" fill="#74a8fc" textLength="152" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_up</text> <text x="32" y="420.9" fill="#aeccfc" textLength="152" lengthAdjust="spacingAndGlyphs" font-weight="700">super+ctrl+arrow_up</text>
<text x="224" y="420.9" fill="#585b70" textLength="144" lengthAdjust="spacingAndGlyphs">resize_split:up,10</text> <text x="224" y="420.9" fill="#585b70" textLength="144" lengthAdjust="spacingAndGlyphs">resize_split:up,10</text>
<text x="544" y="420.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="420.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="32" y="437.9" fill="#74a8fc" textLength="136" lengthAdjust="spacingAndGlyphs" font-weight="700">super+shift+enter</text> <text x="32" y="437.9" fill="#aeccfc" textLength="136" lengthAdjust="spacingAndGlyphs" font-weight="700">super+shift+enter</text>
<text x="224" y="437.9" fill="#585b70" textLength="136" lengthAdjust="spacingAndGlyphs">toggle_split_zoom</text> <text x="224" y="437.9" fill="#585b70" textLength="136" lengthAdjust="spacingAndGlyphs">toggle_split_zoom</text>
<text x="544" y="437.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text> <text x="544" y="437.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">default</text>
<text x="16" y="505.9" fill="#585b70" textLength="168" lengthAdjust="spacingAndGlyphs">Added in your config.</text> <text x="16" y="505.9" fill="#585b70" textLength="168" lengthAdjust="spacingAndGlyphs">Added in your config.</text>
<text x="16" y="522.9" fill="#74a8fc" textLength="72" lengthAdjust="spacingAndGlyphs" font-weight="700">new_split</text> <text x="16" y="522.9" fill="#aeccfc" textLength="72" lengthAdjust="spacingAndGlyphs" font-weight="700">new_split</text>
<text x="96" y="522.9" fill="#cdd6f4" textLength="368" lengthAdjust="spacingAndGlyphs">Create a new split in the specified direction.</text> <text x="96" y="522.9" fill="#cdd6f4" textLength="368" lengthAdjust="spacingAndGlyphs">Create a new split in the specified direction.</text>
<text x="8" y="573.9" fill="#585b70" textLength="976" lengthAdjust="spacingAndGlyphs">enter change · a add · d unbind · r restore · / filter · c changes only · s sort · R raw · esc done · shift+↑↓ scroll docs</text> <text x="8" y="573.9" fill="#585b70" textLength="976" lengthAdjust="spacingAndGlyphs">enter change · a add · d unbind · r restore · / filter · c changes only · s sort · R raw · esc done · shift+↑↓ scroll docs</text>
</g> </g>

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

+15 -15
View File
@@ -6,27 +6,27 @@
<circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/> <circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/>
<text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text> <text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text>
<g transform="translate(14 48)"> <g transform="translate(14 48)">
<rect x="0" y="0" width="184.6" height="17.6" fill="#74a8fc"/> <rect x="0" y="0" width="184.6" height="17.6" fill="#aeccfc"/>
<rect x="216" y="34" width="928.6" height="17.6" fill="#3a3a3a"/> <rect x="216" y="34" width="928.6" height="17.6" fill="#3a3a3a"/>
<rect x="472" y="119" width="16.6" height="17.6" fill="#f5e0dc"/> <rect x="472" y="119" width="16.6" height="17.6" fill="#f5e0dc"/>
<rect x="472" y="136" width="16.6" height="17.6" fill="#585b70"/> <rect x="472" y="136" width="16.6" height="17.6" fill="#585b70"/>
<path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M112 25.5H120M120 25.5H128M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H200Q204 25.5 204 29.5V34M4 34V51M204 34V51M4 51V68M204 51V68M4 68V85M8 76.5H16M16 76.5H24M24 76.5H32M32 76.5H40M40 76.5H48M48 76.5H56M56 76.5H64M64 76.5H72M72 76.5H80M80 76.5H88M88 76.5H96M96 76.5H104M104 76.5H112M112 76.5H120M120 76.5H128M128 76.5H136M136 76.5H144M144 76.5H152M152 76.5H160M160 76.5H168M168 76.5H176M176 76.5H184M184 76.5H192M192 76.5H200M204 68V85M4 85V102M204 85V102M4 102V119M204 102V119M4 119V136M204 119V136M4 136V153M204 136V153M4 153V170M204 153V170M4 170V187M204 170V187M4 187V204M204 187V204M4 204V221M204 204V221M4 221V238M204 221V238M4 238V255M204 238V255M4 255V272M204 255V272M4 272V289M204 272V289M4 289V306M204 289V306M4 306V323M204 306V323M216 314.5H216Q212 314.5 212 318.5V323M216 314.5H224M528 314.5H536M536 314.5H544M544 314.5H552M552 314.5H560M560 314.5H568M568 314.5H576M576 314.5H584M584 314.5H592M592 314.5H600M600 314.5H608M608 314.5H616M616 314.5H624M624 314.5H632M632 314.5H640M640 314.5H648M648 314.5H656M656 314.5H664M664 314.5H672M672 314.5H680M680 314.5H688M688 314.5H696M696 314.5H704M704 314.5H712M712 314.5H720M720 314.5H728M728 314.5H736M736 314.5H744M744 314.5H752M752 314.5H760M760 314.5H768M768 314.5H776M776 314.5H784M784 314.5H792M792 314.5H800M800 314.5H808M808 314.5H816M816 314.5H824M824 314.5H832M832 314.5H840M840 314.5H848M848 314.5H856M856 314.5H864M864 314.5H872M872 314.5H880M880 314.5H888M888 314.5H896M896 314.5H904M904 314.5H912M912 314.5H920M920 314.5H928M928 314.5H936M936 314.5H944M944 314.5H952M952 314.5H960M960 314.5H968M968 314.5H976M976 314.5H984M984 314.5H992M992 314.5H1000M1000 314.5H1008M1008 314.5H1016M1016 314.5H1024M1024 314.5H1032M1032 314.5H1040M1040 314.5H1048M1048 314.5H1056M1056 314.5H1064M1064 314.5H1072M1072 314.5H1080M1080 314.5H1088M1088 314.5H1096M1096 314.5H1104M1104 314.5H1112M1112 314.5H1120M1120 314.5H1128M1128 314.5H1136M1136 314.5H1144M1144 314.5H1144Q1148 314.5 1148 318.5V323M4 323V340M204 323V340M212 323V340M1148 323V340M4 340V357M204 340V357M212 340V357M1148 340V357M4 357V374M204 357V374M212 357V374M1148 357V374M4 374V391M204 374V391M212 374V391M1148 374V391M4 391V408M204 391V408M212 391V408M1148 391V408M4 408V425M204 408V425M212 408V425M1148 408V425M4 425V442M204 425V442M212 425V442M1148 425V442M4 442V459M204 442V459M212 442V459M1148 442V459M4 459V476M204 459V476M212 459V476M1148 459V476M4 476V493M204 476V493M212 476V493M1148 476V493M4 493V510M204 493V510M212 493V510M1148 493V510M4 510V527M204 510V527M212 510V527M1148 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H200Q204 535.5 204 531.5V527M216 535.5H216Q212 535.5 212 531.5V527M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H632M632 535.5H640M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/> <path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M112 25.5H120M120 25.5H128M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H200Q204 25.5 204 29.5V34M4 34V51M204 34V51M4 51V68M204 51V68M4 68V85M8 76.5H16M16 76.5H24M24 76.5H32M32 76.5H40M40 76.5H48M48 76.5H56M56 76.5H64M64 76.5H72M72 76.5H80M80 76.5H88M88 76.5H96M96 76.5H104M104 76.5H112M112 76.5H120M120 76.5H128M128 76.5H136M136 76.5H144M144 76.5H152M152 76.5H160M160 76.5H168M168 76.5H176M176 76.5H184M184 76.5H192M192 76.5H200M204 68V85M4 85V102M204 85V102M4 102V119M204 102V119M4 119V136M204 119V136M4 136V153M204 136V153M4 153V170M204 153V170M4 170V187M204 170V187M4 187V204M204 187V204M4 204V221M204 204V221M4 221V238M204 221V238M4 238V255M204 238V255M4 255V272M204 255V272M4 272V289M204 272V289M4 289V306M204 289V306M4 306V323M204 306V323M216 314.5H216Q212 314.5 212 318.5V323M216 314.5H224M528 314.5H536M536 314.5H544M544 314.5H552M552 314.5H560M560 314.5H568M568 314.5H576M576 314.5H584M584 314.5H592M592 314.5H600M600 314.5H608M608 314.5H616M616 314.5H624M624 314.5H632M632 314.5H640M640 314.5H648M648 314.5H656M656 314.5H664M664 314.5H672M672 314.5H680M680 314.5H688M688 314.5H696M696 314.5H704M704 314.5H712M712 314.5H720M720 314.5H728M728 314.5H736M736 314.5H744M744 314.5H752M752 314.5H760M760 314.5H768M768 314.5H776M776 314.5H784M784 314.5H792M792 314.5H800M800 314.5H808M808 314.5H816M816 314.5H824M824 314.5H832M832 314.5H840M840 314.5H848M848 314.5H856M856 314.5H864M864 314.5H872M872 314.5H880M880 314.5H888M888 314.5H896M896 314.5H904M904 314.5H912M912 314.5H920M920 314.5H928M928 314.5H936M936 314.5H944M944 314.5H952M952 314.5H960M960 314.5H968M968 314.5H976M976 314.5H984M984 314.5H992M992 314.5H1000M1000 314.5H1008M1008 314.5H1016M1016 314.5H1024M1024 314.5H1032M1032 314.5H1040M1040 314.5H1048M1048 314.5H1056M1056 314.5H1064M1064 314.5H1072M1072 314.5H1080M1080 314.5H1088M1088 314.5H1096M1096 314.5H1104M1104 314.5H1112M1112 314.5H1120M1120 314.5H1128M1128 314.5H1136M1136 314.5H1144M1144 314.5H1144Q1148 314.5 1148 318.5V323M4 323V340M204 323V340M212 323V340M1148 323V340M4 340V357M204 340V357M212 340V357M1148 340V357M4 357V374M204 357V374M212 357V374M1148 357V374M4 374V391M204 374V391M212 374V391M1148 374V391M4 391V408M204 391V408M212 391V408M1148 391V408M4 408V425M204 408V425M212 408V425M1148 408V425M4 425V442M204 425V442M212 425V442M1148 425V442M4 442V459M204 442V459M212 442V459M1148 442V459M4 459V476M204 459V476M212 459V476M1148 459V476M4 476V493M204 476V493M212 476V493M1148 476V493M4 493V510M204 493V510M212 493V510M1148 493V510M4 510V527M204 510V527M212 510V527M1148 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H200Q204 535.5 204 531.5V527M216 535.5H216Q212 535.5 212 531.5V527M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H632M632 535.5H640M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/>
<path d="M216 25.5H216Q212 25.5 212 29.5V34M216 25.5H224M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H632M632 25.5H640M640 25.5H648M648 25.5H656M656 25.5H664M664 25.5H672M672 25.5H680M680 25.5H688M688 25.5H696M696 25.5H704M704 25.5H712M712 25.5H720M720 25.5H728M728 25.5H736M736 25.5H744M744 25.5H752M752 25.5H760M760 25.5H768M768 25.5H776M776 25.5H784M784 25.5H792M792 25.5H800M800 25.5H808M808 25.5H816M816 25.5H824M824 25.5H832M832 25.5H840M840 25.5H848M848 25.5H856M856 25.5H864M864 25.5H872M872 25.5H880M880 25.5H888M888 25.5H896M896 25.5H904M904 25.5H912M912 25.5H920M920 25.5H928M928 25.5H936M936 25.5H944M944 25.5H952M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M212 34V51M1148 34V51M212 51V68M1148 51V68M212 68V85M1148 68V85M212 85V102M1148 85V102M212 102V119M1148 102V119M212 119V136M1148 119V136M212 136V153M1148 136V153M212 153V170M1148 153V170M212 170V187M1148 170V187M212 187V204M1148 187V204M212 204V221M1148 204V221M212 221V238M1148 221V238M212 238V255M1148 238V255M212 255V272M1148 255V272M212 272V289M1148 272V289M216 297.5H216Q212 297.5 212 293.5V289M216 297.5H224M224 297.5H232M232 297.5H240M240 297.5H248M248 297.5H256M256 297.5H264M264 297.5H272M272 297.5H280M280 297.5H288M288 297.5H296M296 297.5H304M304 297.5H312M312 297.5H320M320 297.5H328M328 297.5H336M336 297.5H344M344 297.5H352M352 297.5H360M360 297.5H368M368 297.5H376M376 297.5H384M384 297.5H392M392 297.5H400M400 297.5H408M408 297.5H416M416 297.5H424M424 297.5H432M432 297.5H440M440 297.5H448M448 297.5H456M456 297.5H464M464 297.5H472M472 297.5H480M480 297.5H488M488 297.5H496M496 297.5H504M504 297.5H512M512 297.5H520M520 297.5H528M528 297.5H536M536 297.5H544M544 297.5H552M552 297.5H560M560 297.5H568M568 297.5H576M576 297.5H584M584 297.5H592M592 297.5H600M600 297.5H608M608 297.5H616M616 297.5H624M624 297.5H632M632 297.5H640M640 297.5H648M648 297.5H656M656 297.5H664M664 297.5H672M672 297.5H680M680 297.5H688M688 297.5H696M696 297.5H704M704 297.5H712M712 297.5H720M720 297.5H728M728 297.5H736M736 297.5H744M744 297.5H752M752 297.5H760M760 297.5H768M768 297.5H776M776 297.5H784M784 297.5H792M792 297.5H800M800 297.5H808M808 297.5H816M816 297.5H824M824 297.5H832M832 297.5H840M840 297.5H848M848 297.5H856M856 297.5H864M864 297.5H872M872 297.5H880M880 297.5H888M888 297.5H896M896 297.5H904M904 297.5H912M912 297.5H920M920 297.5H928M928 297.5H936M936 297.5H944M944 297.5H952M952 297.5H960M960 297.5H968M968 297.5H976M976 297.5H984M984 297.5H992M992 297.5H1000M1000 297.5H1008M1008 297.5H1016M1016 297.5H1024M1024 297.5H1032M1032 297.5H1040M1040 297.5H1048M1048 297.5H1056M1056 297.5H1064M1064 297.5H1072M1072 297.5H1080M1080 297.5H1088M1088 297.5H1096M1096 297.5H1104M1104 297.5H1112M1112 297.5H1120M1120 297.5H1128M1128 297.5H1136M1136 297.5H1144M1144 297.5H1144Q1148 297.5 1148 293.5V289" fill="none" stroke="#74a8fc" stroke-width="1.2"/> <path d="M216 25.5H216Q212 25.5 212 29.5V34M216 25.5H224M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H632M632 25.5H640M640 25.5H648M648 25.5H656M656 25.5H664M664 25.5H672M672 25.5H680M680 25.5H688M688 25.5H696M696 25.5H704M704 25.5H712M712 25.5H720M720 25.5H728M728 25.5H736M736 25.5H744M744 25.5H752M752 25.5H760M760 25.5H768M768 25.5H776M776 25.5H784M784 25.5H792M792 25.5H800M800 25.5H808M808 25.5H816M816 25.5H824M824 25.5H832M832 25.5H840M840 25.5H848M848 25.5H856M856 25.5H864M864 25.5H872M872 25.5H880M880 25.5H888M888 25.5H896M896 25.5H904M904 25.5H912M912 25.5H920M920 25.5H928M928 25.5H936M936 25.5H944M944 25.5H952M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M212 34V51M1148 34V51M212 51V68M1148 51V68M212 68V85M1148 68V85M212 85V102M1148 85V102M212 102V119M1148 102V119M212 119V136M1148 119V136M212 136V153M1148 136V153M212 153V170M1148 153V170M212 170V187M1148 170V187M212 187V204M1148 187V204M212 204V221M1148 204V221M212 221V238M1148 221V238M212 238V255M1148 238V255M212 255V272M1148 255V272M212 272V289M1148 272V289M216 297.5H216Q212 297.5 212 293.5V289M216 297.5H224M224 297.5H232M232 297.5H240M240 297.5H248M248 297.5H256M256 297.5H264M264 297.5H272M272 297.5H280M280 297.5H288M288 297.5H296M296 297.5H304M304 297.5H312M312 297.5H320M320 297.5H328M328 297.5H336M336 297.5H344M344 297.5H352M352 297.5H360M360 297.5H368M368 297.5H376M376 297.5H384M384 297.5H392M392 297.5H400M400 297.5H408M408 297.5H416M416 297.5H424M424 297.5H432M432 297.5H440M440 297.5H448M448 297.5H456M456 297.5H464M464 297.5H472M472 297.5H480M480 297.5H488M488 297.5H496M496 297.5H504M504 297.5H512M512 297.5H520M520 297.5H528M528 297.5H536M536 297.5H544M544 297.5H552M552 297.5H560M560 297.5H568M568 297.5H576M576 297.5H584M584 297.5H592M592 297.5H600M600 297.5H608M608 297.5H616M616 297.5H624M624 297.5H632M632 297.5H640M640 297.5H648M648 297.5H656M656 297.5H664M664 297.5H672M672 297.5H680M680 297.5H688M688 297.5H696M696 297.5H704M704 297.5H712M712 297.5H720M720 297.5H728M728 297.5H736M736 297.5H744M744 297.5H752M752 297.5H760M760 297.5H768M768 297.5H776M776 297.5H784M784 297.5H792M792 297.5H800M800 297.5H808M808 297.5H816M816 297.5H824M824 297.5H832M832 297.5H840M840 297.5H848M848 297.5H856M856 297.5H864M864 297.5H872M872 297.5H880M880 297.5H888M888 297.5H896M896 297.5H904M904 297.5H912M912 297.5H920M920 297.5H928M928 297.5H936M936 297.5H944M944 297.5H952M952 297.5H960M960 297.5H968M968 297.5H976M976 297.5H984M984 297.5H992M992 297.5H1000M1000 297.5H1008M1008 297.5H1016M1016 297.5H1024M1024 297.5H1032M1032 297.5H1040M1040 297.5H1048M1048 297.5H1056M1056 297.5H1064M1064 297.5H1072M1072 297.5H1080M1080 297.5H1088M1088 297.5H1096M1096 297.5H1104M1104 297.5H1112M1112 297.5H1120M1120 297.5H1128M1128 297.5H1136M1136 297.5H1144M1144 297.5H1144Q1148 297.5 1148 293.5V289" fill="none" stroke="#aeccfc" stroke-width="1.2"/>
<g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve"> <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve">
<text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text> <text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text>
<text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text> <text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text>
<text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.3.1 · 201 options</text> <text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.4.0 · 212 options</text>
<text x="24" y="29.9" fill="#585b70" textLength="80" lengthAdjust="spacingAndGlyphs">Categories</text> <text x="24" y="29.9" fill="#585b70" textLength="80" lengthAdjust="spacingAndGlyphs">Categories</text>
<text x="232" y="29.9" fill="#74a8fc" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">Set in Config (15)</text> <text x="232" y="29.9" fill="#aeccfc" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">Set in Config (15)</text>
<text x="8" y="46.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text> <text x="8" y="46.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text>
<text x="24" y="46.9" fill="#a6e3a1" textLength="104" lengthAdjust="spacingAndGlyphs">Set in Config</text> <text x="24" y="46.9" fill="#a6e3a1" textLength="104" lengthAdjust="spacingAndGlyphs">Set in Config</text>
<text x="184" y="46.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">15</text> <text x="184" y="46.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">15</text>
<text x="216" y="46.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text> <text x="216" y="46.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text>
<text x="232" y="46.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="46.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="46.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs" font-weight="700">theme</text> <text x="248" y="46.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs" font-weight="700">theme</text>
<text x="472" y="46.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text> <text x="472" y="46.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text>
<text x="24" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">All Options</text> <text x="24" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">All Options</text>
<text x="176" y="63.9" fill="#585b70" textLength="24" lengthAdjust="spacingAndGlyphs">201</text> <text x="176" y="63.9" fill="#585b70" textLength="24" lengthAdjust="spacingAndGlyphs">212</text>
<text x="232" y="63.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="63.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">font-family</text> <text x="248" y="63.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">font-family</text>
<text x="472" y="63.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">JetBrains Mono</text> <text x="472" y="63.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">JetBrains Mono</text>
@@ -59,22 +59,22 @@
<text x="248" y="165.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-x</text> <text x="248" y="165.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-x</text>
<text x="472" y="165.9" fill="#cdd6f4" textLength="16" lengthAdjust="spacingAndGlyphs">12</text> <text x="472" y="165.9" fill="#cdd6f4" textLength="16" lengthAdjust="spacingAndGlyphs">12</text>
<text x="24" y="182.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">Window</text> <text x="24" y="182.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">Window</text>
<text x="184" y="182.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">29</text> <text x="184" y="182.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">30</text>
<text x="232" y="182.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="182.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="182.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-y</text> <text x="248" y="182.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">window-padding-y</text>
<text x="472" y="182.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">8</text> <text x="472" y="182.9" fill="#cdd6f4" textLength="8" lengthAdjust="spacingAndGlyphs">8</text>
<text x="24" y="199.9" fill="#cdd6f4" textLength="104" lengthAdjust="spacingAndGlyphs">Tabs &amp; Splits</text> <text x="24" y="199.9" fill="#cdd6f4" textLength="104" lengthAdjust="spacingAndGlyphs">Tabs &amp; Splits</text>
<text x="192" y="199.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">6</text> <text x="192" y="199.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">7</text>
<text x="232" y="199.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="199.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="199.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">window-save-state</text> <text x="248" y="199.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">window-save-state</text>
<text x="472" y="199.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">always</text> <text x="472" y="199.9" fill="#cdd6f4" textLength="48" lengthAdjust="spacingAndGlyphs">always</text>
<text x="24" y="216.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">Mouse &amp; Selection</text> <text x="24" y="216.9" fill="#cdd6f4" textLength="136" lengthAdjust="spacingAndGlyphs">Mouse &amp; Selection</text>
<text x="184" y="216.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">12</text> <text x="184" y="216.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">14</text>
<text x="232" y="216.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="216.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="216.9" fill="#cdd6f4" textLength="144" lengthAdjust="spacingAndGlyphs">background-opacity</text> <text x="248" y="216.9" fill="#cdd6f4" textLength="144" lengthAdjust="spacingAndGlyphs">background-opacity</text>
<text x="472" y="216.9" fill="#cdd6f4" textLength="32" lengthAdjust="spacingAndGlyphs">0.95</text> <text x="472" y="216.9" fill="#cdd6f4" textLength="32" lengthAdjust="spacingAndGlyphs">0.95</text>
<text x="24" y="233.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Clipboard</text> <text x="24" y="233.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Clipboard</text>
<text x="192" y="233.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">7</text> <text x="192" y="233.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">8</text>
<text x="232" y="233.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="233.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="233.9" fill="#cdd6f4" textLength="160" lengthAdjust="spacingAndGlyphs">macos-titlebar-style</text> <text x="248" y="233.9" fill="#cdd6f4" textLength="160" lengthAdjust="spacingAndGlyphs">macos-titlebar-style</text>
<text x="472" y="233.9" fill="#cdd6f4" textLength="32" lengthAdjust="spacingAndGlyphs">tabs</text> <text x="472" y="233.9" fill="#cdd6f4" textLength="32" lengthAdjust="spacingAndGlyphs">tabs</text>
@@ -89,7 +89,7 @@
<text x="248" y="267.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">copy-on-select</text> <text x="248" y="267.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">copy-on-select</text>
<text x="472" y="267.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">clipboard</text> <text x="472" y="267.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">clipboard</text>
<text x="24" y="284.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Scrolling</text> <text x="24" y="284.9" fill="#cdd6f4" textLength="72" lengthAdjust="spacingAndGlyphs">Scrolling</text>
<text x="192" y="284.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">4</text> <text x="192" y="284.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">6</text>
<text x="232" y="284.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text> <text x="232" y="284.9" fill="#a6e3a1" textLength="8" lengthAdjust="spacingAndGlyphs">●</text>
<text x="248" y="284.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">keybind</text> <text x="248" y="284.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">keybind</text>
<text x="472" y="284.9" fill="#a6e3a1" textLength="64" lengthAdjust="spacingAndGlyphs">1 custom</text> <text x="472" y="284.9" fill="#a6e3a1" textLength="64" lengthAdjust="spacingAndGlyphs">1 custom</text>
@@ -102,11 +102,11 @@
<text x="232" y="318.9" fill="#585b70" textLength="288" lengthAdjust="spacingAndGlyphs">Documentation · 0% · shift+↑↓ scroll</text> <text x="232" y="318.9" fill="#585b70" textLength="288" lengthAdjust="spacingAndGlyphs">Documentation · 0% · shift+↑↓ scroll</text>
<text x="24" y="335.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">Shaders</text> <text x="24" y="335.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">Shaders</text>
<text x="192" y="335.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text> <text x="192" y="335.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text>
<text x="224" y="335.9" fill="#74a8fc" textLength="40" lengthAdjust="spacingAndGlyphs" font-weight="700">theme</text> <text x="224" y="335.9" fill="#aeccfc" textLength="40" lengthAdjust="spacingAndGlyphs" font-weight="700">theme</text>
<text x="24" y="352.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">macOS</text> <text x="24" y="352.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">macOS</text>
<text x="184" y="352.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">18</text> <text x="184" y="352.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">18</text>
<text x="24" y="369.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">Linux &amp; GTK</text> <text x="24" y="369.9" fill="#cdd6f4" textLength="88" lengthAdjust="spacingAndGlyphs">Linux &amp; GTK</text>
<text x="184" y="369.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">17</text> <text x="184" y="369.9" fill="#585b70" textLength="16" lengthAdjust="spacingAndGlyphs">19</text>
<text x="224" y="369.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text> <text x="224" y="369.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text>
<text x="304" y="369.9" fill="#cdd6f4" textLength="288" lengthAdjust="spacingAndGlyphs">theme name (or light:NAME,dark:NAME)</text> <text x="304" y="369.9" fill="#cdd6f4" textLength="288" lengthAdjust="spacingAndGlyphs">theme name (or light:NAME,dark:NAME)</text>
<text x="24" y="386.9" fill="#cdd6f4" textLength="96" lengthAdjust="spacingAndGlyphs">Config Files</text> <text x="24" y="386.9" fill="#cdd6f4" textLength="96" lengthAdjust="spacingAndGlyphs">Config Files</text>
@@ -114,7 +114,7 @@
<text x="224" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Default</text> <text x="224" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Default</text>
<text x="304" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">(unset)</text> <text x="304" y="386.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">(unset)</text>
<text x="24" y="403.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">Advanced</text> <text x="24" y="403.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">Advanced</text>
<text x="192" y="403.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">2</text> <text x="192" y="403.9" fill="#585b70" textLength="8" lengthAdjust="spacingAndGlyphs">4</text>
<text x="224" y="403.9" fill="#585b70" textLength="40" lengthAdjust="spacingAndGlyphs">Value</text> <text x="224" y="403.9" fill="#585b70" textLength="40" lengthAdjust="spacingAndGlyphs">Value</text>
<text x="304" y="403.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text> <text x="304" y="403.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text>
<text x="448" y="403.9" fill="#a6e3a1" textLength="120" lengthAdjust="spacingAndGlyphs">● set in config</text> <text x="448" y="403.9" fill="#a6e3a1" textLength="120" lengthAdjust="spacingAndGlyphs">● set in config</text>

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

+8 -8
View File
@@ -6,7 +6,7 @@
<circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/> <circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/>
<text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text> <text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text>
<g transform="translate(14 48)"> <g transform="translate(14 48)">
<rect x="0" y="0" width="184.6" height="17.6" fill="#74a8fc"/> <rect x="0" y="0" width="184.6" height="17.6" fill="#aeccfc"/>
<rect x="120" y="102" width="8.6" height="17.6" fill="#cdd6f4"/> <rect x="120" y="102" width="8.6" height="17.6" fill="#cdd6f4"/>
<rect x="16" y="187" width="600.6" height="17.6" fill="#3a3a3a"/> <rect x="16" y="187" width="600.6" height="17.6" fill="#3a3a3a"/>
<rect x="16" y="391" width="384.6" height="17.6" fill="#e1e2e7"/> <rect x="16" y="391" width="384.6" height="17.6" fill="#e1e2e7"/>
@@ -49,34 +49,34 @@
<rect x="248" y="493" width="24.6" height="17.6" fill="#3760bf"/> <rect x="248" y="493" width="24.6" height="17.6" fill="#3760bf"/>
<rect x="272" y="493" width="128.6" height="17.6" fill="#e1e2e7"/> <rect x="272" y="493" width="128.6" height="17.6" fill="#e1e2e7"/>
<rect x="16" y="510" width="384.6" height="17.6" fill="#e1e2e7"/> <rect x="16" y="510" width="384.6" height="17.6" fill="#e1e2e7"/>
<path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M112 25.5H120M120 25.5H128M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H208M208 25.5H216M216 25.5H224M224 25.5H232M232 25.5H240M240 25.5H248M248 25.5H256M256 25.5H264M264 25.5H272M272 25.5H280M280 25.5H288M288 25.5H296M296 25.5H304M304 25.5H312M312 25.5H320M320 25.5H328M328 25.5H336M336 25.5H344M344 25.5H352M352 25.5H360M360 25.5H368M368 25.5H376M376 25.5H384M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H624Q628 25.5 628 29.5V34M4 34V51M628 34V51M4 51V68M628 51V68M4 68V85M628 68V85M4 85V102M628 85V102M4 102V119M628 102V119M4 119V136M628 119V136M4 136V153M628 136V153M4 153V170M628 153V170M4 170V187M628 170V187M4 187V204M628 187V204M4 204V221M628 204V221M4 221V238M628 221V238M4 238V255M628 238V255M4 255V272M628 255V272M4 272V289M628 272V289M4 289V306M628 289V306M4 306V323M628 306V323M4 323V340M628 323V340M4 340V357M628 340V357M4 357V374M628 357V374M4 374V391M628 374V391M4 391V408M628 391V408M4 408V425M628 408V425M4 425V442M628 425V442M4 442V459M628 442V459M4 459V476M628 459V476M4 476V493M628 476V493M4 493V510M628 493V510M4 510V527M628 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H208M208 535.5H216M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H624Q628 535.5 628 531.5V527" fill="none" stroke="#74a8fc" stroke-width="1.2"/> <path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M112 25.5H120M120 25.5H128M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H208M208 25.5H216M216 25.5H224M224 25.5H232M232 25.5H240M240 25.5H248M248 25.5H256M256 25.5H264M264 25.5H272M272 25.5H280M280 25.5H288M288 25.5H296M296 25.5H304M304 25.5H312M312 25.5H320M320 25.5H328M328 25.5H336M336 25.5H344M344 25.5H352M352 25.5H360M360 25.5H368M368 25.5H376M376 25.5H384M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H624Q628 25.5 628 29.5V34M4 34V51M628 34V51M4 51V68M628 51V68M4 68V85M628 68V85M4 85V102M628 85V102M4 102V119M628 102V119M4 119V136M628 119V136M4 136V153M628 136V153M4 153V170M628 153V170M4 170V187M628 170V187M4 187V204M628 187V204M4 204V221M628 204V221M4 221V238M628 221V238M4 238V255M628 238V255M4 255V272M628 255V272M4 272V289M628 272V289M4 289V306M628 289V306M4 306V323M628 306V323M4 323V340M628 323V340M4 340V357M628 340V357M4 357V374M628 357V374M4 374V391M628 374V391M4 391V408M628 391V408M4 408V425M628 408V425M4 425V442M628 425V442M4 442V459M628 442V459M4 459V476M628 459V476M4 476V493M628 476V493M4 493V510M628 493V510M4 510V527M628 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H208M208 535.5H216M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H624Q628 535.5 628 531.5V527" fill="none" stroke="#aeccfc" stroke-width="1.2"/>
<path d="M640 25.5H640Q636 25.5 636 29.5V34M640 25.5H648M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M636 34V51M1148 34V51M636 51V68M1148 51V68M636 68V85M1148 68V85M636 85V102M1148 85V102M636 102V119M1148 102V119M636 119V136M1148 119V136M636 136V153M1148 136V153M636 153V170M1148 153V170M636 170V187M1148 170V187M636 187V204M1148 187V204M636 204V221M1148 204V221M636 221V238M1148 221V238M636 238V255M1148 238V255M636 255V272M1148 255V272M636 272V289M1148 272V289M636 289V306M1148 289V306M636 306V323M1148 306V323M636 323V340M1148 323V340M636 340V357M1148 340V357M636 357V374M1148 357V374M636 374V391M1148 374V391M636 391V408M1148 391V408M636 408V425M1148 408V425M636 425V442M1148 425V442M636 442V459M1148 442V459M636 459V476M1148 459V476M636 476V493M1148 476V493M636 493V510M1148 493V510M636 510V527M1148 510V527M640 535.5H640Q636 535.5 636 531.5V527M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/> <path d="M640 25.5H640Q636 25.5 636 29.5V34M640 25.5H648M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M636 34V51M1148 34V51M636 51V68M1148 51V68M636 68V85M1148 68V85M636 85V102M1148 85V102M636 102V119M1148 102V119M636 119V136M1148 119V136M636 136V153M1148 136V153M636 153V170M1148 153V170M636 170V187M1148 170V187M636 187V204M1148 187V204M636 204V221M1148 204V221M636 221V238M1148 221V238M636 238V255M1148 238V255M636 255V272M1148 255V272M636 272V289M1148 272V289M636 289V306M1148 289V306M636 306V323M1148 306V323M636 323V340M1148 323V340M636 340V357M1148 340V357M636 357V374M1148 357V374M636 374V391M1148 374V391M636 391V408M1148 391V408M636 408V425M1148 408V425M636 425V442M1148 425V442M636 442V459M1148 442V459M636 459V476M1148 459V476M636 476V493M1148 476V493M636 493V510M1148 493V510M636 510V527M1148 510V527M640 535.5H640Q636 535.5 636 531.5V527M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/>
<g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve"> <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve">
<text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text> <text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text>
<text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text> <text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text>
<text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.3.1 · 201 options</text> <text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.4.0 · 212 options</text>
<text x="24" y="29.9" fill="#74a8fc" textLength="80" lengthAdjust="spacingAndGlyphs" font-weight="700">Edit theme</text> <text x="24" y="29.9" fill="#aeccfc" textLength="80" lengthAdjust="spacingAndGlyphs" font-weight="700">Edit theme</text>
<text x="656" y="29.9" fill="#585b70" textLength="288" lengthAdjust="spacingAndGlyphs">Documentation · 0% · shift+↑↓ scroll</text> <text x="656" y="29.9" fill="#585b70" textLength="288" lengthAdjust="spacingAndGlyphs">Documentation · 0% · shift+↑↓ scroll</text>
<text x="16" y="46.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text> <text x="16" y="46.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text>
<text x="96" y="46.9" fill="#cdd6f4" textLength="288" lengthAdjust="spacingAndGlyphs">theme name (or light:NAME,dark:NAME)</text> <text x="96" y="46.9" fill="#cdd6f4" textLength="288" lengthAdjust="spacingAndGlyphs">theme name (or light:NAME,dark:NAME)</text>
<text x="648" y="46.9" fill="#74a8fc" textLength="40" lengthAdjust="spacingAndGlyphs" font-weight="700">theme</text> <text x="648" y="46.9" fill="#aeccfc" textLength="40" lengthAdjust="spacingAndGlyphs" font-weight="700">theme</text>
<text x="16" y="63.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Default</text> <text x="16" y="63.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Default</text>
<text x="96" y="63.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">(unset)</text> <text x="96" y="63.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">(unset)</text>
<text x="16" y="80.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Current</text> <text x="16" y="80.9" fill="#585b70" textLength="56" lengthAdjust="spacingAndGlyphs">Current</text>
<text x="96" y="80.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text> <text x="96" y="80.9" fill="#cdd6f4" textLength="128" lengthAdjust="spacingAndGlyphs">Catppuccin Mocha</text>
<text x="648" y="80.9" fill="#cdd6f4" textLength="472" lengthAdjust="spacingAndGlyphs">A theme to use. This can be a built-in theme name, a custom</text> <text x="648" y="80.9" fill="#cdd6f4" textLength="472" lengthAdjust="spacingAndGlyphs">A theme to use. This can be a built-in theme name, a custom</text>
<text x="648" y="97.9" fill="#cdd6f4" textLength="440" lengthAdjust="spacingAndGlyphs">theme name, or an absolute path to a custom theme file.</text> <text x="648" y="97.9" fill="#cdd6f4" textLength="440" lengthAdjust="spacingAndGlyphs">theme name, or an absolute path to a custom theme file.</text>
<text x="16" y="114.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs">Search:</text> <text x="16" y="114.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs">Search:</text>
<text x="80" y="114.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">tokyo</text> <text x="80" y="114.9" fill="#cdd6f4" textLength="40" lengthAdjust="spacingAndGlyphs">tokyo</text>
<text x="648" y="114.9" fill="#cdd6f4" textLength="488" lengthAdjust="spacingAndGlyphs">Ghostty also supports specifying a different theme to use for</text> <text x="648" y="114.9" fill="#cdd6f4" textLength="488" lengthAdjust="spacingAndGlyphs">Ghostty also supports specifying a different theme to use for</text>
<text x="16" y="131.9" fill="#f9e2af" textLength="544" lengthAdjust="spacingAndGlyphs">Your config also sets cursor-color, selection-background, which take</text> <text x="16" y="131.9" fill="#f9e2af" textLength="544" lengthAdjust="spacingAndGlyphs">Your config also sets cursor-color, selection-background, which take</text>
<text x="648" y="131.9" fill="#cdd6f4" textLength="424" lengthAdjust="spacingAndGlyphs">light and dark mode. Each option is documented below.</text> <text x="648" y="131.9" fill="#cdd6f4" textLength="424" lengthAdjust="spacingAndGlyphs">light and dark mode. Each option is documented below.</text>
<text x="16" y="148.9" fill="#f9e2af" textLength="208" lengthAdjust="spacingAndGlyphs">precedence over the theme.</text> <text x="16" y="148.9" fill="#f9e2af" textLength="208" lengthAdjust="spacingAndGlyphs">precedence over the theme.</text>
<text x="16" y="165.9" fill="#585b70" textLength="64" lengthAdjust="spacingAndGlyphs">5 of 463</text> <text x="16" y="165.9" fill="#585b70" textLength="64" lengthAdjust="spacingAndGlyphs">5 of 819</text>
<text x="648" y="165.9" fill="#cdd6f4" textLength="488" lengthAdjust="spacingAndGlyphs">If the theme is an absolute pathname, Ghostty will attempt to</text> <text x="648" y="165.9" fill="#cdd6f4" textLength="488" lengthAdjust="spacingAndGlyphs">If the theme is an absolute pathname, Ghostty will attempt to</text>
<text x="32" y="182.9" fill="#cdd6f4" textLength="80" lengthAdjust="spacingAndGlyphs">TokyoNight</text> <text x="32" y="182.9" fill="#cdd6f4" textLength="80" lengthAdjust="spacingAndGlyphs">TokyoNight</text>
<text x="648" y="182.9" fill="#cdd6f4" textLength="480" lengthAdjust="spacingAndGlyphs">load that file as a theme. If that file does not exist or is</text> <text x="648" y="182.9" fill="#cdd6f4" textLength="480" lengthAdjust="spacingAndGlyphs">load that file as a theme. If that file does not exist or is</text>
<text x="16" y="199.9" fill="#74a8fc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text> <text x="16" y="199.9" fill="#aeccfc" textLength="8" lengthAdjust="spacingAndGlyphs">▸</text>
<text x="32" y="199.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">TokyoNight Day</text> <text x="32" y="199.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs">TokyoNight Day</text>
<text x="648" y="199.9" fill="#cdd6f4" textLength="400" lengthAdjust="spacingAndGlyphs">inaccessible, an error will be logged and no other</text> <text x="648" y="199.9" fill="#cdd6f4" textLength="400" lengthAdjust="spacingAndGlyphs">inaccessible, an error will be logged and no other</text>
<text x="32" y="216.9" fill="#cdd6f4" textLength="120" lengthAdjust="spacingAndGlyphs">TokyoNight Moon</text> <text x="32" y="216.9" fill="#cdd6f4" textLength="120" lengthAdjust="spacingAndGlyphs">TokyoNight Moon</text>

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

+6 -6
View File
@@ -6,20 +6,20 @@
<circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/> <circle cx="20" cy="17" r="6" fill="#ff5f57"/><circle cx="40" cy="17" r="6" fill="#febc2e"/><circle cx="60" cy="17" r="6" fill="#28c840"/>
<text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text> <text x="590" y="21.5" text-anchor="middle" fill="#9da3bd" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="13" font-weight="600">ghosttyconf</text>
<g transform="translate(14 48)"> <g transform="translate(14 48)">
<rect x="0" y="0" width="184.6" height="17.6" fill="#74a8fc"/> <rect x="0" y="0" width="184.6" height="17.6" fill="#aeccfc"/>
<rect x="16" y="102" width="56.6" height="17.6" fill="#f38ba8"/> <rect x="16" y="102" width="56.6" height="17.6" fill="#f38ba8"/>
<rect x="152" y="136" width="8.6" height="17.6" fill="#cdd6f4"/> <rect x="152" y="136" width="8.6" height="17.6" fill="#cdd6f4"/>
<path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H208M208 25.5H216M216 25.5H224M224 25.5H232M232 25.5H240M240 25.5H248M248 25.5H256M256 25.5H264M264 25.5H272M272 25.5H280M280 25.5H288M288 25.5H296M296 25.5H304M304 25.5H312M312 25.5H320M320 25.5H328M328 25.5H336M336 25.5H344M344 25.5H352M352 25.5H360M360 25.5H368M368 25.5H376M376 25.5H384M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H624Q628 25.5 628 29.5V34M4 34V51M628 34V51M4 51V68M628 51V68M4 68V85M628 68V85M4 85V102M628 85V102M4 102V119M628 102V119M4 119V136M628 119V136M4 136V153M628 136V153M4 153V170M628 153V170M4 170V187M628 170V187M4 187V204M628 187V204M4 204V221M628 204V221M4 221V238M628 221V238M4 238V255M628 238V255M4 255V272M628 255V272M4 272V289M628 272V289M4 289V306M628 289V306M4 306V323M628 306V323M4 323V340M628 323V340M4 340V357M628 340V357M4 357V374M628 357V374M4 374V391M628 374V391M4 391V408M628 391V408M4 408V425M628 408V425M4 425V442M628 425V442M4 442V459M628 442V459M4 459V476M628 459V476M4 476V493M628 476V493M4 493V510M628 493V510M4 510V527M628 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H208M208 535.5H216M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H624Q628 535.5 628 531.5V527" fill="none" stroke="#74a8fc" stroke-width="1.2"/> <path d="M8 25.5H8Q4 25.5 4 29.5V34M8 25.5H16M128 25.5H136M136 25.5H144M144 25.5H152M152 25.5H160M160 25.5H168M168 25.5H176M176 25.5H184M184 25.5H192M192 25.5H200M200 25.5H208M208 25.5H216M216 25.5H224M224 25.5H232M232 25.5H240M240 25.5H248M248 25.5H256M256 25.5H264M264 25.5H272M272 25.5H280M280 25.5H288M288 25.5H296M296 25.5H304M304 25.5H312M312 25.5H320M320 25.5H328M328 25.5H336M336 25.5H344M344 25.5H352M352 25.5H360M360 25.5H368M368 25.5H376M376 25.5H384M384 25.5H392M392 25.5H400M400 25.5H408M408 25.5H416M416 25.5H424M424 25.5H432M432 25.5H440M440 25.5H448M448 25.5H456M456 25.5H464M464 25.5H472M472 25.5H480M480 25.5H488M488 25.5H496M496 25.5H504M504 25.5H512M512 25.5H520M520 25.5H528M528 25.5H536M536 25.5H544M544 25.5H552M552 25.5H560M560 25.5H568M568 25.5H576M576 25.5H584M584 25.5H592M592 25.5H600M600 25.5H608M608 25.5H616M616 25.5H624M624 25.5H624Q628 25.5 628 29.5V34M4 34V51M628 34V51M4 51V68M628 51V68M4 68V85M628 68V85M4 85V102M628 85V102M4 102V119M628 102V119M4 119V136M628 119V136M4 136V153M628 136V153M4 153V170M628 153V170M4 170V187M628 170V187M4 187V204M628 187V204M4 204V221M628 204V221M4 221V238M628 221V238M4 238V255M628 238V255M4 255V272M628 255V272M4 272V289M628 272V289M4 289V306M628 289V306M4 306V323M628 306V323M4 323V340M628 323V340M4 340V357M628 340V357M4 357V374M628 357V374M4 374V391M628 374V391M4 391V408M628 391V408M4 408V425M628 408V425M4 425V442M628 425V442M4 442V459M628 442V459M4 459V476M628 459V476M4 476V493M628 476V493M4 493V510M628 493V510M4 510V527M628 510V527M8 535.5H8Q4 535.5 4 531.5V527M8 535.5H16M16 535.5H24M24 535.5H32M32 535.5H40M40 535.5H48M48 535.5H56M56 535.5H64M64 535.5H72M72 535.5H80M80 535.5H88M88 535.5H96M96 535.5H104M104 535.5H112M112 535.5H120M120 535.5H128M128 535.5H136M136 535.5H144M144 535.5H152M152 535.5H160M160 535.5H168M168 535.5H176M176 535.5H184M184 535.5H192M192 535.5H200M200 535.5H208M208 535.5H216M216 535.5H224M224 535.5H232M232 535.5H240M240 535.5H248M248 535.5H256M256 535.5H264M264 535.5H272M272 535.5H280M280 535.5H288M288 535.5H296M296 535.5H304M304 535.5H312M312 535.5H320M320 535.5H328M328 535.5H336M336 535.5H344M344 535.5H352M352 535.5H360M360 535.5H368M368 535.5H376M376 535.5H384M384 535.5H392M392 535.5H400M400 535.5H408M408 535.5H416M416 535.5H424M424 535.5H432M432 535.5H440M440 535.5H448M448 535.5H456M456 535.5H464M464 535.5H472M472 535.5H480M480 535.5H488M488 535.5H496M496 535.5H504M504 535.5H512M512 535.5H520M520 535.5H528M528 535.5H536M536 535.5H544M544 535.5H552M552 535.5H560M560 535.5H568M568 535.5H576M576 535.5H584M584 535.5H592M592 535.5H600M600 535.5H608M608 535.5H616M616 535.5H624M624 535.5H624Q628 535.5 628 531.5V527" fill="none" stroke="#aeccfc" stroke-width="1.2"/>
<path d="M640 25.5H640Q636 25.5 636 29.5V34M640 25.5H648M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M636 34V51M1148 34V51M636 51V68M1148 51V68M636 68V85M1148 68V85M636 85V102M1148 85V102M636 102V119M1148 102V119M636 119V136M1148 119V136M636 136V153M1148 136V153M636 153V170M1148 153V170M636 170V187M1148 170V187M636 187V204M1148 187V204M636 204V221M1148 204V221M636 221V238M1148 221V238M636 238V255M1148 238V255M636 255V272M1148 255V272M636 272V289M1148 272V289M636 289V306M1148 289V306M636 306V323M1148 306V323M636 323V340M1148 323V340M636 340V357M1148 340V357M636 357V374M1148 357V374M636 374V391M1148 374V391M636 391V408M1148 391V408M636 408V425M1148 408V425M636 425V442M1148 425V442M636 442V459M1148 442V459M636 459V476M1148 459V476M636 476V493M1148 476V493M636 493V510M1148 493V510M636 510V527M1148 510V527M640 535.5H640Q636 535.5 636 531.5V527M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/> <path d="M640 25.5H640Q636 25.5 636 29.5V34M640 25.5H648M952 25.5H960M960 25.5H968M968 25.5H976M976 25.5H984M984 25.5H992M992 25.5H1000M1000 25.5H1008M1008 25.5H1016M1016 25.5H1024M1024 25.5H1032M1032 25.5H1040M1040 25.5H1048M1048 25.5H1056M1056 25.5H1064M1064 25.5H1072M1072 25.5H1080M1080 25.5H1088M1088 25.5H1096M1096 25.5H1104M1104 25.5H1112M1112 25.5H1120M1120 25.5H1128M1128 25.5H1136M1136 25.5H1144M1144 25.5H1144Q1148 25.5 1148 29.5V34M636 34V51M1148 34V51M636 51V68M1148 51V68M636 68V85M1148 68V85M636 85V102M1148 85V102M636 102V119M1148 102V119M636 119V136M1148 119V136M636 136V153M1148 136V153M636 153V170M1148 153V170M636 170V187M1148 170V187M636 187V204M1148 187V204M636 204V221M1148 204V221M636 221V238M1148 221V238M636 238V255M1148 238V255M636 255V272M1148 255V272M636 272V289M1148 272V289M636 289V306M1148 289V306M636 306V323M1148 306V323M636 323V340M1148 323V340M636 340V357M1148 340V357M636 357V374M1148 357V374M636 374V391M1148 374V391M636 391V408M1148 391V408M636 408V425M1148 408V425M636 425V442M1148 425V442M636 442V459M1148 442V459M636 459V476M1148 459V476M636 476V493M1148 476V493M636 493V510M1148 493V510M636 510V527M1148 510V527M640 535.5H640Q636 535.5 636 531.5V527M640 535.5H648M648 535.5H656M656 535.5H664M664 535.5H672M672 535.5H680M680 535.5H688M688 535.5H696M696 535.5H704M704 535.5H712M712 535.5H720M720 535.5H728M728 535.5H736M736 535.5H744M744 535.5H752M752 535.5H760M760 535.5H768M768 535.5H776M776 535.5H784M784 535.5H792M792 535.5H800M800 535.5H808M808 535.5H816M816 535.5H824M824 535.5H832M832 535.5H840M840 535.5H848M848 535.5H856M856 535.5H864M864 535.5H872M872 535.5H880M880 535.5H888M888 535.5H896M896 535.5H904M904 535.5H912M912 535.5H920M920 535.5H928M928 535.5H936M936 535.5H944M944 535.5H952M952 535.5H960M960 535.5H968M968 535.5H976M976 535.5H984M984 535.5H992M992 535.5H1000M1000 535.5H1008M1008 535.5H1016M1016 535.5H1024M1024 535.5H1032M1032 535.5H1040M1040 535.5H1048M1048 535.5H1056M1056 535.5H1064M1064 535.5H1072M1072 535.5H1080M1080 535.5H1088M1088 535.5H1096M1096 535.5H1104M1104 535.5H1112M1112 535.5H1120M1120 535.5H1128M1128 535.5H1136M1136 535.5H1144M1144 535.5H1144Q1148 535.5 1148 531.5V527" fill="none" stroke="#585b70" stroke-width="1.2"/>
<g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve"> <g font-family="ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="13.4" xml:space="preserve">
<text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text> <text x="8" y="12.9" fill="#45475a" textLength="168" lengthAdjust="spacingAndGlyphs" font-weight="700">Ghostty Config Editor</text>
<text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text> <text x="192" y="12.9" fill="#585b70" textLength="256" lengthAdjust="spacingAndGlyphs">~/.config/ghostty/config.ghostty</text>
<text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.3.1 · 201 options</text> <text x="928" y="12.9" fill="#585b70" textLength="216" lengthAdjust="spacingAndGlyphs">Ghostty 1.4.0 · 212 options</text>
<text x="24" y="29.9" fill="#74a8fc" textLength="96" lengthAdjust="spacingAndGlyphs" font-weight="700">Edit keybind</text> <text x="24" y="29.9" fill="#aeccfc" textLength="96" lengthAdjust="spacingAndGlyphs" font-weight="700">Edit keybind</text>
<text x="656" y="29.9" fill="#585b70" textLength="288" lengthAdjust="spacingAndGlyphs">Documentation · 0% · shift+↑↓ scroll</text> <text x="656" y="29.9" fill="#585b70" textLength="288" lengthAdjust="spacingAndGlyphs">Documentation · 0% · shift+↑↓ scroll</text>
<text x="16" y="46.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text> <text x="16" y="46.9" fill="#585b70" textLength="32" lengthAdjust="spacingAndGlyphs">Type</text>
<text x="96" y="46.9" fill="#cdd6f4" textLength="224" lengthAdjust="spacingAndGlyphs">key binding (trigger=action)</text> <text x="96" y="46.9" fill="#cdd6f4" textLength="224" lengthAdjust="spacingAndGlyphs">key binding (trigger=action)</text>
<text x="648" y="46.9" fill="#74a8fc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">keybind</text> <text x="648" y="46.9" fill="#aeccfc" textLength="56" lengthAdjust="spacingAndGlyphs" font-weight="700">keybind</text>
<text x="16" y="80.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs" font-weight="700">Change super+d</text> <text x="16" y="80.9" fill="#cdd6f4" textLength="112" lengthAdjust="spacingAndGlyphs" font-weight="700">Change super+d</text>
<text x="144" y="80.9" fill="#585b70" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">(built-in binding)</text> <text x="144" y="80.9" fill="#585b70" textLength="144" lengthAdjust="spacingAndGlyphs" font-weight="700">(built-in binding)</text>
<text x="648" y="80.9" fill="#cdd6f4" textLength="216" lengthAdjust="spacingAndGlyphs">Key bindings. The format is</text> <text x="648" y="80.9" fill="#cdd6f4" textLength="216" lengthAdjust="spacingAndGlyphs">Key bindings. The format is</text>
@@ -31,7 +31,7 @@
<text x="648" y="114.9" fill="#cdd6f4" textLength="432" lengthAdjust="spacingAndGlyphs">actions is available in the documentation or using the</text> <text x="648" y="114.9" fill="#cdd6f4" textLength="432" lengthAdjust="spacingAndGlyphs">actions is available in the documentation or using the</text>
<text x="648" y="131.9" fill="#94e2d5" textLength="168" lengthAdjust="spacingAndGlyphs">ghostty +list-actions</text> <text x="648" y="131.9" fill="#94e2d5" textLength="168" lengthAdjust="spacingAndGlyphs">ghostty +list-actions</text>
<text x="824" y="131.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">command.</text> <text x="824" y="131.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">command.</text>
<text x="16" y="148.9" fill="#74a8fc" textLength="72" lengthAdjust="spacingAndGlyphs">Trigger ›</text> <text x="16" y="148.9" fill="#aeccfc" textLength="72" lengthAdjust="spacingAndGlyphs">Trigger ›</text>
<text x="96" y="148.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">super+\</text> <text x="96" y="148.9" fill="#cdd6f4" textLength="56" lengthAdjust="spacingAndGlyphs">super+\</text>
<text x="648" y="165.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">Trigger:</text> <text x="648" y="165.9" fill="#cdd6f4" textLength="64" lengthAdjust="spacingAndGlyphs">Trigger:</text>
<text x="720" y="165.9" fill="#94e2d5" textLength="8" lengthAdjust="spacingAndGlyphs">+</text> <text x="720" y="165.9" fill="#94e2d5" textLength="8" lengthAdjust="spacingAndGlyphs">+</text>

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

+14
View File
@@ -340,6 +340,20 @@ func (f *File) Unset(key string) {
f.Lines = kept 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. // Bytes renders the file.
func (f *File) Bytes() []byte { func (f *File) Bytes() []byte {
var b bytes.Buffer var b bytes.Buffer
+12
View File
@@ -125,6 +125,18 @@ func TestUnset(t *testing.T) {
} }
} }
func TestRenameKeepsLayout(t *testing.T) {
f := parse(t, "# limits\n scrollback-limit=100000\nfont-size = 15\nscrollback-limit = \"2000\"\n")
f.Rename("scrollback-limit", "scrollback-limit-bytes")
want := "# limits\n scrollback-limit-bytes=100000\nfont-size = 15\nscrollback-limit-bytes = \"2000\"\n"
if got := string(f.Bytes()); got != want {
t.Fatalf("got\n%s\nwant\n%s", got, want)
}
if f.Has("scrollback-limit") || len(f.GetAll("scrollback-limit-bytes")) != 2 {
t.Fatal("keys not renamed")
}
}
func TestFormatLineQuoting(t *testing.T) { func TestFormatLineQuoting(t *testing.T) {
cases := map[string]string{ cases := map[string]string{
"bar": "k = bar", "bar": "k = bar",
+5 -3
View File
@@ -110,9 +110,11 @@ func (g *Ghostty) Themes() ([]string, error) {
if line == "" { if line == "" {
continue continue
} }
// Lines look like "Dracula (resources)" or "Mine (user)". // Lines look like "Dracula (resources)" or "Mine (user)". Only these
if i := strings.LastIndex(line, " ("); i > 0 && strings.HasSuffix(line, ")") { // two are cut off: names such as "Black Metal (Bathory)" have
line = line[:i] // parentheses of their own.
for _, loc := range []string{" (resources)", " (user)"} {
line = strings.TrimSuffix(line, loc)
} }
if !seen[line] { if !seen[line] {
seen[line] = true seen[line] = true
+88
View File
@@ -0,0 +1,88 @@
package ghostty
import (
"os"
"path/filepath"
"slices"
"strings"
"testing"
)
// TestLiveGhostty runs every command ghosttyconf uses against the installed
// Ghostty and checks that the output is still understood. It is meant for a
// new Ghostty release and only runs when asked for:
//
// GHOSTTYCONF_LIVE_TEST=1 go test -run Live -v ./internal/ghostty
func TestLiveGhostty(t *testing.T) {
if os.Getenv("GHOSTTYCONF_LIVE_TEST") == "" {
t.Skip("set GHOSTTYCONF_LIVE_TEST=1 to run against the installed Ghostty")
}
g, err := Find(os.Getenv("GHOSTTYCONF_GHOSTTY"))
if err != nil {
t.Fatal(err)
}
if g.Version == "" {
t.Fatal("+version: no version found")
}
t.Logf("Ghostty %s at %s", g.Version, g.Bin)
docs, err := g.DefaultsWithDocs()
if err != nil {
t.Fatal(err)
}
for _, want := range []string{"\nfont-family = ", "\nkeybind = ", "\n# "} {
if !strings.Contains(docs, want) {
t.Errorf("+show-config --default --docs: no %q", want)
}
}
themes, err := g.Themes()
if err != nil {
t.Fatal(err)
}
if len(themes) < 100 || !slices.Contains(themes, "Catppuccin Mocha") {
t.Errorf("+list-themes: %d themes, Catppuccin Mocha missing or too few", len(themes))
}
for _, name := range themes {
if strings.HasSuffix(name, " (resources)") || strings.HasSuffix(name, " (user)") {
t.Errorf("+list-themes: location left on %q", name)
break
}
}
th, err := g.LoadTheme("Catppuccin Mocha")
if err != nil {
t.Fatalf("theme file: %v", err)
}
if th.Background == "" || th.Palette[15] == "" {
t.Errorf("theme file: %+v", th)
}
fonts, err := g.Fonts()
if err != nil || len(fonts) == 0 {
t.Errorf("+list-fonts: %d fonts, %v", len(fonts), err)
}
actions, err := g.Actions()
if err != nil {
t.Fatal(err)
}
byName := map[string]Action{}
for _, a := range actions {
byName[a.Name] = a
}
if a := byName["new_split"]; len(actions) < 50 || a.Summary == "" || !strings.Contains(a.Doc, "right") {
t.Errorf("+list-actions --docs: %d actions, new_split = %+v", len(actions), a)
}
conf := filepath.Join(t.TempDir(), "config")
if err := os.WriteFile(conf, []byte("font-size = 14\nfont-size = abc\nbogus-key = 1\n"), 0o644); err != nil {
t.Fatal(err)
}
errs, err := g.Validate(conf)
if err != nil {
t.Fatal(err)
}
if len(errs) != 2 || errs[0].Line != 2 || errs[1].Line != 3 {
t.Errorf("+validate-config: %v", errs)
}
}
+7 -5
View File
@@ -68,21 +68,23 @@ type Theme struct {
} }
// ThemeDirs returns the directories searched for themes, user dirs first. // ThemeDirs returns the directories searched for themes, user dirs first.
// Like Ghostty, this is the XDG config directory even on macOS, where the
// config file itself usually lives under Application Support.
func (g *Ghostty) ThemeDirs() []string { func (g *Ghostty) ThemeDirs() []string {
dirs := []string{filepath.Join(xdgConfigDir(), "themes")} dirs := []string{filepath.Join(xdgConfigDir(), "themes")}
if runtime.GOOS == "darwin" {
dirs = append(dirs, filepath.Join(macConfigDir(), "themes"))
}
if r := g.ResourcesDir(); r != "" { if r := g.ResourcesDir(); r != "" {
dirs = append(dirs, filepath.Join(r, "themes")) dirs = append(dirs, filepath.Join(r, "themes"))
} }
return dirs return dirs
} }
// LoadTheme reads a theme by name (or absolute path) for previewing. // LoadTheme reads a theme by name (or path) for previewing. A leading "~/"
// stands for the home directory, as in Ghostty 1.4 and later.
func (g *Ghostty) LoadTheme(name string) (*Theme, error) { func (g *Ghostty) LoadTheme(name string) (*Theme, error) {
var path string var path string
if filepath.IsAbs(name) { if rest, ok := strings.CutPrefix(name, "~/"); ok {
path = filepath.Join(os.Getenv("HOME"), rest)
} else if filepath.IsAbs(name) {
path = name path = name
} else { } else {
for _, d := range g.ThemeDirs() { for _, d := range g.ThemeDirs() {
+42
View File
@@ -0,0 +1,42 @@
package ghostty
import (
"os"
"path/filepath"
"slices"
"testing"
)
func TestLoadThemeExpandsHome(t *testing.T) {
home := t.TempDir()
t.Setenv("HOME", home)
dir := filepath.Join(home, "themes")
if err := os.MkdirAll(dir, 0o755); err != nil {
t.Fatal(err)
}
theme := "background = #252528\npalette = 1=#f38ba8\n"
if err := os.WriteFile(filepath.Join(dir, "mine"), []byte(theme), 0o644); err != nil {
t.Fatal(err)
}
th, err := (&Ghostty{}).LoadTheme("~/themes/mine")
if err != nil {
t.Fatal(err)
}
if th.Background != "#252528" || th.Palette[1] != "#f38ba8" {
t.Errorf("theme: %+v", th)
}
}
// Ghostty looks for user themes in the XDG config directory only, also on
// macOS, where the config file usually lives under Application Support.
func TestThemeDirsFollowGhostty(t *testing.T) {
home := t.TempDir()
t.Setenv("HOME", home)
t.Setenv("XDG_CONFIG_HOME", "")
t.Setenv("GHOSTTY_RESOURCES_DIR", "")
got := (&Ghostty{}).ThemeDirs()
want := []string{filepath.Join(home, ".config", "ghostty", "themes")}
if !slices.Equal(got, want) {
t.Errorf("ThemeDirs = %v, want %v", got, want)
}
}
+4 -1
View File
@@ -61,16 +61,17 @@ var categoryByKey = map[string]string{
"grapheme-width-method": CatFonts, "grapheme-width-method": CatFonts,
"window-new-tab-position": CatTabsSplits, "window-new-tab-position": CatTabsSplits,
"window-show-tab-bar": CatTabsSplits, "window-show-tab-bar": CatTabsSplits,
"drag-handle": CatTabsSplits,
"window-inherit-working-directory": CatShell, "window-inherit-working-directory": CatShell,
"tab-inherit-working-directory": CatShell, "tab-inherit-working-directory": CatShell,
"split-inherit-working-directory": CatShell, "split-inherit-working-directory": CatShell,
"scrollback-limit": CatScrolling,
"scrollbar": CatScrolling, "scrollbar": CatScrolling,
"scroll-to-bottom": CatScrolling, "scroll-to-bottom": CatScrolling,
"mouse-scroll-multiplier": CatScrolling, "mouse-scroll-multiplier": CatScrolling,
"focus-follows-mouse": CatMouse, "focus-follows-mouse": CatMouse,
"click-repeat-interval": CatMouse, "click-repeat-interval": CatMouse,
"right-click-action": CatMouse, "right-click-action": CatMouse,
"middle-click-action": CatMouse,
"copy-on-select": CatClipboard, "copy-on-select": CatClipboard,
"command": CatShell, "command": CatShell,
"initial-command": CatShell, "initial-command": CatShell,
@@ -96,12 +97,14 @@ var categoryByKey = map[string]string{
"initial-window": CatWindow, "initial-window": CatWindow,
"confirm-close-surface": CatWindow, "confirm-close-surface": CatWindow,
"undo-timeout": CatWindow, "undo-timeout": CatWindow,
"vt-window-resize-allowed": CatWindow,
} }
var categoryPrefixes = []struct { var categoryPrefixes = []struct {
prefix, cat string prefix, cat string
}{ }{
{"quick-terminal-", CatQuickTerminal}, {"quick-terminal-", CatQuickTerminal},
{"scrollback-", CatScrolling},
{"gtk-quick-terminal-", CatQuickTerminal}, {"gtk-quick-terminal-", CatQuickTerminal},
{"custom-shader", CatShaders}, {"custom-shader", CatShaders},
{"adjust-cursor-", CatCursor}, {"adjust-cursor-", CatCursor},
+51
View File
@@ -59,6 +59,24 @@ type Option struct {
Category string `json:"-"` Category string `json:"-"`
Platform string `json:"-"` // "", "macOS" or "Linux" Platform string `json:"-"` // "", "macOS" or "Linux"
// OldValues are values Ghostty no longer documents but still accepts
// (from Schema.Compat).
OldValues []string `json:"-"`
}
// Compat is an entry of Ghostty's compatibility table: a key or value from
// an older release that Ghostty still reads although it is no longer
// documented.
type Compat struct {
Key string `json:"key"`
RenamedTo string `json:"renamedTo,omitempty"` // the key's current name
Values []string `json:"values,omitempty"` // old values of a current option
Sets []string `json:"sets,omitempty"` // options an old key sets instead
}
// IsOldValue reports whether v is an old value Ghostty still accepts.
func (o *Option) IsOldValue(v string) bool {
return contains(o.OldValues, strings.TrimSpace(Unquote(v)))
} }
// Default returns the default value for scalar options ("" when unset). // Default returns the default value for scalar options ("" when unset).
@@ -100,6 +118,9 @@ func (o *Option) TypeLabel() string {
} else if o.Min != nil { } else if o.Min != nil {
s += fmt.Sprintf(" (%s or more)", num(*o.Min)) s += fmt.Sprintf(" (%s or more)", num(*o.Min))
} }
if len(o.Values) > 0 {
s += " or " + strings.Join(o.Values, ", ")
}
case KindFloat: case KindFloat:
s = "number" s = "number"
if o.Min != nil && o.Max != nil { if o.Min != nil && o.Max != nil {
@@ -143,10 +164,12 @@ func (o *Option) TypeLabel() string {
type Schema struct { type Schema struct {
GhosttyVersion string `json:"ghosttyVersion"` GhosttyVersion string `json:"ghosttyVersion"`
Options []*Option `json:"options"` Options []*Option `json:"options"`
Compat []*Compat `json:"compat,omitempty"`
// Source describes where docs and defaults came from. // Source describes where docs and defaults came from.
Source string `json:"-"` Source string `json:"-"`
byKey map[string]*Option byKey map[string]*Option
compatBy map[string]*Compat
} }
//go:embed schema.json //go:embed schema.json
@@ -168,13 +191,41 @@ func (s *Schema) Lookup(key string) *Option {
return s.byKey[key] return s.byKey[key]
} }
// OldKey returns the compatibility entry for a key that is no longer an
// option of its own (renamed or replaced), or nil.
func (s *Schema) OldKey(key string) *Compat {
if c := s.compatBy[key]; c != nil && s.byKey[key] == nil {
return c
}
return nil
}
// OldNames returns the old keys that Ghostty reads as key.
func (s *Schema) OldNames(key string) []string {
var out []string
for _, c := range s.Compat {
if c.RenamedTo == key && s.byKey[c.Key] == nil {
out = append(out, c.Key)
}
}
return out
}
func (s *Schema) finish() { func (s *Schema) finish() {
s.byKey = make(map[string]*Option, len(s.Options)) s.byKey = make(map[string]*Option, len(s.Options))
for _, o := range s.Options { for _, o := range s.Options {
o.Category = categorize(o.Key) o.Category = categorize(o.Key)
o.Platform = platform(o) o.Platform = platform(o)
o.OldValues = nil
s.byKey[o.Key] = o s.byKey[o.Key] = o
} }
s.compatBy = make(map[string]*Compat, len(s.Compat))
for _, c := range s.Compat {
s.compatBy[c.Key] = c
if o := s.byKey[c.Key]; o != nil {
o.OldValues = c.Values
}
}
} }
// Refresh replaces docs and defaults with the output of // Refresh replaces docs and defaults with the output of
+228 -30
View File
@@ -1,5 +1,5 @@
{ {
"ghosttyVersion": "1.3.1", "ghosttyVersion": "1.4.0",
"options": [ "options": [
{ {
"key": "language", "key": "language",
@@ -538,7 +538,7 @@
"key": "selection-word-chars", "key": "selection-word-chars",
"zigType": "SelectionWordChars", "zigType": "SelectionWordChars",
"kind": "text", "kind": "text",
"doc": "Characters that mark word boundaries during text selection operations such\nas double-clicking. When selecting a word, the selection will stop at any\nof these characters.\n\nThis is similar to the `WORDCHARS` environment variable in zsh, except this\nspecifies the boundary characters rather than the word characters. The\ndefault includes common delimiters and punctuation that typically separate\nwords in code and prose.\n\nEach character in this string becomes a word boundary. Multi-byte UTF-8\ncharacters are supported, but only single codepoints can be specified.\nMulti-codepoint sequences (e.g. emoji) are not supported.\n\nThe null character (U+0000) is always treated as a boundary and does not\nneed to be included in this configuration.\n\nDefault: `` \\t'\"│`|:;,()[]{}\u003c\u003e$ ``\n\nTo add or remove specific characters, you can set this to a custom value.\nFor example, to treat semicolons as part of words:\n\n selection-word-chars = \" \\t'\\\"│`|:,()[]{}\u003c\u003e$\"\n\nAvailable since: 1.3.0", "doc": "Characters that mark word boundaries during text selection operations such\nas double-clicking. When selecting a word, the selection will stop at any\nof these characters.\n\nThis is similar to the `WORDCHARS` environment variable in zsh, except this\nspecifies the boundary characters rather than the word characters. The\ndefault includes common delimiters and punctuation that typically separate\nwords in code and prose.\n\nEach character in this string becomes a word boundary. Multi-byte UTF-8\ncharacters are supported, but only single codepoints can be specified.\nMulti-codepoint sequences (e.g. emoji) are not supported.\n\nThe null character (U+0000) is always treated as a boundary and does not\nneed to be included in this configuration.\n\nDefault: ``\\t '\"│`|:;,()[]{}\u003c\u003e$``\n\nTo add or remove specific characters, you can set this to a custom value.\nFor example, to treat semicolons as part of words:\n\n selection-word-chars = \"\\t '\\\"│`|:,()[]{}\u003c\u003e$\"\n\nAvailable since: 1.3.0",
"defaults": [ "defaults": [
" \t'\"│`|:;,()[]{}\u003c\u003e$" " \t'\"│`|:;,()[]{}\u003c\u003e$"
] ]
@@ -902,7 +902,7 @@
"key": "cursor-click-to-move", "key": "cursor-click-to-move",
"zigType": "bool", "zigType": "bool",
"kind": "bool", "kind": "bool",
"doc": "Enables the ability to move the cursor at prompts by clicking on a\nlocation in the prompt text.\n\nThis feature requires shell integration, specifically prompt marking\nvia `OSC 133`. Some shells like Fish (v4) and Nu (0.111+) natively\nsupport this while others may require additional configuration or\nGhostty's shell integration features to be enabled.\n\nDepending on the shell, this works either by translating your click\nposition into a series of synthetic arrow key movements or by sending\na click event directly to the shell. In either case, some unexpected\nbehavior around edge cases is possible.", "doc": "Enables the ability to move the cursor at prompts by clicking on a\nlocation in the prompt text.\n\nThis feature requires prompt marking via `OSC 133`. Some shells like Fish\n(v4.1+) and Nu (0.111+) natively support this while others may require\nadditional configuration or Ghostty's shell integration features to be\nenabled.\n\nDepending on the shell, this works either by translating your click\nposition into a series of synthetic arrow key movements or by sending\na click event directly to the shell. In either case, some unexpected\nbehavior around edge cases is possible.",
"defaults": [ "defaults": [
"true" "true"
] ]
@@ -994,7 +994,7 @@
"macos-glass-clear" "macos-glass-clear"
], ],
"hint": "true, false, a blur radius (e.g. 20) or a macOS glass style", "hint": "true, false, a blur radius (e.g. 20) or a macOS glass style",
"doc": "Whether to blur the background when `background-opacity` is less than 1.\n\nValid values are:\n\n * a nonnegative integer specifying the *blur intensity*\n * `false`, equivalent to a blur intensity of 0\n * `true`, equivalent to the default blur intensity of 20, which is\n reasonable for a good looking blur. Higher blur intensities may\n cause strange rendering and performance issues.\n\nOn macOS 26.0 and later, there are additional special values that\ncan be set to use the native macOS glass effects:\n\n * `macos-glass-regular` - Standard glass effect with some opacity\n * `macos-glass-clear` - Highly transparent glass effect\n\nIf the macOS values are set, then this implies `background-blur = true`\non non-macOS platforms.\n\nSupported on macOS and on some Linux desktop environments, including:\n\n * KDE Plasma (Wayland and X11)\n\nWarning: the exact blur intensity is _ignored_ under KDE Plasma, and setting\nthis setting to either `true` or any positive blur intensity value would\nachieve the same effect. The reason is that KWin, the window compositor\npowering Plasma, only has one global blur setting and does not allow\napplications to specify individual blur settings.\n\nTo configure KWin's global blur setting, open System Settings and go to\n\"Apps \u0026 Windows\" \u003e \"Window Management\" \u003e \"Desktop Effects\" and select the\n\"Blur\" plugin. If disabled, enable it by ticking the checkbox to the left.\nThen click on the \"Configure\" button and there will be two sliders that\nallow you to set background blur and noise intensities for all apps,\nincluding Ghostty.\n\nAll other Linux desktop environments are as of now unsupported. Users may\nneed to set environment-specific settings and/or install third-party plugins\nin order to support background blur, as there isn't a unified interface for\ndoing so.", "doc": "Whether to blur the background when `background-opacity` is less than 1.\n\nValid values are:\n\n * a nonnegative integer specifying the *blur intensity*\n * `false`, equivalent to a blur intensity of 0\n * `true`, equivalent to the default blur intensity of 20, which is\n reasonable for a good looking blur. Higher blur intensities may\n cause strange rendering and performance issues.\n\nOn macOS 26.0 and later, there are additional special values that\ncan be set to use the native macOS glass effects:\n\n * `macos-glass-regular` - Standard glass effect with some opacity\n * `macos-glass-clear` - Highly transparent glass effect\n\nIf the macOS values are set, then this implies `background-blur = true`\non non-macOS platforms.\n\nOn Linux, the exact blur intensity is ignored and any positive integer\nor `true` value will enable background blur. On Wayland, Ghostty uses\nthe [`ext-background-effect-v1`](https://wayland.app/protocols/ext-background-effect-v1)\nprotocol to enable the blur effect, but this is not always supported\non all compositors. Check the documentation of your compositor or\ndesktop environment for blur support and how to configure it.\n\nOn X11, blur can only be enabled when using the KWin compositor\nas a part of KDE Plasma.",
"defaults": [ "defaults": [
"false" "false"
] ]
@@ -1191,13 +1191,38 @@
] ]
}, },
{ {
"key": "scrollback-limit", "key": "scrollback-limit-bytes",
"zigType": "usize", "zigType": "Limit(usize, 50_000_000)",
"kind": "int", "kind": "int",
"values": [
"unlimited"
],
"min": 0, "min": 0,
"doc": "The size of the scrollback buffer in bytes. This also includes the active\nscreen. No matter what this is set to, enough memory will always be\nallocated for the visible screen and anything leftover is the limit for\nthe scrollback.\n\nWhen this limit is reached, the oldest lines are removed from the\nscrollback.\n\nScrollback currently exists completely in memory. This means that the\nlarger this value, the larger potential memory usage. Scrollback is\nallocated lazily up to this limit, so if you set this to a very large\nvalue, it will not immediately consume a lot of memory.\n\nThis size is per terminal surface, not for the entire application.\n\nIt is not currently possible to set an unlimited scrollback buffer.\nThis is a future planned feature.\n\nThis can be changed at runtime but will only affect new terminal surfaces.", "doc": "The size of the scrollback buffer in bytes. This also includes the active\nscreen. No matter what this is set to, enough memory will always be\nallocated for the visible screen and anything leftover is the limit for\nthe scrollback.\n\nWhen this limit is reached, the oldest lines are removed from the\nscrollback.\n\nScrollback is stored in memory and allocated lazily up to this limit, so\nsetting a very large limit does not immediately consume that amount of\nmemory. On supported systems with scrollback compression enabled, Ghostty\nattempts to compress fully historical pages which are not currently visible\nwhile the terminal is idle. This can reduce physical memory usage, depending\non the contents of the scrollback.\n\nThis limit always measures the uncompressed logical size of the terminal\npages. Compression does not allow Ghostty to retain more history than the\nconfigured limit. Accessing compressed history restores it transparently\nand may increase the terminal's physical memory usage again.\n\nThis size is per terminal surface, not for the entire application.\n\nA separate maximum can be set with `scrollback-limit-lines`; if both limits\nare set, then the first one reached will determine when scrollback is\nremoved.\n\nThe default is 50 MB. Set this to `unlimited` to remove the byte limit.\n\nThis can be changed at runtime but will only affect new terminal surfaces.",
"defaults": [ "defaults": [
"10000000" "50000000"
]
},
{
"key": "scrollback-limit-lines",
"zigType": "Limit(usize, std.math.maxInt(usize))",
"kind": "int",
"values": [
"unlimited"
],
"min": 0,
"doc": "The maximum number of lines of scrollback to retain. This excludes\nthe active screen. Soft-wrapped lines count as multiple lines.\n\nThis limit is an estimate. Internally, Ghostty will only trim lines\nup to the minimum allocation unit that is used internally (called a\n\"page\"). The size of a page depends on how many styles, graphemes, etc.\ntake up the screen. In practice, this can be anywhere from a handful to\na couple hundred lines. Importantly, memory is capped either way.\nThis means that the actual limited lines will likely be slightly\nhigher in practice.\n\nThe default is `unlimited`. A separate maximum can be set with\n`scrollback-limit-bytes`; if both limits are set, then the first one reached\nwill determine when scrollback is removed.\n\nThis can be changed at runtime but will only affect new terminal surfaces.",
"defaults": [
"unlimited"
]
},
{
"key": "scrollback-compression",
"zigType": "bool",
"kind": "bool",
"doc": "Whether to compress scrollback pages while the terminal is idle.\n\nGhostty does its best to only compress when idle and decompress\nas needed. This means that compression doesn't lower IO throughput.\nWe recommend you keep it on.\n\nThe scrollback limit remains an uncompressed logical limit regardless of\nthis setting, so disabling compression can increase physical memory usage\nbut does not change how much history is retained.\n\nText-heavy terminal history generally compresses to approximately 10% to\n30% of its uncompressed page memory, corresponding to a 70% to 90% reduction\nin physical memory for pages which are compressed. Compression savings are\ncontent-dependent.\n\nNote that the way Ghostty works is that we compress and discard the\nphysical/resident memory but we retain virtual mappings. You will not\nsee a decrease in virtual memory usage, but you will see a decrease\nin physical/memory usage.\n\nChanging this at runtime affects future compression work. Pages which are\nalready compressed remain compressed until their contents are accessed.",
"defaults": [
"true"
] ]
}, },
{ {
@@ -1208,7 +1233,7 @@
"system", "system",
"never" "never"
], ],
"doc": "Control when the scrollbar is shown to scroll the scrollback buffer.\n\nThe default value is `system`.\n\nValid values:\n\n * `system` - Respect the system settings for when to show scrollbars.\n For example, on macOS, this will respect the \"Scrollbar behavior\"\n system setting which by default usually only shows scrollbars while\n actively scrolling or hovering the gutter.\n\n * `never` - Never show a scrollbar. You can still scroll using the mouse,\n keybind actions, etc. but you will not have a visual UI widget showing\n a scrollbar.", "doc": "Control when the scrollbar is shown to scroll the scrollback buffer.\n\nThe default value is `system`.\n\nValid values:\n\n * `system` - Respect the system settings for when to show scrollbars.\n On macOS, we only show scrollbars while actively scrolling or hovering\n the gutter. If the system setting is set to \"Always\", the scrollbar\n will be shown when the mouse is over the gutter area.\n\n * `never` - Never show a scrollbar. You can still scroll using the mouse,\n keybind actions, etc. but you will not have a visual UI widget showing\n a scrollbar.",
"defaults": [ "defaults": [
"system" "system"
] ]
@@ -1222,6 +1247,15 @@
"true" "true"
] ]
}, },
{
"key": "link-osc8",
"zigType": "bool",
"kind": "bool",
"doc": "Enable hyperlinks created with the OSC 8 escape sequence. When disabled,\nOSC 8 hyperlinks are not highlighted, previewed, copied, or opened.\n\nThis does not affect URL matching controlled by `link-url`.\n\nAvailable since: 1.4.0",
"defaults": [
"true"
]
},
{ {
"key": "link-previews", "key": "link-previews",
"zigType": "LinkPreviews", "zigType": "LinkPreviews",
@@ -1307,10 +1341,10 @@
"zigType": "Keybinds", "zigType": "Keybinds",
"kind": "keybind", "kind": "keybind",
"repeatable": true, "repeatable": true,
"doc": "Key bindings. The format is `trigger=action`. Duplicate triggers will\noverwrite previously set values. The list of actions is available in\nthe documentation or using the `ghostty +list-actions` command.\n\nTrigger: `+`-separated list of keys and modifiers. Example: `ctrl+a`,\n`ctrl+shift+b`, `up`.\n\nIf the key is a single Unicode codepoint, the trigger will match\nany presses that produce that codepoint. These are impacted by\nkeyboard layouts. For example, `a` will match the `a` key on a\nQWERTY keyboard, but will match the `q` key on a AZERTY keyboard\n(assuming US physical layout).\n\nFor Unicode codepoints, matching is done by comparing the set of\nmodifiers with the unmodified codepoint. The unmodified codepoint is\nsometimes called an \"unshifted character\" in other software, but all\nmodifiers are considered, not only shift. For example, `ctrl+a` will match\n`a` but not `ctrl+shift+a` (which is `A` on a US keyboard).\n\nFurther, codepoint matching is case-insensitive and the unmodified\ncodepoint is always case folded for comparison. As a result,\n`ctrl+A` configured will match when `ctrl+a` is pressed. Note that\nthis means some key combinations are impossible depending on keyboard\nlayout. For example, `ctrl+_` is impossible on a US keyboard because\n`_` is `shift+-` and `ctrl+shift+-` is not equal to `ctrl+_` (because\nthe modifiers don't match!). More details on impossible key combinations\ncan be found at this excellent source written by Qt developers:\nhttps://doc.qt.io/qt-6/qkeysequence.html#keyboard-layout-issues\n\nPhysical key codes can be specified by using any of the key codes\nas specified by the [W3C specification](https://www.w3.org/TR/uievents-code/).\nFor example, `KeyA` will match the physical `a` key on a US standard\nkeyboard regardless of the keyboard layout. These are case-sensitive.\n\nFor aesthetic reasons, the w3c codes also support snake case. For\nexample, `key_a` is equivalent to `KeyA`. The only exceptions are\nfunction keys, e.g. `F1` is `f1` (no underscore). This is a consequence\nof our internal code using snake case but is purposely supported\nand tested so it is safe to use. It allows an all-lowercase binding\nwhich I find more aesthetically pleasing.\n\nFunction keys such as `insert`, `up`, `f5`, etc. are also specified\nusing the keys as specified by the previously linked W3C specification.\n\nPhysical keys always match with a higher priority than Unicode codepoints,\nso if you specify both `a` and `KeyA`, the physical key will always be used\nregardless of what order they are configured.\n\nThe special key `catch_all` can be used to match any key that is not\notherwise bound. This can be combined with modifiers, for example\n`ctrl+catch_all` will match any key pressed with `ctrl` that is not\notherwise bound. When looking up a binding, Ghostty first tries to match\n`catch_all` with modifiers. If no match is found and the event has\nmodifiers, it falls back to `catch_all` without modifiers.\n\nValid modifiers are `shift`, `ctrl` (alias: `control`), `alt` (alias: `opt`,\n`option`), and `super` (alias: `cmd`, `command`). You may use the modifier\nor the alias. When debugging keybinds, the non-aliased modifier will always\nbe used in output.\n\nNote: The fn or \"globe\" key on keyboards are not supported as a\nmodifier. This is a limitation of the operating systems and GUI toolkits\nthat Ghostty uses.\n\nSome additional notes for triggers:\n\n * modifiers cannot repeat, `ctrl+ctrl+a` is invalid.\n\n * modifiers and keys can be in any order, `shift+a+ctrl` is *weird*,\n but valid.\n\n * only a single key input is allowed, `ctrl+a+b` is invalid.\n\nYou may also specify multiple triggers separated by `\u003e` to require a\nsequence of triggers to activate the action. For example,\n`ctrl+a\u003en=new_window` will only trigger the `new_window` action if the\nuser presses `ctrl+a` followed separately by `n`. In other software, this\nis sometimes called a leader key, a key chord, a key table, etc. There\nis no hardcoded limit on the number of parts in a sequence.\n\nWarning: If you define a sequence as a CLI argument to `ghostty`,\nyou probably have to quote the keybind since `\u003e` is a special character\nin most shells. Example: ghostty --keybind='ctrl+a\u003en=new_window'\n\nA trigger sequence has some special handling:\n\n * Ghostty will wait an indefinite amount of time for the next key in\n the sequence. There is no way to specify a timeout. The only way to\n force the output of a prefix key is to assign another keybind to\n specifically output that key (e.g. `ctrl+a\u003ectrl+a=text:foo`) or\n press an unbound key which will send both keys to the program.\n\n * If an unbound key is pressed during a sequence and a `catch_all`\n binding exists that would `ignore` the input, the entire sequence\n is dropped and nothing happens. Otherwise, the entire sequence is\n encoded and sent to the running program as if no keybind exLine truncated "doc": "Key bindings. The format is `trigger=action`. Duplicate triggers will\noverwrite previously set values. The list of actions is available in\nthe documentation or using the `ghostty +list-actions` command.\n\nTrigger: `+`-separated list of keys and modifiers. Example: `ctrl+a`,\n`ctrl+shift+b`, `up`.\n\nIf the key is a single Unicode codepoint, the trigger will match\nany presses that produce that codepoint. These are impacted by\nkeyboard layouts. For example, `a` will match the `a` key on a\nQWERTY keyboard, but will match the `q` key on a AZERTY keyboard\n(assuming US physical layout).\n\nFor Unicode codepoints, matching is done by comparing the set of\nmodifiers with the unmodified codepoint. The unmodified codepoint is\nsometimes called an \"unshifted character\" in other software, but all\nmodifiers are considered, not only shift. For example, `ctrl+a` will match\n`a` but not `ctrl+shift+a` (which is `A` on a US keyboard).\n\nFurther, codepoint matching is case-insensitive and the unmodified\ncodepoint is always case folded for comparison. As a result,\n`ctrl+A` configured will match when `ctrl+a` is pressed. Note that\nthis means some key combinations are impossible depending on keyboard\nlayout. For example, `ctrl+_` is impossible on a US keyboard because\n`_` is `shift+-` and `ctrl+shift+-` is not equal to `ctrl+_` (because\nthe modifiers don't match!). More details on impossible key combinations\ncan be found at this excellent source written by Qt developers:\nhttps://doc.qt.io/qt-6/qkeysequence.html#keyboard-layout-issues\n\nPhysical key codes can be specified by using any of the key codes\nas specified by the [W3C specification](https://www.w3.org/TR/uievents-code/).\nFor example, `KeyA` will match the physical `a` key on a US standard\nkeyboard regardless of the keyboard layout. These are case-sensitive.\n\nFor aesthetic reasons, the w3c codes also support snake case. For\nexample, `key_a` is equivalent to `KeyA`. The only exceptions are\nfunction keys, e.g. `F1` is `f1` (no underscore). This is a consequence\nof our internal code using snake case but is purposely supported\nand tested so it is safe to use. It allows an all-lowercase binding\nwhich I find more aesthetically pleasing.\n\nFunction keys such as `insert`, `up`, `f5`, etc. are also specified\nusing the keys as specified by the previously linked W3C specification.\n\nPhysical keys always match with a higher priority than Unicode codepoints,\nso if you specify both `a` and `KeyA`, the physical key will always be used\nregardless of what order they are configured.\n\nThe special key `catch_all` can be used to match any key that is not\notherwise bound. This can be combined with modifiers, for example\n`ctrl+catch_all` will match any key pressed with `ctrl` that is not\notherwise bound. When looking up a binding, Ghostty first tries to match\n`catch_all` with modifiers. If no match is found and the event has\nmodifiers, it falls back to `catch_all` without modifiers.\n\nValid modifiers are `shift`, `ctrl` (alias: `control`), `alt` (alias: `opt`,\n`option`), and `super` (alias: `cmd`, `command`). You may use the modifier\nor the alias. When debugging keybinds, the non-aliased modifier will always\nbe used in output.\n\nNote: The fn or \"globe\" key on keyboards are not supported as a\nmodifier. This is a limitation of the operating systems and GUI toolkits\nthat Ghostty uses.\n\nSome additional notes for triggers:\n\n * modifiers cannot repeat, `ctrl+ctrl+a` is invalid.\n\n * modifiers and keys can be in any order, `shift+a+ctrl` is *weird*,\n but valid.\n\n * only a single key input is allowed, `ctrl+a+b` is invalid.\n\nYou may also specify multiple triggers separated by `\u003e` to require a\nsequence of triggers to activate the action. For example,\n`ctrl+a\u003en=new_window` will only trigger the `new_window` action if the\nuser presses `ctrl+a` followed separately by `n`. In other software, this\nis sometimes called a leader key, a key chord, a key table, etc. There\nis no hardcoded limit on the number of parts in a sequence.\n\nWarning: If you define a sequence as a CLI argument to `ghostty`,\nyou probably have to quote the keybind since `\u003e` is a special character\nin most shells. Example: ghostty --keybind='ctrl+a\u003en=new_window'\n\nA trigger sequence has some special handling:\n\n * Ghostty will wait an indefinite amount of time for the next key in\n the sequence. There is no way to specify a timeout. The only way to\n force the output of a prefix key is to assign another keybind to\n specifically output that key (e.g. `ctrl+a\u003ectrl+a=text:foo`) or\n press an unbound key which will send both keys to the program.\n\n * If an unbound key is pressed during a sequence and a `catch_all`\n binding exists that would `ignore` the input, the entire sequence\n is dropped and nothing happens. Otherwise, the entire sequence is\n encoded and sent to the running program as if no keybind exLine truncated
"defaults": [ "defaults": [
"super+shift+,=reload_config", "super+shift+,=reload_config",
"super+,=open_config", "super+,=open_config:os_open",
"copy=copy_to_clipboard:mixed", "copy=copy_to_clipboard:mixed",
"paste=paste_from_clipboard", "paste=paste_from_clipboard",
"super+c=copy_to_clipboard:mixed", "super+c=copy_to_clipboard:mixed",
@@ -1397,9 +1431,9 @@
"super+alt+i=inspector:toggle", "super+alt+i=inspector:toggle",
"super+ctrl+f=toggle_fullscreen", "super+ctrl+f=toggle_fullscreen",
"super+shift+v=paste_from_selection", "super+shift+v=paste_from_selection",
"super+arrow_right=text:\\\\x05", "super+arrow_right=text:\\x05",
"super+arrow_left=text:\\\\x01", "super+arrow_left=text:\\x01",
"super+backspace=text:\\\\x15", "super+backspace=text:\\x15",
"alt+arrow_left=esc:b", "alt+arrow_left=esc:b",
"alt+arrow_right=esc:f" "alt+arrow_right=esc:f"
] ]
@@ -1435,9 +1469,14 @@
}, },
{ {
"key": "window-padding-balance", "key": "window-padding-balance",
"zigType": "bool", "zigType": "WindowPaddingBalance",
"kind": "bool", "kind": "enum",
"doc": "The viewport dimensions are usually not perfectly divisible by the cell\nsize. In this case, some extra padding on the end of a column and the bottom\nof the final row may exist. If this is `true`, then this extra padding\nis automatically balanced between all four edges to minimize imbalance on\none side. If this is `false`, the top left grid cell will always hug the\nedge with zero padding other than what may be specified with the other\n`window-padding` options.\n\nIf other `window-padding` fields are set and this is `true`, this will still\napply. The other padding is applied first and may affect how many grid cells\nactually exist, and this is applied last in order to balance the padding\ngiven a certain viewport size and grid cell size.", "values": [
"false",
"true",
"equal"
],
"doc": "The viewport dimensions are usually not perfectly divisible by the cell\nsize. In this case, some extra padding on the end of a column and the bottom\nof the final row may exist. If this is `true`, then this extra padding\nis automatically balanced between all four edges to minimize imbalance on\none side. If this is `false`, the top left grid cell will always hug the\nedge with zero padding other than what may be specified with the other\n`window-padding` options.\n\nIf other `window-padding` fields are set and this is `true`, this will still\napply. The other padding is applied first and may affect how many grid cells\nactually exist, and this is applied last in order to balance the padding\ngiven a certain viewport size and grid cell size.\n\nValid values are:\n\n* `false` - No balancing is applied.\n* `true` - Balance the padding, but cap the top padding to avoid\n excessive space above the first row. Any excess is shifted to the\n bottom.\n* `equal` - Balance the padding equally on all sides without any\n top-padding cap. (Available since: 1.4.0)",
"defaults": [ "defaults": [
"false" "false"
] ]
@@ -1679,6 +1718,20 @@
"" ""
] ]
}, },
{
"key": "drag-handle",
"zigType": "DragHandle",
"kind": "enum",
"values": [
"always",
"auto",
"never"
],
"doc": "Controls when drag handles are shown over splits,\nallowing splits to be rearranged with mouse controls.\n\nValid values:\n\n - `always`\n\n Always display the drag handle, even when there's only one split.\n\n - `auto` *(default)*\n\n Automatically show and hide the drag handle.\n\n On Linux, the handle is only shown when there are two or\n more splits present.\n\n On macOS, the handle is only hidden when there's one split\n in **fullscreen** mode, otherwise it's shown when hovered.\n\n - `never`\n\n Never show the drag handle. Splits then cannot be rearranged with\n mouse controls.\n\nAvailable since: 1.4.0.",
"defaults": [
"auto"
]
},
{ {
"key": "resize-overlay", "key": "resize-overlay",
"zigType": "ResizeOverlay", "zigType": "ResizeOverlay",
@@ -1757,6 +1810,19 @@
"allow" "allow"
] ]
}, },
{
"key": "clipboard-write-limit-bytes",
"zigType": "Limit(usize, 64 * 1024 * 1024)",
"kind": "int",
"values": [
"unlimited"
],
"min": 0,
"doc": "The maximum size in bytes of a single clipboard write by a program\nrunning in the terminal via the Kitty clipboard protocol (OSC 5522).\nThis doesn't apply to OSC 52, which is limited by the maximum length\nof an escape sequence hardcoded into Ghostty for now.\n\nData beyond the limit fails the entire write with an `EFBIG` status,\ndiscards the transaction, and leaves the clipboard untouched. Later\nwrite-related packets are ignored until a new write begins.\n\nThe data is buffered in memory while the write is in progress, so\nthis limit bounds how much memory a program can make Ghostty\nallocate per write. A future improvement will attempt to spool large\nwrites to disk.\n\nThe default is 64 MiB, the minimum a conforming implementation must\naccept. Set this to `unlimited` to remove the limit, allowing writes\nbounded only by available memory. A value of `0` rejects every non-empty\nwrite. To reject clipboard writes entirely, use `clipboard-write = deny`\ninstead.\n\nThis can be changed at runtime and applies to writes that begin\nafter the change.\n\nAvailable since: 1.4.0",
"defaults": [
"67108864"
]
},
{ {
"key": "clipboard-trim-trailing-spaces", "key": "clipboard-trim-trailing-spaces",
"zigType": "bool", "zigType": "bool",
@@ -1770,7 +1836,7 @@
"key": "clipboard-paste-protection", "key": "clipboard-paste-protection",
"zigType": "bool", "zigType": "bool",
"kind": "bool", "kind": "bool",
"doc": "Require confirmation before pasting text that appears unsafe. This helps\nprevent a \"copy/paste attack\" where a user may accidentally execute unsafe\ncommands by pasting text with newlines.", "doc": "Require confirmation before pasting text that appears unsafe. This helps\nprevent a \"copy/paste attack\" where a user may accidentally execute unsafe\ncommands by pasting text with newlines or carriage returns.",
"defaults": [ "defaults": [
"true" "true"
] ]
@@ -1809,13 +1875,14 @@
"zigType": "CopyOnSelect", "zigType": "CopyOnSelect",
"kind": "enum", "kind": "enum",
"values": [ "values": [
"false", "none",
"true", "primary",
"clipboard" "clipboard",
"both"
], ],
"doc": "Whether to automatically copy selected text to the clipboard. `true`\nwill prefer to copy to the selection clipboard, otherwise it will copy to\nthe system clipboard.\n\nThe value `clipboard` will always copy text to the selection clipboard\nas well as the system clipboard.\n\nMiddle-click paste will always use the selection clipboard. Middle-click\npaste is always enabled even if this is `false`.\n\nThe default value is true on Linux and macOS.", "doc": "Whether to automatically copy selected text to the clipboard.\n\nValid values:\n\n* `none` - Do not copy selected text automatically.\n\n* `primary` - On Linux, copy to the selection clipboard only. This has no\n effect on macOS. (Available since: 1.4.0)\n\n* `clipboard` - Copy text to the system clipboard only.\n\n* `both` - Copy to both clipboards on Linux, and only the system clipboard\n on macOS. (Available since: 1.4.0)\n\nFor backward compatibility and convenience, a value of `true` is the same as\n`primary` on Linux and `clipboard` on macOS, and `false` is an alias for\n`none`.\n\nThe default value is `primary` on Linux and `none` otherwise.",
"defaults": [ "defaults": [
"true" "none"
] ]
}, },
{ {
@@ -1834,6 +1901,20 @@
"context-menu" "context-menu"
] ]
}, },
{
"key": "middle-click-action",
"zigType": "MiddleClickAction",
"kind": "enum",
"values": [
"primary-paste",
"clipboard-paste",
"ignore"
],
"doc": "The action to take when the user middle-clicks on the terminal surface.\n\nValid values:\n * `primary-paste` - Paste from the selection clipboard on Linux.\n Does nothing on macOS.\n * `clipboard-paste` - Paste from the system clipboard.\n * `ignore` - Do nothing, ignore the middle click.\n\nThe default value is `primary-paste`.",
"defaults": [
"primary-paste"
]
},
{ {
"key": "click-repeat-interval", "key": "click-repeat-interval",
"zigType": "u32", "zigType": "u32",
@@ -1964,7 +2045,7 @@
"mouse", "mouse",
"macos-menu-bar" "macos-menu-bar"
], ],
"doc": "The screen where the quick terminal should show up.\n\nValid values are:\n\n * `main` - The screen that the operating system recommends as the main\n screen. On macOS, this is the screen that is currently receiving\n keyboard input. This screen is defined by the operating system and\n not chosen by Ghostty.\n\n * `mouse` - The screen that the mouse is currently hovered over.\n\n * `macos-menu-bar` - The screen that contains the macOS menu bar as\n set in the display settings on macOS. This is a bit confusing because\n every screen on macOS has a menu bar, but this is the screen that\n contains the primary menu bar.\n\nThe default value is `main` because this is the recommended screen\nby the operating system.\n\nOnly implemented on macOS.", "doc": "The screen where the quick terminal should show up.\n\nValid values are:\n\n * `main` - The screen that the operating system recommends as the main\n screen. On macOS, this is the screen that is currently receiving\n keyboard input. This screen is defined by the operating system and\n not chosen by Ghostty.\n\n * `mouse` - The screen that the mouse is currently hovered over.\n\n * `macos-menu-bar` - The screen that contains the macOS menu bar as\n set in the display settings on macOS. This is a bit confusing because\n every screen on macOS has a menu bar, but this is the screen that\n contains the primary menu bar.\n\nThe default value is `main` because this is the recommended screen\nby the operating system.\n\nOn macOS, `macos-menu-bar` uses the screen containing the menu bar.\nOn Linux/Wayland, `macos-menu-bar` is treated as equivalent to `main`.\n\nNote: On Linux, there is no universal concept of a \"primary\" monitor.\nGhostty uses the compositor-reported primary output when available and\nfalls back to the first monitor reported by GDK if no primary output can\nbe resolved.",
"defaults": [ "defaults": [
"main" "main"
] ]
@@ -2044,7 +2125,7 @@
"ssh-terminfo", "ssh-terminfo",
"path" "path"
], ],
"doc": "Shell integration features to enable. These require our shell integration\nto be loaded, either automatically via shell-integration or manually.\n\nThe format of this is a list of features to enable separated by commas. If\nyou prefix a feature with `no-` then it is disabled. If you omit a feature,\nits default value is used, so you must explicitly disable features you don't\nwant. You can also use `true` or `false` to turn all features on or off.\n\nExample: `cursor`, `no-cursor`, `sudo`, `no-sudo`, `title`, `no-title`\n\nAvailable features:\n\n * `cursor` - Set the cursor to a bar at the prompt.\n\n * `sudo` - Set sudo wrapper to preserve terminfo.\n\n * `title` - Set the window title via shell integration.\n\n * `ssh-env` - Enable SSH environment variable compatibility. Automatically\n converts TERM from `xterm-ghostty` to `xterm-256color` when connecting to\n remote hosts and propagates COLORTERM, TERM_PROGRAM, and TERM_PROGRAM_VERSION.\n Whether or not these variables will be accepted by the remote host(s) will\n depend on whether or not the variables are allowed in their sshd_config.\n (Available since: 1.2.0)\n\n * `ssh-terminfo` - Enable automatic terminfo installation on remote hosts.\n Attempts to install Ghostty's terminfo entry using `infocmp` and `tic` when\n connecting to hosts that lack it. Requires `infocmp` to be available locally\n and `tic` to be available on remote hosts. Once terminfo is installed on a\n remote host, it will be automatically \"cached\" to avoid repeat installations.\n If desired, the `+ssh-cache` CLI action can be used to manage the installation\n cache manually using various arguments.\n (Available since: 1.2.0)\n\n * `path` - Add Ghostty's binary directory to PATH. This ensures the `ghostty`\n command is available in the shell even if shell init scripts reset PATH.\n This is particularly useful on macOS where PATH is often overridden by\n system scripts. The directory is only added if not already present.\n\nSSH features work independently and can be combined for optimal experience:\nwhen both `ssh-env` and `ssh-terminfo` are enabled, Ghostty will install its\nterminfo on remote hosts and use `xterm-ghostty` as TERM, falling back to\n`xterm-256color` with environment variables if terminfo installation fails.", "doc": "Shell integration features to enable. These require our shell integration\nto be loaded, either automatically via shell-integration or manually.\n\nThe format of this is a list of features to enable separated by commas. If\nyou prefix a feature with `no-` then it is disabled. If you omit a feature,\nits default value is used, so you must explicitly disable features you don't\nwant. You can also use `true` or `false` to turn all features on or off.\n\nExample: `cursor`, `no-cursor`, `sudo`, `no-sudo`, `title`, `no-title`\n\nAvailable features:\n\n * `cursor` - Set the cursor to a bar at the prompt.\n\n * `sudo` - Set sudo wrapper to preserve terminfo.\n\n * `title` - Set the window title via shell integration.\n\n * `ssh-env` - Enable SSH environment variable compatibility. Automatically\n converts TERM from `xterm-ghostty` to `xterm-256color` when connecting to\n remote hosts and propagates COLORTERM, TERM_PROGRAM, and TERM_PROGRAM_VERSION.\n Whether or not these variables will be accepted by the remote host(s) will\n depend on whether or not the variables are allowed in their sshd_config.\n (Available since: 1.2.0)\n\n * `ssh-terminfo` - Enable automatic terminfo installation on remote hosts.\n Attempts to install Ghostty's embedded terminfo entry using `tic` on local\n cache misses. Requires `tic` to be available on remote hosts. Successful\n installations are cached locally to avoid repeat installations.\n If desired, the `+ssh-cache` CLI action can be used to manage the installation\n cache manually using various arguments.\n (Available since: 1.2.0)\n\n * `path` - Add Ghostty's binary directory to PATH. This ensures the `ghostty`\n command is available in the shell even if shell init scripts reset PATH.\n This is particularly useful on macOS where PATH is often overridden by\n system scripts. The directory is only added if not already present.\n\nSSH features work independently and can be combined for optimal experience:\nwhen both `ssh-env` and `ssh-terminfo` are enabled, Ghostty will install its\nterminfo on remote hosts and use `xterm-ghostty` as TERM, falling back to\n`xterm-256color` with environment variables if terminfo installation fails.",
"defaults": [ "defaults": [
"cursor,no-sudo,title,no-ssh-env,no-ssh-terminfo,path" "cursor,no-sudo,title,no-ssh-env,no-ssh-terminfo,path"
] ]
@@ -2055,10 +2136,11 @@
"kind": "text", "kind": "text",
"repeatable": true, "repeatable": true,
"hint": "title:NAME,action:ACTION[,description:TEXT]", "hint": "title:NAME,action:ACTION[,description:TEXT]",
"doc": "Custom entries into the command palette.\n\nEach entry requires the title, the corresponding action, and an optional\ndescription. Each field should be prefixed with the field name, a colon\n(`:`), and then the specified value. The syntax for actions is identical\nto the one for keybind actions. Whitespace in between fields is ignored.\n\nIf you need to embed commas or any other special characters in the values,\nenclose the value in double quotes and it will be interpreted as a Zig\nstring literal. This is also useful for including whitespace at the\nbeginning or the end of a value. See the\n[Zig documentation](https://ziglang.org/documentation/master/#Escape-Sequences)\nfor more information on string literals. Note that multiline string literals\nare not supported.\n\nDouble quotes can not be used around the field names.\n\n```ini\ncommand-palette-entry = title:Reset Font Style, action:csi:0m\ncommand-palette-entry = title:Crash on Main Thread,description:Causes a crash on the main (UI) thread.,action:crash:main\ncommand-palette-entry = title:Focus Split: Right,description:\"Focus the split to the right, if it exists.\",action:goto_split:right\ncommand-palette-entry = title:\"Ghostty\",description:\"Add a little Ghostty to your terminal.\",action:\"text:\\xf0\\x9f\\x91\\xbb\"\n```\n\nBy default, the command palette is preloaded with most actions that might\nbe useful in an interactive setting yet do not have easily accessible or\nmemorizable shortcuts. The default entries can be cleared by setting this\nsetting to an empty value:\n\n```ini\ncommand-palette-entry =\n```\n\nAvailable since: 1.2.0", "doc": "Custom entries into the command palette.\n\nEach entry requires the title, the corresponding action, and an optional\ndescription. Each field should be prefixed with the field name, a colon\n(`:`), and then the specified value. The syntax for actions is identical\nto the one for keybind actions. Whitespace in between fields is ignored.\n\nIf you need to embed commas or any other special characters in the values,\nenclose the value in double quotes and it will be interpreted as a Zig\nstring literal. This is also useful for including whitespace at the\nbeginning or the end of a value. See the\n[Zig documentation](https://ziglang.org/documentation/master/#Escape-Sequences)\nfor more information on string literals. Note that multiline string literals\nare not supported.\n\nDouble quotes can not be used around the field names.\n\n```ini\ncommand-palette-entry = title:Reset Font Style, action:csi:0m\ncommand-palette-entry = title:Crash on Main Thread,description:Causes a crash on the main (UI) thread.,action:crash:main\ncommand-palette-entry = title:Focus Split: Right,description:\"Focus the split to the right, if it exists.\",action:goto_split:right\ncommand-palette-entry = title:\"Ghostty\",description:\"Add a little Ghostty to your terminal.\",action:\"text:\\xf0\\x9f\\x91\\xbb\"\n```\n\nThere are some additional special values that can be specified for\ncommand-palette-entry:\n\n * `command-palette-entry=clear` will clear all command entries. Warning: this\n removes ALL entries up to this point, including the default\n entries. Available since: 1.4.0\n\nBy default, the command palette is preloaded with most actions that might\nbe useful in an interactive setting yet do not have easily accessible or\nmemorizable shortcuts. The default entries can be restored by setting this\nsetting to an empty value:\n\n```ini\ncommand-palette-entry =\n```\n\nAvailable since: 1.2.0",
"defaults": [ "defaults": [
"title:\"Change Tab Title\\xe2\\x80\\xa6\",description:\"Prompt for a new title for the current tab.\",action:\"prompt_tab_title\"", "title:\"Change Tab Title…\",description:\"Prompt for a new title for the current tab.\",action:\"prompt_tab_title\"",
"title:\"Change Terminal Title\\xe2\\x80\\xa6\",description:\"Prompt for a new title for the current terminal.\",action:\"prompt_surface_title\"", "title:\"Change Terminal Title…\",description:\"Prompt for a new title for the current terminal.\",action:\"prompt_surface_title\"",
"title:\"Change Window Title…\",description:\"Prompt for a new title for the current window.\",action:\"prompt_window_title\"",
"title:\"Check for Updates\",description:\"Check for updates to the application.\",action:\"check_for_updates\"", "title:\"Check for Updates\",description:\"Check for updates to the application.\",action:\"check_for_updates\"",
"title:\"Clear Screen\",description:\"Clear the screen and scrollback.\",action:\"clear_screen\"", "title:\"Clear Screen\",description:\"Clear the screen and scrollback.\",action:\"clear_screen\"",
"title:\"Close All Windows\",description:\"Close all windows.\",action:\"close_all_windows\"", "title:\"Close All Windows\",description:\"Close all windows.\",action:\"close_all_windows\"",
@@ -2102,14 +2184,16 @@
"title:\"Focus Split: Up\",description:\"Focus the split above, if it exists.\",action:\"goto_split:up\"", "title:\"Focus Split: Up\",description:\"Focus the split above, if it exists.\",action:\"goto_split:up\"",
"title:\"Focus Window: Next\",description:\"Focus the next window, if any.\",action:\"goto_window:next\"", "title:\"Focus Window: Next\",description:\"Focus the next window, if any.\",action:\"goto_window:next\"",
"title:\"Focus Window: Previous\",description:\"Focus the previous window, if any.\",action:\"goto_window:previous\"", "title:\"Focus Window: Previous\",description:\"Focus the previous window, if any.\",action:\"goto_window:previous\"",
"title:\"Ghostty\",description:\"Put a little Ghostty in your terminal.\",action:\"text:\\xf0\\x9f\\x91\\xbb\"", "title:\"Ghostty\",description:\"Put a little Ghostty in your terminal.\",action:\"text:👻\"",
"title:\"Increase Font Size\",description:\"Increase the font size by 1 point.\",action:\"increase_font_size:1\"", "title:\"Increase Font Size\",description:\"Increase the font size by 1 point.\",action:\"increase_font_size:1\"",
"title:\"Move Tab Left\",description:\"Move the current tab to the left.\",action:\"move_tab:-1\"", "title:\"Move Tab Left\",description:\"Move the current tab to the left.\",action:\"move_tab:-1\"",
"title:\"Move Tab Right\",description:\"Move the current tab to the right.\",action:\"move_tab:1\"", "title:\"Move Tab Right\",description:\"Move the current tab to the right.\",action:\"move_tab:1\"",
"title:\"Move Tab to New Window\",description:\"Move the current tab to a new window.\",action:\"move_tab_to_new_window\"",
"title:\"New Tab\",description:\"Open a new tab.\",action:\"new_tab\"", "title:\"New Tab\",description:\"Open a new tab.\",action:\"new_tab\"",
"title:\"New Window\",description:\"Open a new window.\",action:\"new_window\"", "title:\"New Window\",description:\"Open a new window.\",action:\"new_window\"",
"title:\"Next Search Result\",description:\"Navigate to the next search result, if any.\",action:\"navigate_search:next\"", "title:\"Next Search Result\",description:\"Navigate to the next search result, if any.\",action:\"navigate_search:next\"",
"title:\"Open Config\",description:\"Open the config file.\",action:\"open_config\"", "title:\"Open Config in New Terminal Window\",description:\"Open the config file in a new window using $EDITOR or $VISUAL.\",action:\"open_config:new_window\"",
"title:\"Open Config Using OS editor\",description:\"Open the config file with the OS's default editor.\",action:\"open_config:os_open\"",
"title:\"Paste from Clipboard\",description:\"Paste the contents of the main clipboard.\",action:\"paste_from_clipboard\"", "title:\"Paste from Clipboard\",description:\"Paste the contents of the main clipboard.\",action:\"paste_from_clipboard\"",
"title:\"Paste from Selection\",description:\"Paste the contents of the selection clipboard.\",action:\"paste_from_selection\"", "title:\"Paste from Selection\",description:\"Paste the contents of the selection clipboard.\",action:\"paste_from_selection\"",
"title:\"Previous Search Result\",description:\"Navigate to the previous search result, if any.\",action:\"navigate_search:previous\"", "title:\"Previous Search Result\",description:\"Navigate to the previous search result, if any.\",action:\"navigate_search:previous\"",
@@ -2170,6 +2254,40 @@
"false" "false"
] ]
}, },
{
"key": "vt-window-resize-allowed",
"zigType": "bool",
"kind": "bool",
"doc": "If true, allows the running program to resize the window using the\nxterm `CSI 8 ; rows ; columns t` escape sequence. If a parameter is zero\nor omitted, the current size of that dimension is kept. Sizes smaller\nthan 40 columns by 10 rows are raised to that size so that a program\ncan't shrink the window to hide its output.\n\nThe request is ignored if the terminal is in a split, in a window with\nmultiple tabs, or the quick terminal, or if the window manager controls\nthe window size, such as when it is fullscreen, maximized, or tiled.\nSizes larger than the screen are clamped to the screen.\n\nThis is disabled by default because it lets any program, including one\nrunning on a remote machine, change the size of your window.\n\nAvailable since: 1.4.0",
"defaults": [
"false"
]
},
{
"key": "vt-xt-checksum-report",
"zigType": "bool",
"kind": "bool",
"doc": "Enables or disables checksum reporting (DECRQCRA, `CSI Pi ; Pg ; Pt ;\nPl ; Pb ; Pr * y`). This escape sequence allows the running program to\nask for a checksum of an area of the screen. Terminal test suites use it\nto check what is on the screen.\n\nThis is disabled by default because a program can ask for the checksum of\none cell at a time and so read back everything on the screen, including\nthe output of other programs.\n\nWhile this is disabled, XTCHECKSUM (`CSI Ps # y`), which changes how the\nchecksum is calculated, is ignored as well.\n\nAvailable since: 1.4.0",
"defaults": [
"false"
]
},
{
"key": "vt-xt-checksum-extension",
"zigType": "XtChecksumExtension",
"kind": "flags",
"flags": [
"negate",
"attributes",
"trim",
"undrawn",
"full"
],
"doc": "How the checksum reported for DECRQCRA (see `vt-xt-checksum-report`) is\ncalculated. This is the calculation used after a reset, like xterm's\n`checksumExtension` resource. A running program can change it with\nXTCHECKSUM (`CSI Ps # y`) until the next reset. The default is the\ncalculation of a real DEC terminal.\n\nValid values are:\n\n * `negate` - Report the negated sum, as DEC terminals do.\n\n * `attributes` - Add bold, underline, blink, inverse, invisible, and\n protected attributes to the value of each cell.\n\n * `trim` - Omit plain spaces other than the first cell of the area.\n\n * `undrawn` - Count cells that were never written to as spaces\n instead of skipping them.\n\n * `full` - Use the full codepoint of each cell instead of the DEC\n 8-bit value.\n\nPrefix a value with `no-` to disable it. For example, esctest expects\n`no-negate,no-attributes,no-trim,full` when run with `--xterm-checksum`,\nwhich is xterm's `checksumExtension: 23`.\n\nThe bits of xterm's resource are described in its\n[man page](https://github.com/ThomasDickey/xterm-snapshots/blob/xterm-411/xterm.man#L2870-L2896)\nand its [control sequence documentation](https://github.com/ThomasDickey/xterm-snapshots/blob/xterm-411/ctlseqs.ms#L2562-L2569),\nbut where those disagree with xterm's\n[implementation](https://github.com/ThomasDickey/xterm-snapshots/blob/xterm-411/screen.c#L3162-L3290),\nGhostty follows the implementation. The documentation describes bit 3\nas omitting cells that were never written to, but xterm skips those\ncells by default and counts them as spaces with the bit set, which is\n`undrawn` here. It also lists a bit 5 that xterm doesn't implement.\n\nAvailable since: 1.4.0",
"defaults": [
"negate,attributes,trim,no-undrawn,no-full"
]
},
{ {
"key": "custom-shader", "key": "custom-shader",
"zigType": "RepeatablePath", "zigType": "RepeatablePath",
@@ -2543,6 +2661,15 @@
"top" "top"
] ]
}, },
{
"key": "gtk-tabs-inverted",
"zigType": "bool",
"kind": "bool",
"doc": "If true, the close button of each tab is shown at the start of the tab\n(the left, in left-to-right languages) and the tab's icon at the end.\nThis applies to both the tab bar and the tab overview. GTK only.\n\nAvailable since: 1.4.0",
"defaults": [
"false"
]
},
{ {
"key": "gtk-titlebar-hide-when-maximized", "key": "gtk-titlebar-hide-when-maximized",
"zigType": "bool", "zigType": "bool",
@@ -2588,6 +2715,15 @@
"true" "true"
] ]
}, },
{
"key": "gtk-horizontal-tab-scroll",
"zigType": "bool",
"kind": "bool",
"doc": "If `true` (default), then two-finger horizontal scrolling on a touchpad\nwill switch between tabs. Scrolling left goes to the next tab and\nscrolling right goes to the previous tab. Set this to `false` to\ndisable this behavior.\n\nAvailable since 1.4.0.",
"defaults": [
"true"
]
},
{ {
"key": "gtk-custom-css", "key": "gtk-custom-css",
"zigType": "RepeatablePath", "zigType": "RepeatablePath",
@@ -2707,5 +2843,67 @@
"doc": "The size of the quick terminal.\n\nThe size can be specified either as a percentage of the screen dimensions\n(height/width), or as an absolute size in pixels. Percentage values are\nsuffixed with `%` (e.g. `20%`) while pixel values are suffixed with `px`\n(e.g. `300px`). A bare value without a suffix is a config error.\n\nWhen only one size is specified, the size parameter affects the size of\nthe quick terminal on its *primary axis*, which depends on its position:\nheight for quick terminals placed on the top or bottom, and width for left\nor right. The primary axis of a centered quick terminal depends on the\nmonitor's orientation: height when on a landscape monitor, and width when\non a portrait monitor.\n\nThe *secondary axis* would be maximized for non-center positioned\nquick terminals unless another size parameter is specified, separated\nfrom the first by a comma (`,`). Percentage and pixel sizes can be mixed\ntogether: for instance, a size of `50%,500px` for a top-positioned quick\nterminal would be half a screen tall, and 500 pixels wide.\n\nAvailable since: 1.2.0", "doc": "The size of the quick terminal.\n\nThe size can be specified either as a percentage of the screen dimensions\n(height/width), or as an absolute size in pixels. Percentage values are\nsuffixed with `%` (e.g. `20%`) while pixel values are suffixed with `px`\n(e.g. `300px`). A bare value without a suffix is a config error.\n\nWhen only one size is specified, the size parameter affects the size of\nthe quick terminal on its *primary axis*, which depends on its position:\nheight for quick terminals placed on the top or bottom, and width for left\nor right. The primary axis of a centered quick terminal depends on the\nmonitor's orientation: height when on a landscape monitor, and width when\non a portrait monitor.\n\nThe *secondary axis* would be maximized for non-center positioned\nquick terminals unless another size parameter is specified, separated\nfrom the first by a comma (`,`). Percentage and pixel sizes can be mixed\ntogether: for instance, a size of `50%,500px` for a top-positioned quick\nterminal would be half a screen tall, and 500 pixels wide.\n\nAvailable since: 1.2.0",
"notListed": true "notListed": true
} }
],
"compat": [
{
"key": "background-blur-radius",
"renamedTo": "background-blur"
},
{
"key": "adw-toolbar-style",
"renamedTo": "gtk-toolbar-style"
},
{
"key": "gtk-tabs-location",
"values": [
"hidden"
],
"sets": [
"window-show-tab-bar"
]
},
{
"key": "cursor-invert-fg-bg",
"sets": [
"cursor-color",
"cursor-text"
]
},
{
"key": "selection-invert-fg-bg",
"sets": [
"selection-foreground",
"selection-background"
]
},
{
"key": "bold-is-bright",
"sets": [
"bold-color"
]
},
{
"key": "gtk-single-instance",
"values": [
"desktop"
]
},
{
"key": "macos-dock-drop-behavior",
"values": [
"window"
]
},
{
"key": "scrollback-limit",
"renamedTo": "scrollback-limit-bytes"
},
{
"key": "copy-on-select",
"values": [
"true",
"false"
]
}
] ]
} }
+54
View File
@@ -113,6 +113,60 @@ func TestValidate(t *testing.T) {
} }
} }
// Types and compatibility entries that arrived with Ghostty 1.4.
func TestGhostty14Options(t *testing.T) {
s, err := Embedded()
if err != nil {
t.Fatal(err)
}
cases := []struct {
key, value string
ok bool
}{
{"scrollback-limit-lines", "unlimited", true},
{"scrollback-limit-bytes", "100000000", true},
{"scrollback-limit-bytes", "-1", false},
{"clipboard-write-limit-bytes", "lots", false},
{"window-padding-balance", "equal", true},
{"window-padding-balance", "maybe", false},
{"copy-on-select", "both", true},
{"copy-on-select", "true", true}, // old value, still read
{"copy-on-select", "yes", false},
{"gtk-single-instance", "desktop", true},
}
for _, c := range cases {
o := s.Lookup(c.key)
if o == nil {
t.Fatalf("%s missing", c.key)
}
if err := o.Validate(c.value); (err == nil) != c.ok {
t.Errorf("%s = %q: err = %v, want ok=%v", c.key, c.value, err, c.ok)
}
}
if !s.Lookup("copy-on-select").IsOldValue("true") || s.Lookup("copy-on-select").IsOldValue("both") {
t.Error("copy-on-select: old values wrong")
}
if c := s.OldKey("scrollback-limit"); c == nil || c.RenamedTo != "scrollback-limit-bytes" {
t.Errorf("OldKey(scrollback-limit) = %+v", c)
}
if c := s.OldKey("bold-is-bright"); c == nil || c.RenamedTo != "" || len(c.Sets) != 1 || c.Sets[0] != "bold-color" {
t.Errorf("OldKey(bold-is-bright) = %+v", c)
}
if s.OldKey("copy-on-select") != nil {
t.Error("a current option is not an old key")
}
if got := s.OldNames("scrollback-limit-bytes"); len(got) != 1 || got[0] != "scrollback-limit" {
t.Errorf("OldNames(scrollback-limit-bytes) = %v", got)
}
// Refreshing from the installed Ghostty keeps the old values.
s.Refresh("# Copy\ncopy-on-select = none\n", "1.4.0")
if !s.Lookup("copy-on-select").IsOldValue("false") {
t.Error("old values lost on refresh")
}
}
func TestFlags(t *testing.T) { func TestFlags(t *testing.T) {
o := &Option{Kind: KindFlags, Flags: []string{"cursor", "sudo", "title"}, Defaults: []string{"cursor,no-sudo,title"}} o := &Option{Kind: KindFlags, Flags: []string{"cursor", "sudo", "title"}, Defaults: []string{"cursor,no-sudo,title"}}
st := o.ParseFlags("no-cursor") st := o.ParseFlags("no-cursor")
+6
View File
@@ -35,6 +35,9 @@ func (o *Option) Validate(raw string) error {
// An empty value resets the option to its default; always allowed. // An empty value resets the option to its default; always allowed.
return nil return nil
} }
if contains(o.OldValues, v) {
return nil
}
switch o.Kind { switch o.Kind {
case KindBool: case KindBool:
if v != "true" && v != "false" { if v != "true" && v != "false" {
@@ -47,6 +50,9 @@ func (o *Option) Validate(raw string) error {
case KindFlags: case KindFlags:
return o.validateFlags(v) return o.validateFlags(v)
case KindInt: case KindInt:
if contains(o.Values, v) { // e.g. "unlimited"
return nil
}
n, err := strconv.ParseInt(v, 10, 64) n, err := strconv.ParseInt(v, 10, 64)
if err != nil { if err != nil {
return errors.New("expected a whole number") return errors.New("expected a whole number")
+57 -8
View File
@@ -195,14 +195,62 @@ func (a *App) option(key string) *schema.Option {
Kind: schema.KindText, Kind: schema.KindText,
Repeatable: len(a.file.GetAll(key)) > 1, Repeatable: len(a.file.GetAll(key)) > 1,
Category: catSet, Category: catSet,
Doc: "This key is not a known Ghostty " + a.sch.GhosttyVersion + " option. " + }
v := a.sch.GhosttyVersion
switch c := a.sch.OldKey(key); {
case c != nil && c.RenamedTo != "":
o.Doc = "This is the old name of `" + c.RenamedTo + "`. Ghostty " + v + " still reads it, " +
"so it keeps working, but it is no longer documented. " +
"Press enter to rename it to `" + c.RenamedTo + "`; the value stays as it is."
if n := a.sch.Lookup(c.RenamedTo); n != nil && n.Doc != "" {
o.Doc += "\n\n" + n.Doc
}
case c != nil:
o.Doc = "This is an old option that Ghostty " + v + " still reads for compatibility. " +
"It now sets `" + strings.Join(c.Sets, "`, `") + "` instead. " +
"Set those directly, then press r to remove this line."
default:
o.Doc = "This key is not a known Ghostty " + v + " option. " +
"It may be misspelled or belong to a different Ghostty version. " + "It may be misspelled or belong to a different Ghostty version. " +
"Ghostty will report it as an error; press r to remove it.", "Ghostty will report it as an error; press r to remove it."
} }
a.unknown[key] = o a.unknown[key] = o
return o return o
} }
// oldName returns the old key under which the file sets o, and its value.
func (a *App) oldName(o *schema.Option) (key, value string, ok bool) {
for _, old := range a.sch.OldNames(o.Key) {
if v, found := a.file.Get(old); found {
key, value, ok = old, v, true
}
}
return key, value, ok
}
// renameKey gives the entries of an old key their current name, keeping
// their values and their place in the file, and selects the result.
func (a *App) renameKey(old, new string) {
before := a.file.Clone()
a.file.Rename(old, new)
a.pushUndo(before, old)
a.setStatus("Renamed "+old+" to "+new+".", stChanged)
a.rebuild()
for i, o := range a.opts {
if o.Key == new {
a.optIdx = i
}
}
}
func (a *App) pushUndo(before *config.File, key string) {
a.rev++
a.undo = append(a.undo, undoEntry{file: before, key: key})
if len(a.undo) > 500 {
a.undo = a.undo[1:]
}
}
func (a *App) selected() *schema.Option { func (a *App) selected() *schema.Option {
if a.optIdx >= 0 && a.optIdx < len(a.opts) { if a.optIdx >= 0 && a.optIdx < len(a.opts) {
return a.opts[a.optIdx] return a.opts[a.optIdx]
@@ -516,8 +564,13 @@ func (a *App) updateBrowse(km tea.KeyMsg) tea.Cmd {
return nil return nil
} }
// edit opens the editor for o. Booleans are toggled directly. // edit opens the editor for o. Booleans are toggled directly, and the old
// name of an option is renamed to the current one.
func (a *App) edit(o *schema.Option) tea.Cmd { func (a *App) edit(o *schema.Option) tea.Cmd {
if c := a.sch.OldKey(o.Key); c != nil && c.RenamedTo != "" {
a.renameKey(c.Key, c.RenamedTo)
return nil
}
if o.Kind == schema.KindBool && !o.Repeatable { if o.Kind == schema.KindBool && !o.Repeatable {
a.quickToggle(o) a.quickToggle(o)
return nil return nil
@@ -693,11 +746,7 @@ func (a *App) apply(o *schema.Option, res *result) {
if a.file.Equal(before) { if a.file.Equal(before) {
return return
} }
a.rev++ a.pushUndo(before, o.Key)
a.undo = append(a.undo, undoEntry{file: before, key: o.Key})
if len(a.undo) > 500 {
a.undo = a.undo[1:]
}
switch { switch {
case res.values == nil: case res.values == nil:
a.setStatus("Reset "+o.Key+" to its default.", stChanged) a.setStatus("Reset "+o.Key+" to its default.", stChanged)
+47
View File
@@ -243,3 +243,50 @@ func TestUpdateHintShown(t *testing.T) {
t.Errorf("header without an update: %q", h) t.Errorf("header without an update: %q", h)
} }
} }
func TestOldNameIsRenamed(t *testing.T) {
a := newTestApp(t, "# big scrollback\nscrollback-limit = 100000000\n")
a.selectCategory(0)
old := a.selected()
if old == nil || old.Key != "scrollback-limit" {
t.Fatalf("selected = %v", old)
}
if doc := ansi.Strip(a.docContent(old, 100)); !strings.Contains(doc, "old name of") || strings.Contains(doc, "misspelled") {
t.Errorf("doc of the old name:\n%s", doc)
}
// The current option shows the value set under its old name.
doc := ansi.Strip(a.docContent(a.sch.Lookup("scrollback-limit-bytes"), 100))
if !strings.Contains(doc, "100000000 ● set as scrollback-limit") || !strings.Contains(doc, "also reads the old name") {
t.Errorf("doc of the new name:\n%s", doc)
}
press(a, "enter")
if got := string(a.file.Bytes()); got != "# big scrollback\nscrollback-limit-bytes = 100000000\n" {
t.Fatalf("after rename:\n%s", got)
}
if o := a.selected(); o == nil || o.Key != "scrollback-limit-bytes" {
t.Errorf("selected after rename = %v", o)
}
press(a, "u")
if !a.file.Has("scrollback-limit") || a.dirty() {
t.Error("undo did not restore the old name")
}
}
func TestOldValueAndReplacedOption(t *testing.T) {
a := newTestApp(t, "copy-on-select = true\nbold-is-bright = true\n")
doc := ansi.Strip(a.docContent(a.sch.Lookup("copy-on-select"), 100))
if strings.Contains(doc, "invalid") || !strings.Contains(doc, "an old value") || !strings.Contains(doc, "none, primary, clipboard, both") {
t.Errorf("doc of copy-on-select = true:\n%s", doc)
}
doc = ansi.Strip(a.docContent(a.option("bold-is-bright"), 100))
if !strings.Contains(doc, "now sets bold-color") || strings.Contains(doc, "misspelled") {
t.Errorf("doc of bold-is-bright:\n%s", doc)
}
// Not renamed: enter edits the line as text.
a.selectCategory(0)
press(a, "down", "enter")
if a.editor == nil {
t.Error("enter on a replaced option opens no editor")
}
}
+30 -2
View File
@@ -204,6 +204,8 @@ func (a *App) renderOpts(w, h int) string {
selected := i == a.optIdx selected := i == a.optIdx
keySt := lipgloss.NewStyle() keySt := lipgloss.NewStyle()
switch { switch {
case a.sch.OldKey(o.Key) != nil:
keySt = stChanged // still read by Ghostty, but no longer documented
case a.unknown[o.Key] == o: case a.unknown[o.Key] == o:
keySt = stError keySt = stError
case o.Platform != "" && a.osName != "" && o.Platform != a.osName: case o.Platform != "" && a.osName != "" && o.Platform != a.osName:
@@ -294,6 +296,8 @@ func (a *App) valueSegs(o *schema.Option, w int) []seg {
if o.Validate(v) != nil { if o.Validate(v) != nil {
st = stError st = stError
} }
} else if _, ov, ok := a.oldName(o); ok {
v, st = ov, stChanged // set under the option's old name
} }
if v == "" { if v == "" {
return []seg{styled("—", stDim)} return []seg{styled("—", stDim)}
@@ -370,6 +374,12 @@ func (a *App) docContent(o *schema.Option, w int) string {
row := func(label, value string) { row := func(label, value string) {
b.WriteString(stLabel.Render(label) + " " + ansi.Wrap(value, max(10, w-10), "") + "\n") b.WriteString(stLabel.Render(label) + " " + ansi.Wrap(value, max(10, w-10), "") + "\n")
} }
// note is an indented remark below the value, wrapped to the panel.
note := func(st lipgloss.Style, text string) {
for _, l := range strings.Split(ansi.Wrap(text, max(10, w-10), ""), "\n") {
b.WriteString(" " + st.Render(l) + "\n")
}
}
if a.editor == nil { if a.editor == nil {
row("Type", o.TypeLabel()) row("Type", o.TypeLabel())
vals := a.file.GetAll(o.Key) vals := a.file.GetAll(o.Key)
@@ -401,9 +411,13 @@ func (a *App) docContent(o *schema.Option, w int) string {
def = sw + " " + def def = sw + " " + def
} }
row("Default", strings.ReplaceAll(def, "\t", "\\t")) row("Default", strings.ReplaceAll(def, "\t", "\\t"))
if len(vals) == 0 { oldKey, oldVal, hasOld := a.oldName(o)
switch {
case len(vals) == 0 && hasOld:
row("Value", oldVal+" "+stChanged.Render("● set as "+oldKey))
case len(vals) == 0:
row("Value", stDim.Render("not set (uses default)")) row("Value", stDim.Render("not set (uses default)"))
} else { default:
v := vals[len(vals)-1] v := vals[len(vals)-1]
if sw := swatch(v); sw != "" && o.Kind == schema.KindColor { if sw := swatch(v); sw != "" && o.Kind == schema.KindColor {
v = sw + " " + v v = sw + " " + v
@@ -411,11 +425,25 @@ func (a *App) docContent(o *schema.Option, w int) string {
row("Value", v+" "+stSet.Render("● set in config")) row("Value", v+" "+stSet.Render("● set in config"))
if err := o.Validate(vals[len(vals)-1]); err != nil { if err := o.Validate(vals[len(vals)-1]); err != nil {
b.WriteString(stError.Render(" ✗ invalid: "+err.Error()) + "\n") b.WriteString(stError.Render(" ✗ invalid: "+err.Error()) + "\n")
} else if o.IsOldValue(vals[len(vals)-1]) {
text := "an old value; Ghostty " + a.sch.GhosttyVersion + " still reads it"
if len(o.Values) > 0 {
text += ", but the current values are " + strings.Join(o.Values, ", ")
}
note(stChanged, text)
} }
if len(vals) > 1 { if len(vals) > 1 {
b.WriteString(stChanged.Render(fmt.Sprintf(" set %d times; the last one wins", len(vals))) + "\n") b.WriteString(stChanged.Render(fmt.Sprintf(" set %d times; the last one wins", len(vals))) + "\n")
} }
} }
if hasOld {
text := "Ghostty also reads the old name " + oldKey + " as this option. " +
"Select it under " + catSet + " and press enter to rename it."
if len(vals) > 0 {
text += " As both are set, the line further down wins."
}
note(stChanged, text)
}
} }
if o.Platform != "" { if o.Platform != "" {
row("Platform", o.Platform+" only") row("Platform", o.Platform+" only")
+93
View File
@@ -108,12 +108,18 @@ type zigType struct {
type zigInfo struct { type zigInfo struct {
fields []zigField fields []zigField
types map[string]*zigType types map[string]*zigType
compat []*schema.Compat
} }
var ( var (
reField = regexp.MustCompile(`^(?:@"([a-z0-9-]+)"|([a-z][a-z0-9_]*)): ([^=]+?)\s*=`) reField = regexp.MustCompile(`^(?:@"([a-z0-9-]+)"|([a-z][a-z0-9_]*)): ([^=]+?)\s*=`)
reType = regexp.MustCompile(`^pub const (\w+) = (enum|union|packed struct)\b`) reType = regexp.MustCompile(`^pub const (\w+) = (enum|union|packed struct)\b`)
reMember = regexp.MustCompile(`^ (@"[^"]+"|[a-z_][a-z0-9_]*)(\s*:\s*([^=,]+?))?(\s*=\s*([^,]+))?,\s*(//.*)?$`) reMember = regexp.MustCompile(`^ (@"[^"]+"|[a-z_][a-z0-9_]*)(\s*:\s*([^=,]+?))?(\s*=\s*([^,]+))?,\s*(//.*)?$`)
// Entries of the compatibility table: renamed keys, or a handler function.
reCompat = regexp.MustCompile(`^\s*\.\{ "([a-z0-9-]+)", (?:cli\.compatibilityRenamed\(Config, "([a-z0-9-]+)"\)|(\w+)) \},`)
reCompatValue = regexp.MustCompile(`std\.mem\.eql\(u8, value\w* orelse "", "([^"]+)"\)`)
reCompatSets = regexp.MustCompile(`self\.@"([a-z0-9-]+)" =`)
) )
func parseZig(src string) *zigInfo { func parseZig(src string) *zigInfo {
@@ -177,9 +183,75 @@ func parseZig(src string) *zigInfo {
} }
doc = nil doc = nil
} }
info.compat = parseCompat(src)
return info return info
} }
// parseCompat reads the `compatibility` table of Config.zig: keys and values
// of older releases that Ghostty still accepts. A renamed key names its new
// key; for a handler function, the values it compares against and the
// options it assigns are taken from its body.
func parseCompat(src string) []*schema.Compat {
lines := strings.Split(src, "\n")
var out []*schema.Compat
inTable := false
for _, line := range lines {
switch {
case strings.HasPrefix(line, "pub const compatibility = "):
inTable = true
case inTable && line == "});":
inTable = false
case inTable:
m := reCompat.FindStringSubmatch(line)
if m == nil {
continue
}
c := &schema.Compat{Key: m[1], RenamedTo: m[2]}
if m[3] != "" {
body := funcBody(lines, m[3])
if body == "" {
log.Printf("warning: compatibility handler %s not found", m[3])
}
for _, v := range reCompatValue.FindAllStringSubmatch(body, -1) {
c.Values = appendNew(c.Values, v[1])
}
for _, v := range reCompatSets.FindAllStringSubmatch(body, -1) {
if v[1] != c.Key {
c.Sets = appendNew(c.Sets, v[1])
}
}
}
out = append(out, c)
}
}
return out
}
// funcBody returns the top-level function name, from its signature to the
// closing brace.
func funcBody(lines []string, name string) string {
for i, line := range lines {
if !strings.HasPrefix(line, "fn "+name+"(") {
continue
}
for j := i; j < len(lines); j++ {
if lines[j] == "}" {
return strings.Join(lines[i:j+1], "\n")
}
}
}
return ""
}
func appendNew(list []string, v string) []string {
for _, s := range list {
if s == v {
return list
}
}
return append(list, v)
}
func ptr(f float64) *float64 { return &f } func ptr(f float64) *float64 { return &f }
// typeMap describes types that are not plain enums/unions/packed structs in // typeMap describes types that are not plain enums/unions/packed structs in
@@ -224,6 +296,7 @@ var typeMap = map[string]schema.Option{
"Keybinds": {Kind: schema.KindKeybind, Repeatable: true}, "Keybinds": {Kind: schema.KindKeybind, Repeatable: true},
"KeyRemapSet": {Kind: schema.KindText, Repeatable: true, Hint: "from=to, e.g. ctrl=super"}, "KeyRemapSet": {Kind: schema.KindText, Repeatable: true, Hint: "from=to, e.g. ctrl=super"},
"WindowPadding": {Kind: schema.KindPadding}, "WindowPadding": {Kind: schema.KindPadding},
"WindowPaddingBalance": {Kind: schema.KindEnum, Values: []string{"false", "true", "equal"}}, // renderer/size.zig
"QuickTerminalSize": {Kind: schema.KindText, Hint: "e.g. 50%, 400px or 50%,500px"}, "QuickTerminalSize": {Kind: schema.KindText, Hint: "e.g. 50%, 400px or 50%,500px"},
"RepeatableCommand": {Kind: schema.KindText, Repeatable: true, Hint: "title:NAME,action:ACTION[,description:TEXT]"}, "RepeatableCommand": {Kind: schema.KindText, Repeatable: true, Hint: "title:NAME,action:ACTION[,description:TEXT]"},
"?inputpkg.OptionAsAlt": {Kind: schema.KindEnum, Values: []string{"false", "true", "left", "right"}}, "?inputpkg.OptionAsAlt": {Kind: schema.KindEnum, Values: []string{"false", "true", "left", "right"}},
@@ -298,6 +371,22 @@ func build(z *zigInfo, docs []schema.DocEntry, version string) *schema.Schema {
doc := strings.TrimSpace(strings.Join(f.doc, "\n")) doc := strings.TrimSpace(strings.Join(f.doc, "\n"))
add(f.key, schema.DocEntry{Key: f.key, Doc: doc}, false) add(f.key, schema.DocEntry{Key: f.key, Doc: doc}, false)
} }
known := map[string]bool{}
for _, o := range s.Options {
known[o.Key] = true
}
for _, c := range z.compat {
switch {
case c.RenamedTo != "" && !known[c.RenamedTo]:
log.Printf("warning: compatibility: %s is renamed to the unknown key %s", c.Key, c.RenamedTo)
case known[c.Key] && len(c.Values) == 0:
log.Printf("warning: compatibility: no old values found for %s", c.Key)
case !known[c.Key] && c.RenamedTo == "" && len(c.Sets) == 0:
log.Printf("warning: compatibility: no replacement found for %s", c.Key)
}
}
s.Compat = z.compat
return s return s
} }
@@ -315,6 +404,10 @@ func optionForType(typ string, types map[string]*zigType) schema.Option {
o.Values = append([]string(nil), o.Values...) o.Values = append([]string(nil), o.Values...)
return o return o
} }
// Limit(usize, 50_000_000) from limit.zig: a number, or "unlimited".
if strings.HasPrefix(typ, "Limit(") {
return schema.Option{Kind: schema.KindInt, Min: ptr(0), Values: []string{"unlimited"}}
}
name := strings.TrimPrefix(typ, "?") name := strings.TrimPrefix(typ, "?")
t := types[name] t := types[name]
if t == nil { if t == nil {
+66
View File
@@ -0,0 +1,66 @@
package main
import (
"slices"
"testing"
)
// The shape of the compatibility table and its handlers in Config.zig 1.4.
const compatZig = `pub const compatibility = std.StaticStringMap(
cli.CompatibilityHandler(Config),
).initComptime(&.{
// Ghostty 1.4 renamed ` + "`scrollback-limit`" + `.
.{ "scrollback-limit", cli.compatibilityRenamed(Config, "scrollback-limit-bytes") },
.{ "bold-is-bright", compatBoldIsBright },
.{ "copy-on-select", compatCopyOnSelect },
});
fn compatBoldIsBright(
self: *Config,
value_: ?[]const u8,
) bool {
const isset = cli.args.parseBool(value_ orelse "t") catch return false;
if (isset) {
self.@"bold-color" = .bright;
}
return true;
}
fn compatCopyOnSelect(
self: *Config,
value: ?[]const u8,
) bool {
if (std.mem.eql(u8, value orelse "", "true")) {
self.@"copy-on-select" = .clipboard;
return true;
}
if (std.mem.eql(u8, value orelse "", "false")) {
self.@"copy-on-select" = .none;
return true;
}
return false;
}
`
func TestParseCompat(t *testing.T) {
got := parseCompat(compatZig)
if len(got) != 3 {
t.Fatalf("%d entries, want 3: %+v", len(got), got)
}
if c := got[0]; c.Key != "scrollback-limit" || c.RenamedTo != "scrollback-limit-bytes" {
t.Errorf("renamed: %+v", c)
}
if c := got[1]; c.Key != "bold-is-bright" || !slices.Equal(c.Sets, []string{"bold-color"}) || len(c.Values) != 0 {
t.Errorf("replaced: %+v", c)
}
if c := got[2]; !slices.Equal(c.Values, []string{"true", "false"}) || len(c.Sets) != 0 {
t.Errorf("old values: %+v", c)
}
}
func TestLimitType(t *testing.T) {
o := optionForType("Limit(usize, 64 * 1024 * 1024)", nil)
if o.Kind != "int" || !slices.Equal(o.Values, []string{"unlimited"}) || o.Min == nil || *o.Min != 0 {
t.Errorf("Limit: %+v", o)
}
}
+1 -1
View File
@@ -3,4 +3,4 @@ package main
// Version is a var, not a const, so build.sh can put the built number in via // Version is a var, not a const, so build.sh can put the built number in via
// -ldflags "-X main.Version=…". The value here only ever shows up in a bare // -ldflags "-X main.Version=…". The value here only ever shows up in a bare
// `go build`; the version actually built is the one in version.txt. // `go build`; the version actually built is the one in version.txt.
var Version = "1.0.1" var Version = "1.0.2"
+1 -1
View File
@@ -1 +1 @@
1.0.1 1.0.2