sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
273 stars 14 forks source link

Load Packages from Sublime Text Portable #928

Open deathaxe opened 3 years ago

deathaxe commented 3 years ago

Problem description

If both Sublime Text and Sublime Merge are installed in portable mode next to each other, Sublime Merge should use ST's Data folder instead of %APPDATA/Sublime Text% (or ~/.config/sublime-text).

Z:\Apps\Sublime Merge --> Z:\Apps\Sublime Text\Data

Preferred solution

SM portable should use the Data folder of the ST portable setup if available and fallback to %APPDATA%.

Alternatives

?

h0rn3z0r commented 1 month ago

You can create a directory symlink as a workaround.

For Windows: mklink /D "%APPDATA%\Sublime Text" "X:\Programs\Sublime Text 4\Data"

deathaxe commented 1 month ago

Sure, but that's not portable.

The point is, ST & SM already find each other, if located in same directory. Means, you can start SM from ST and vice versa without configuration.

Same should be true for Package folder lookup - just for consistency and proper support of portable builds.