Permalink
Browse files

fix keymap for osx and linux

  • Loading branch information...
1 parent ef12a42 commit 9c324a3931a2986652171e6105197b60164f5ca9 @erinata committed Apr 12, 2012
Showing with 44 additions and 8 deletions.
  1. +22 −4 Default (Linux).sublime-keymap
  2. +22 −4 Default (OSX).sublime-keymap
@@ -2,17 +2,35 @@
{
"keys": ["tab"], "command": "indent", "context":
[
+ { "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.markdown" },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^( *|\\t*)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false},
- { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" },
- { "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
+ { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" }
+
+ ]
+ },
+ {
+ "keys": ["tab"], "command": "indent", "context":
+ [
+ { "key": "selector", "operator": "equal", "operand": "meta.paragraph.list.markdown" },
+ { "key": "preceding_text", "operator": "regex_match", "operand": "^( *|\\t*)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true },
+ { "key": "auto_complete_visible", "operator": "equal", "operand": false},
+ { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" }
+
+ ]
+ },
+ {
+ "keys": ["shift+tab"], "command": "unindent", "context":
+ [
+ { "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.markdown" },
+ { "key": "preceding_text", "operator": "regex_match", "operand": "^( +|\\t+)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true }
]
},
{
"keys": ["shift+tab"], "command": "unindent", "context":
[
- { "key": "preceding_text", "operator": "regex_match", "operand": "^( +|\\t+)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true },
- { "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
+ { "key": "selector", "operator": "equal", "operand": "meta.paragraph.list.markdown" },
+ { "key": "preceding_text", "operator": "regex_match", "operand": "^( +|\\t+)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true }
]
}
]
@@ -2,17 +2,35 @@
{
"keys": ["tab"], "command": "indent", "context":
[
+ { "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.markdown" },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^( *|\\t*)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false},
- { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" },
- { "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
+ { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" }
+
+ ]
+ },
+ {
+ "keys": ["tab"], "command": "indent", "context":
+ [
+ { "key": "selector", "operator": "equal", "operand": "meta.paragraph.list.markdown" },
+ { "key": "preceding_text", "operator": "regex_match", "operand": "^( *|\\t*)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true },
+ { "key": "auto_complete_visible", "operator": "equal", "operand": false},
+ { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" }
+
+ ]
+ },
+ {
+ "keys": ["shift+tab"], "command": "unindent", "context":
+ [
+ { "key": "selector", "operator": "equal", "operand": "markup.list.unnumbered.markdown" },
+ { "key": "preceding_text", "operator": "regex_match", "operand": "^( +|\\t+)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true }
]
},
{
"keys": ["shift+tab"], "command": "unindent", "context":
[
- { "key": "preceding_text", "operator": "regex_match", "operand": "^( +|\\t+)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true },
- { "key": "selector", "operator": "equal", "operand": "text.html.markdown" }
+ { "key": "selector", "operator": "equal", "operand": "meta.paragraph.list.markdown" },
+ { "key": "preceding_text", "operator": "regex_match", "operand": "^( +|\\t+)(\\*|\\-|\\>|\\+|[0-9]+\\.)(.*)", "match_all": true }
]
}
]

0 comments on commit 9c324a3

Please sign in to comment.