Skip to content

Store subl as the Sublime Text default editor command - #11672

Closed
anant1811 wants to merge 1 commit into
omacom:quattrofrom
anant1811:fix/sublime-default-editor
Closed

anant1811 wants to merge 1 commit into
omacom:quattrofrom
anant1811:fix/sublime-default-editor

Conversation

@anant1811

Copy link
Copy Markdown

The sublime-text-4 package installs its launcher as /usr/bin/subl (PKGBUILD), but the default-editor flow stored and probed sublime_text. That command is never on PATH, so choosing Sublime Text re-triggered the install flow on every selection, and a stored default fell back to Neovim at launch.

Older state files still carry sublime_text; both readers map it forward so an existing choice keeps working. Same shape as #11344 does for Zed.

Fixes #11039
Fixes #10800

Testing

test/shell.d/default-apps-test.sh updated (the mock installer now provides subl) plus a legacy-state assertion; bin-style-test.sh passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKJ7WaM8LCBtL91KJe3wQT

The sublime-text-4 package installs its launcher as /usr/bin/subl, but
the default-editor flow stored and probed sublime_text. That command is
never on PATH, so choosing Sublime Text re-triggered the install flow on
every selection, and a stored default fell back to Neovim at launch.

Older state files still carry sublime_text; both readers map it forward
so an existing choice keeps working.

Fixes omacom#11039
Fixes omacom#10800

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKJ7WaM8LCBtL91KJe3wQT
@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #9656, which covers the same Sublime subl default. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants