Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issues remain. SummaryAdds Sublime Text theme support:
Both numbered findings are fixed. The earlier later-window finding was dismissed after Automated tests and the Sublime UI were not run during this review.
|
chessing234
left a comment
There was a problem hiding this comment.
Reviewed head e1fd179e2c9547a800b3e3a3855b153f4fc18cee.
[P2] Update only root-level preference keys (default/sublime/set-preferences.py:29-33). The regex searches every nesting level and replaces the first matching key. Given {"plugin_options":{"font_face":"Nested Font"},"font_face":"Original Font"}, running the actual helper with font_face=Selected Font changes the nested plugin option and leaves the real root font_face unchanged, while exiting successfully. This can both alter unrelated plugin settings and prevent Omarchy's font/theme preferences from applying. Locate root-object members with a comment/string-aware structural scan while preserving surrounding formatting, and add a nested-key regression.
The existing sublime-theme suite passed in the isolated harness. The reproduction above runs the real Python updater and exposes a case that suite does not cover. I have not run Sublime Text itself.
|
Nice work on this. The live font/theme follow-through looks good. Heads-up that #10560 ("Theme Sublime Text from the Omarchy palette") has been open since September and covers the same ground: the color-scheme template, Before that, the root-level-key issue from the earlier review still applies at this head. In |
|
You guys are so nice. I'll work on it on the weekend. The defaults are
omakase :) with them sublime does not look like sublime anymore, but like
omarchy. That said, please guide me and I'll dedicate what time I have,
including changing the defaults (agree to disagree, let's make something
for everyone and I'll change my local settings) or joining with the other
PR. My taste is not an issue, I just want to give new users looking for a
more classic editor the option to have a truly omarchy sublime.
…On Tue, 6 Oct 2026, 15:49 Justin R. Andrusk, ***@***.***> wrote:
*jandrusk* left a comment (omacom/omarchy#14245)
<#14245 (comment)>
Nice work on this. The live font/theme follow-through looks good. Heads-up
that #10560 <#10560> ("Theme
Sublime Text from the Omarchy palette") has been open since September and
covers the same ground: the color-scheme template,
omarchy-theme-set-sublime, and the default-editor and font-set hooks. A
maintainer will probably want to pick one, so it'd help to compare notes
with @j-c-m <https://github.com/j-c-m> on what each covers. Yours adds
the UI theme and the window defaults.
Before that, the root-level-key issue from the earlier review still
applies at this head. In default/sublime/set-preferences.py, the regex
replaces the first matching key at any depth, so
{"plugin_options":{"font_face":"x"},"font_face":"y"} updates the nested
key and leaves the real font_face alone. Since Sublime prefs are JSON
with comments, I'd strip comments, parse, set the top-level key, and write
the file back. Or, if keeping the user's comments matters, only match keys
at brace depth 1 and outside /* … */ and // comments. Greptile's points
about reselecting the editor resetting font_face to monospace, and the
menu and minimap being forced off on every new window, also look worth
addressing.
—
Reply to this email directly, view it on GitHub
<#14245?email_source=notifications&email_token=ABG6URO7DRRAYAWOPGSW2OT5STZ6PA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMBRG43DSNRYGMY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6017696831>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG6URLO6CREDU7U6BBKJRT5STZ6PAVCNFSNUABFKJSXA33TNF2G64TZHM4TSNBQHEZTCNRWHNEXG43VMU5TKNZQGAZTMOBQGI42C5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
No rush, and thanks for being open to changes! My suggestion, in order:
|
|
Thanks @jandrusk, and @chessing234 for the precise repro. Fixed in d34882c: preferences are now edited at the root level only, keeping comments intact, with the nested-key case as a regression test. The intent was always to apply Omarchy's defaults once at install and then respect the user's choices. Reapplying them on default-editor selection and on every new window was a mistake on my part, sorry. Both are gone now: setup runs only on install, and the menu and minimap are hidden once. Writing I also folded in a few things from #10560: gutter diff colors, the |
|
Thanks for working through all of these. At |
So are you going to merge it? |
|
@j-c-m Nah it's a bot account with a wrong prompt. No prior contribution, no commits in Omarchy, isn't a public member of omacom, and his only PR is #13952. Its last 300 public GitHub events are all review comments on this repository, posted within 27 minutes on 13 October. Omarchy however means no gatekeeping and agents are first-class citizens, and personally I appreciate good feedback whatever the origin, so I consider myself lucky I was part of this wave :) However @jandrusk -- I'm speaking to you, Justin, and in all kindness: sentences like "a maintainer will probably want to pick one" and "LGTM from my side", from an account with no part in the project, read as if they came from the team. Seasoned contributors can tell the difference, but newer ones often can't, and they matter a great deal to Omarchy: every user is potentially a contributor, and they deserve not to be led into treating a review as official when it isn't. It's an easy fix in the prompt: tell your agent to ensure not to be mistaken for a team member, or make an explicitly named bot account, or even simply state in your comments that it's an independent, automated review, not affiliated with the Omarchy team. Then come back and keep supporting us! I love your comments and everybody's welcome! 😁 🙌 |
|
Fair ask, thanks for raising it. To be clear: I'm not part of the Omarchy team, and my reviews here are my own independent opinions, not official project feedback. I use an AI assistant to help me draft and post review comments. Please treat them as suggestions from a community member, and the maintainers' call is what counts. |
Summary
Make Sublime Text belong in Omarchy.
This gives it a theme that fits in with the aesthetic like the other supported editors, follows colors and fonts, and provides a minimalistic look at install. It looks like the terminal, but has Sublime power, and provides a fair alternative to those of us who did not side with vim nor emacs (regards from Switzerland btw).
skip-sublime-theme-changestoggle, like VS Code).Behaviour
Install > Editor > Sublime Text, or picking Sublime as the default editor when it's missing) setstheme,color_scheme, andoverlay_scroll_barsonce, backing up any existing preferences first. It edits root-level keys only and keeps the user's comments and formatting.Monospace) already resolves through fontconfig to the Omarchy font, so Omarchy never writesfont_face. Afteromarchy font set, a notification asks to restart Sublime, as it does for Ghostty and Foot.Testing
./test/cliand the shell tests:sublime-theme,default-apps,desktop-entry-launch, andtheme-staging. The preferences tests cover nested keys, non-string values, comments, and empty and malformed files.