Terminal launcher for Marked (2)

Dave's Avatar

Dave

28 Mar, 2017 01:25 PM

Marked 2 is a great previewer for markdown. It'd be even greater if I could launch it from the terminal without having to do an `open -a 'marked 2'` etc. dance every time - lots of editors provide quick terminal launch scripts, so would it be possible to get an (official) one from Brett or the Marked team?

Would be great to just say 'marked [filename]' to open a preview of it in Marked 2.

  1. Support Staff 1 Posted by Brett on 28 Mar, 2017 03:53 PM

    Brett's Avatar

    Given I don't currently provide any command line options, a separate
    binary is more trouble than it's worth. Just add this to your
    ~/.bash_profile

    alias marked="open -a 'Marked 2'"

    Then you can just type `marked [filename]` as you request.

    -Brett

  2. 2 Posted by Dave Mee on 28 Mar, 2017 03:55 PM

    Dave Mee's Avatar

    Thanks Brett!

    ... should be in the FAQ. 

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac