Hacker News new | ask | show | jobs
by wickchuck 4310 days ago
Anyone have a clue as to what were supposed to be able to do with this "Windows: Added command line helper, subl.exe". I'm guessing it's mainly for a shorter exe name to add to your path when launching sublime from the command line, but maybe I'm missing something?
3 comments

It's just to launch the editor from the command-line.

IT's nothing new - sublime text 2 (at least on OS X) had the "subl" command so you could launch an edit session from the cli.. I assumed the rest had the same.

It's certainly not a new feature or anything to celebrate.

It is new on Windows.
not so much, you could always do sublime somedirectory and it will open it. It appears the novelty is the --help option and more importantly the --wait option, so you could include sublime in a script workflow (as a git commit editor ?)
If it works like the OSX subl command, it integrates with git nicely so it can pause git commands to allow you edit commit messages in sublime and resume the command once you save. If you try to do this with standard exe in windows, the git command will run start to finish and you will not be able to edit the commit messages in sublime.
The reason it exists is for things like git, so they can launch the editor aimed at a commit message, then block until the editor closes and then continue.

It's also useful if you want to open the editor aimed at a file in the current directory without re-navigating there in the gui.