Repository navigation
Use subl for the Sublime Text default editor - #9656
Conversation
Signed-off-by: Taksh <takshkothari09@gmail.com>
|
Reviewed by Claude Opus 5, with an independent second opinion from Codex at xhigh reasoning. Tests were executed on a disposable Omarchy VM rather than only read. The premise holds. I pulled the AUR Two things fail the suite as it stands. 1. 2. Ran on the worker at 8c30349:
One thing this does not handle, and neither does #9673: anyone who already selected Sublime has Codex agreed with both failures and with the call-site classification, and rejected nothing; its independence is not currently guaranteed, since it can read this session's own transcript. It contributed nothing here beyond agreement. Nothing pushed to this branch. #9673 fixes the same issue with the same production change, without the |
|
@dhh @ryanrhughes ready for review |
A when: subl guard hid the row before install, which is how the editor gets packaged. Map stored sublime_text to subl so an existing default stays ticked, and update the default-apps tests for the PATH name.
|
dropped the when: subl guard so sublime still shows up to install, and mapped stored sublime_text to subl for the checkmark. |
laodzuh
left a comment
There was a problem hiding this comment.
Tested on real hardware: Omarchy 4.0.4-1, sublime-text-4 4.4200-1 from [omarchy], Intel i7-7700 / GTX 1070, with no sublime_text shim on PATH (confirmed command -v sublime_text fails, only /usr/bin/subl exists).
bash test/shell:default-apps-test.shpasses all 11 cases. 4 unrelated files fail locally (3 need an omarchy-pkgs checkout,runtime-smoke-test.shcollides with my live shell) — same onquattro, not this branch.- With the branch's
bin/first on PATH: a pre-existing storedsublime_textreports assublwith no migration;omarchy-default-editor sublime_textpersistssubl;omarchy-launch-editor <file>opens Sublime instead of falling back to nvim. - Loaded the changed
setup.default.editor.sublimerow via the user menu extension: Sublime Text appears under Setup > Default > Editor and shows the checkmark. - Confirmed the
install.editor.sublimethird arg is correctly left assublime_text:omarchy-install-and-launchhands it togtk-launch, and the package ships/usr/share/applications/sublime_text.desktop, so that's the desktop ID, not the binary.
Summary
sublime-text-4putssublon PATH, notsublime_text, so Defaults → Editor hid Sublime andomarchy-launch-editorfell back to Neovim.subl, map a legacysublime_textdefault, and gate the menu row onsubl.Fixes #9643
Test plan
sublandomarchy-launch-editoropens Sublimesublime_textdefault file still launches viasubl