I'd be happy with a simple command line interface to opening a
markdown file in Marked, a la the effect of running Marked, hitting
⌘O, and finding that file.
What I'd ultimately like to achieve is a simple way to "watch" a
markdown file with Marked from the command line. That would make it
super easy to bind a key combo from within Sublime Text, Textmate,
Emacs, Vim, etc. to watch the file you've just created and are
Brett on 13 Sep, 2011 12:58 AM
That's pretty much what I'm thinking, with the additional
ability to accept piped output so it can be chained with commands
in other workflows. By the way, open -a Marked
filename.md will work right now, too. I've used it in
TextMate commands, Vim bindings and Sublime Build Systems. I'll be
making all of those available soon (hopefully this week).
Indeed, and further there is no need to type all of that in
every time. Most UNIX shells allow you to alias longer commands to
shortcuts. Try typing in $ alias marked="open -a
Marked" as a command, then $ marked
some_file.md to test.
If you want to keep an alias around between sessions, add it to
your .profile (create if it doesn't exist; each line should be seen
as a command you type in which will be executed automatically
whenever you start a Terminal session).