Topic: https://brettterpstra.com/2011/04/24/a-couple-of-textmate-macros-for-markdown-lists/
hide preview

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

Lri 13y, 330d ago

Oh, and for something like moveSelectionDown: in TextMate: "^@\Uf701" = ("selectParagraph:", "setMark:", "deleteToMark:", "moveToEndOfParagraph:", "moveRight:", "setMark:", "yank:", "moveLeft:", "selectToMark:");. selectParagraph: makes sure that the first and last paragraphs are selected completely (including EOLs). And if it's used without a selection, it won't place the caret to the start of the next paragraph (two paragraphs down) like TextMate.

remark link
hide preview

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

Brett 13y, 330d ago

Very nice.

hide preview

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

Lri 13y, 330d ago

To have that in other applications (and not just on MD lists), create ~/Library/KeyBindings/DefaultKeyBindings.dict with: {"^\Uf701" = ("selectParagraph:", "setMark:", "deleteToMark:", "moveToEndOfParagraph:", "moveRight:", "yank:", "moveLeft:");}. (And the equivalent for ^\Uf700 = ⌃↑.) It doesn't work on the last two (or first two) paragraphs of the document.

It also doesn't work in TextMate, but you could copy the selectors from Terpstra's macros and add them to ‍TextMate's own KeyBindings.dict.

hide preview

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

Eddie 13y, 331d ago

Cool.

If I install MMD 3, will it break nvALT 2.0's HTML preview?

remark link
hide preview

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

Brett 13y, 331d ago

The official release of MMD3 came with wrapper scripts that mimicked the old multimarkdown2XHTML.pl script in ~/Library/Application Support/MultiMarkdown that most apps rely on. As long as that's there, you should be able to do both (MMD3 and nvALT 2.0). If you have any trouble, let me know. My current build of nvALT checks directly for the multimarkdown executable that MMD3 uses, and is a little smarter about fallbacks. That should be out soon, Elastic and I are working on it this weekend and I hope to wrap up this week.

hide preview

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