0

Unable to property open file at line on OSX

JulesRobichaudGagnon 10 lat temu zaktualizowano 10 lat temu 1

On Mac OSX the syntax "<filepath>:<line>" does not work property. 


Examples: 

1. "open -a /Applications/Sublime\ Text.app <filepath>:<line>" Does not work claims that the file does not exist

2.  "open -a /Applications/Sublime\ Text.app filepath --args :<line>" It just ignores the  ":<line>"

3. "/Applications/Sublime\ Text.app/Content/MacOS/Sublime\ Text <filepath>:<line>" Opens a new application instance.


I recommend another complementary syntax such as "-l <line>" or "--line <line>". The same goes for column.

I figured out there is  "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" that handles the files correctly.