Repository navigation
fix(font): reset explicit kitty bold/italic font variants to auto on font set - #9168
harshithnadig wants to merge 3 commits into
Conversation
d6b79ba to
527355e
Compare
|
One gap carried over from the review comparison (context: #12171, now closed in favor of this): the reset line handles the face line itself, but not a kitty Rare in practice (needs a hand-split face), but if you want it covered I'm happy to put up a small follow-up on top of this that drops leading- |
|
Reviewed at Reproduced on a disposable Omarchy worker, by checking what kitty's own config parser loads from
With the added line reverted, the first three fail again. The branch merged with current Compared with #13235, the other open fix for #9167: run the same way, it leaves Two limits, neither found to be a regression. A face set deliberately to another family or style is reset to No second opinion ran on this pull request. The configured reviewer, Codex Medium, had used up its daily review budget, so everything above is one model's work (Claude Opus 5.5). This waits on that second review before it can be marked ready, and then on the maintainer. |
Move the font set face check into the existing Kitty test, as AGENTS.md asks of a new test, and cover the shipped config, where font_family is commented out and the first font set appends it, plus an explicit face that follows an earlier auto line. Both cases come from omacom#13235, with the expectation changed to the auto reset this pull request makes. Co-Authored-By: Raj-Jagadeesh-A-P <rajjagadeesh2006@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed again at What I pushed:
Checked on a disposable Omarchy worker by running
Second opinion: Codex Medium and muse-wonder (pi, thinking high) reviewed this head. muse-wonder found no defects. Codex found one, and I confirmed it with Kitty's parser. It is the gap @ekollof described above: a face split across a This is waiting on the maintainer to decide whether the continuation case should block this or go in that follow-up. Nothing is needed from you. |
[Low impact] This PR appears safe to merge. Summary
Reviews (1) · Last reviewed commit: "Test the kitty face reset in kitty-confi..." · Reviewed by Greptile |
Fixes #9167
Problem
When
omarchy font set <font>is executed, it updatesfont_familyin~/.config/kitty/kitty.conf, but leaves any explicitbold_font,italic_font, orbold_italic_fontconfiguration lines untouched. This causes bold/italic text in Kitty to continue rendering with the previous font family.Solution
Update
omarchy-font-setto resetbold_font,italic_font, andbold_italic_fontin~/.config/kitty/kitty.conftoautoso Kitty automatically derives the corresponding bold and italic weights from the newly selectedfont_family.