-
Notifications
You must be signed in to change notification settings - Fork 4
/
DefaultKeyBinding.dict
18 lines (15 loc) · 1.21 KB
/
DefaultKeyBinding.dict
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
// Markdown commands
// See https://github.com/ttscoff/KeyBindings/blob/master/DefaultKeyBinding.dict
// These don't seem to work either in Chrome or Notes. Gonna try markdown service tools instead.
// > links
// > without selected text first, these can produce a mess using multiple clipboards
// > make a text selection before you run them
// // create a link for selected text, cursor between () `[selected text]([cursor])`
// "^~k" = (setMark:, moveRight:, insertText:, " ", deleteToMark:, insertText:, " [", moveLeft:, deleteBackward:, moveRight:, yank:, moveLeft:, insertText:, "]()", moveRight:, deleteBackward:, moveLeft:, setMark:, insertText:, "https://", selectToMark:); // link text
//
// // create a link for selected text, inserting clipboard as url `[[cursor]selected text](clipboard contents)`
// "^~l" = (setMark:, moveRight:, insertText:, " ", deleteToMark:, insertText:, " [", moveLeft:, deleteBackward:, moveRight:, yank:, moveLeft:, insertText:, "](", setMark:, pasteAsPlainText:, insertText:, ")", moveRight:, deleteBackward:, moveLeft:, selectToMark:); // link with clipboard
// Also did not work:
// "^~l" = "md - Convert - Clipboard URL to Markdown Link";
};