Skip to content

Commit

Permalink
Bugfixes, added alt modifier to almost everything to avoid conflicts …
Browse files Browse the repository at this point in the history
…with default keybindings
  • Loading branch information
ttscoff committed Jul 28, 2012
1 parent aac8757 commit d5bd8fb
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 44 deletions.
14 changes: 7 additions & 7 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
]
},
// Bold on ⌘B
{ "keys": ["super+b"], "command": "insert_snippet", "args": {"contents": "**$0**"}, "context":
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "**$0**"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
Expand All @@ -102,15 +102,15 @@
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
{ "keys": ["super+b"], "command": "insert_snippet", "args": {"contents": "${0:**$SELECTION**}"}, "context":
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "${0:**$SELECTION**}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
// italics on ⌘I
{ "keys": ["super+i"], "command": "insert_snippet", "args": {"contents": "*$0*"}, "context":
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "*$0*"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
Expand All @@ -120,15 +120,15 @@
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
{ "keys": ["super+i"], "command": "insert_snippet", "args": {"contents": "${0:*$SELECTION*}"}, "context":
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "${0:*$SELECTION*}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
// inline link insertion
{ "keys": ["super+k"], "command": "insert_snippet", "args": {"contents": "[$1]($0)"}, "context":
{ "keys": ["super+alt+k"], "command": "insert_snippet", "args": {"contents": "[$1]($0)"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
Expand All @@ -138,7 +138,7 @@
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
{ "keys": ["super+k"], "command": "insert_snippet", "args": {"contents": "[$SELECTION]($0)"}, "context":
{ "keys": ["super+alt+k"], "command": "insert_snippet", "args": {"contents": "[$SELECTION]($0)"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
Expand Down Expand Up @@ -192,7 +192,7 @@
]
},
// selection pairing with SPACE by Gabe Weatherhead
{ "keys": ["super+shift+space"], "command": "insert_snippet", "args": {"contents": " ${0:$SELECTION} "}, "context":
{ "keys": ["ctrl+alt+space"], "command": "insert_snippet", "args": {"contents": " ${0:$SELECTION} "}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
Expand Down
24 changes: 24 additions & 0 deletions MarkdownEditor-Focus.tmTheme
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,30 @@
<string>#AAAAAA</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Block Cursor</string>
<key>scope</key>
<string>block_cursor</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#212121</string>
<key>background</key>
<string>#00bdff77</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Brackets</string>
<key>scope</key>
<string>entity.name.class</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#d5f6ff88</string>
</dict>
</dict>
</array>
<key>uuid</key>
<string>BF4E1964-0DB9-4E88-8142-E8F52D7EDEEC</string>
Expand Down
13 changes: 12 additions & 1 deletion MarkdownEditor.tmTheme
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
<key>settings</key>
<dict>
<key>foreground</key>
<string>#AAAAAA</string>
<string>#777777</string>
</dict>
</dict>
<dict>
Expand Down Expand Up @@ -807,6 +807,17 @@
<string>#00bdff77</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Brackets</string>
<key>scope</key>
<string>entity.name.class</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#d5f6ff88</string>
</dict>
</dict>
</array>
<key>uuid</key>
<string>BF4E1964-0DB9-4E88-8142-E8F52D7EDEEC</string>
Expand Down
27 changes: 0 additions & 27 deletions MultiMarkdown.sublime-settings.orig

This file was deleted.

11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ This package will make MarkdownEditor your default theme for Markdown/MultiMarkd
* Left bracket pairing is modified to eliminate the selection and leave the cursor at a point where you can insert a `[]` or `()` pair for a link
* ⌘⌥V will paste the contents of the clipboard as an inline link on selected text
* ⌘⌥R will paste the contents of the clipboard as a reference link
* ⌘K inserts a standard inline link, ⌘⇧K inserts an inline image
* ⌘B and ⌘I are bound to bold and italics (Markdown). *If you don't like losing your default shortcut for "Build", modify the sublime-keymap file.*
* Typing "#" when there's a selection will surroung it with "#" to make it a headline. Multiple presses add additional hashes, increasing the level of the header. Finish with Cmd-Shift-Space to add padding around the selection. (Contributed by [Gabe](http://www.macdrifter.com))
*K inserts a standard inline link, ⌘⇧K inserts an inline image
*B and ⌘I are bound to bold and italics (Markdown).
* Typing "#" when there's a selection will surroung it with "#" to make it a headline. Multiple presses add additional hashes, increasing the level of the header. Finish with Ctrl-Opt-Space to add padding around the selection. (Contributed by [Gabe](http://www.macdrifter.com))

There's a long way to go and I have a lot of Python to learn.

| Table Header 1 | Table Header 2 | Table Header 3 |
| -------------- | -------------- | -------------- |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
2 changes: 1 addition & 1 deletion packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "The beginnings of a Markdown editing bundle for Sublime Text 2",
"author": "Brett Terpstra (@ttscoff)",
"homepage": "https://github.com/ttscoff/MarkdownEditing",
"last_modified": "2012-07-18 05:31:00",
"last_modified": "2012-07-28 12:04:00",
"platforms": {
"osx": [
{
Expand Down

0 comments on commit d5bd8fb

Please sign in to comment.