Topic: https://brettterpstra.com/2011/09/12/introducing-the-marked-bonus-pack/
hide preview

What's next? verify your email address for reply notifications!

Zettt 13y, 182d ago

Here's another Vim command. I'd prefer to launch Marked with a command rather than a shortcut (which turned out to be a problem, since Vim has an internal open command as well)

command! Marked silent !open -a "Marked.app" "%:p"

Andreas

hide preview

What's next? verify your email address for reply notifications!

Barry 13y, 189d ago

You can't have a preview command for vi without also including one for emacs...

(defun markdown-preview-file ()
"run Marked on the current file and revert the buffer"
(interactive)
(shell-command
(format "open -a /Applications/Marked.app %s"
(shell-quote-argument (buffer-file-name))))
)
(global-set-key "\C-cm" 'markdown-preview-file)

Just put it into your .emacs file, command key is "Ctrl-c m".

hide preview

What's next? verify your email address for reply notifications!

kewagi 13y, 189d ago

Great, thanks for this! And to make me feel productive, here's a bash script that opens a .d file in Marked from the Terminal.

hide preview

What's next? verify your email address for reply notifications!

Justin Luey 13y, 189d ago

Marked was awesome from day one, but these scripts take it to a whole new level. Thanks.

I also love this 'Display In Marked' service http://fnurl.se/better-disp...

I modified it to save a temporary text file to my Desktop.

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 13y, 189d ago

Hey Justin, both links in your post are giving me File Not Found errors. I'd love to see the script, though, let me know if you have a direct link.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Justin Luey 13y, 189d ago

Sorry that wasn't my post. I downloaded from the above link last week and then modified it.

hide preview

What's next? verify your email address for reply notifications!

Ammon 13y, 189d ago

Thanks for putting these scripts together! I'm looking forward to the new version of nvALT. Any idea on when it will be ready for primetime?

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 13y, 189d ago

Not a clue yet, I'm pulled in many directions right now :). We're definitely hoping to have it sooner than later, though; trying to beat our last release delay by a significant margin.

hide preview

What's next? verify your email address for reply notifications!