fix: keep Sublime on the editor menu and persist subl

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.
This commit is contained in:
Taksh committed 2026-09-08 14:59:34 +05:30
1 parent 8c303495ac
commit bb13b55698
3 files changed
+6 -3

No files matched your search

+3
View File
@@ -17,6 +17,9 @@ if (($# == 0)); then
read -r editor <"$editor_file"
fi
# sublime-text-4 ships `subl`; older defaults stored `sublime_text`.
[[ $editor == sublime_text ]] && editor=subl
[[ -n $editor ]] && echo "$editor" || echo "nvim"
exit 0
fi