Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623754 - app-editors/sublime-text could create subl symlink
Summary: app-editors/sublime-text could create subl symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-04 07:29 UTC by Georgy Yakovlev
Modified: 2017-07-04 18:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2017-07-04 07:29:12 UTC
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
Comment 1 Jonas Stein gentoo-dev 2017-07-04 14:24:57 UTC
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?
Comment 2 Georgy Yakovlev archtester gentoo-dev 2017-07-04 15:41:28 UTC
(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.
Comment 3 David Seifert gentoo-dev 2017-07-04 18:58:51 UTC
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