Launch from command line support
ignlg opened this issue · 5 comments
ignlg commented
To be able to launch it from command line is a step forward for all devs out there.
So we could use it like:
$ alias markright="~/Applications/MarkRight.app/Contents/SharedSupport/bin/markright"
$ markright README.md
It's beautiful, isn't it? (♥‿♥)
derhuerst commented
👍
dvcrn commented
I think this should be fairly simple once we have 'open with' support #6. Seems to be straight forward - https://github.com/atom/electron/blob/master/docs/api/app.md#event-open-file. I'll see if I can get something running by the end of the day
dvcrn commented
All right, once #6 is merged we can do something like
alias markright="open -a /Applications/MarkRight.app"
markright FOO.md
dvcrn commented
Looks like this is not completely done yet. When the app is closed, the command above will open the app but not load the document in. Only when the app is already running it will work.