on osx sublime creates subl to allow fast and easy opening via terminal. Can the ebuild be modified to install this symlink for the sake of easy switching between platforms? This can be done in addition to existing /usr/bin/sublime_text I know it may seem a bit redundant but tell that my muscle memory =) Reproducible: Always Steps to Reproduce: 1. install sublime-text 2. run subl Actual Results: command not found Expected Results: sublime text gets launched
you could do this in /usr/local/bin on your machine. I am not sure, if this should be part of the ebuild. Or should we have an USE=symlink?
(In reply to Jonas Stein from comment #1) > you could do this in /usr/local/bin on your machine. I am not sure, if this > should be part of the ebuild. Or should we have an USE=symlink? Hey, thanks for quick reply. I totally agree that there are at many ways to workaround my request but I'd like to explain the reasoning: From build 3065 (Release Date: 29 August 2014) onwards Sublime text includes a command line helper, nameley subl.exe on Windows platform. And it includes subl helper on MacOS since forever. I used https://github.com/DamnWidget/sublime-text overlay before which included symlink as well. But yesterday I decided to ditch overlay and use gentoo version and immediately missed the symlink. The subl is not active by default on win or osx, user has to copy/create it manually, so the USE="symlink" may be a good solution. If sublime is installed using OSX homebrew or some package managers on windows they take care of the user and do create symlink by default. So the idea is to achieve consistency across platforms out-of-the-box on gentoo, it's a small nice addition, very simple and should not break anything. If it does not sound right for you just close the bug as WONTFIX, not a big deal.
After checking how it is handled on OSX and Windows, you are right, "subl" is the way to go. commit 475255856d36c0b86037e8c473ef74c999a31ba0 Author: David Seifert <soap@gentoo.org> Date: Tue Jul 4 11:56:31 2017 -0700 app-editors/sublime-text: Use 'subl' instead of 'sublime_text' as symlink Bug: https://bugs.gentoo.org/show_bug.cgi?id=623754