Is there a CLI utility for Marked to open a .md file from the command line and also to open it from Sublime itself

Nikita Voloboev's Avatar

Nikita Voloboev

10 Apr, 2016 08:47 AM

Like for example there is 'subl' command for Sublime Text to open files from the command line. It would really be great to have that but from the command line, I didn't fin such a command.

Also would be really nice to have a sublime package or command that you can you from the sublime text command palette to open current file in Marked.

Thank you a lot for any help. It really is a great application.

  1. Support Staff 1 Posted by Brett on 10 Apr, 2016 01:06 PM

    Brett's Avatar

    You can just run:

    open -a Marked\ 2 [filename]

    Add an alias for it:

    alias marked="open -a Marked\ 2"

    Then you can use "marked" just like "subl".

    There are several packages for Sublime, including palette commands and build systems. Search Package Control for "marked".

    Additional resources can be found here: https://github.com/kotfu/marked-bonus-pack

    Also note that Marked's URL handler can be used from the shell and scripts as well. http://marked2app.com/help/URL_Handler.html

    -Brett

  2. 2 Posted by Nikita Voloboev on 10 Apr, 2016 01:17 PM

    Nikita Voloboev's Avatar

    Thank you a lot.

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