Permalink
Browse files

Add tab bindings to OSX and Linux

  • Loading branch information...
1 parent abb3c03 commit d029cdabaeb1a8b837c3c73bae1fa2f24628fc7d @skuroda committed Dec 17, 2012
Showing with 24 additions and 2 deletions.
  1. +12 −1 Default (Linux).sublime-keymap
  2. +12 −1 Default (OSX).sublime-keymap
@@ -1,4 +1,15 @@
[
{ "keys": ["super+alt+n"], "command": "advanced_new_file"},
- { "keys": ["shift+super+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}}
+ { "keys": ["shift+super+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}},
+ {
+ "keys": ["tab"],
+ "command": "insert_best_completion",
+ "args": {"default": "", "exact": false},
+ "context": [
+ { "key": "advanced_new_file_completion"},
+ { "key": "setting.tab_completion", "operator": "equal", "operand": true },
+ { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" },
+ { "key": "auto_complete_visible" , "operator": "equal", "operand": false}
+ ]
+ }
]
@@ -1,4 +1,15 @@
[
{ "keys": ["super+alt+n"], "command": "advanced_new_file"},
- { "keys": ["shift+super+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}}
+ { "keys": ["shift+super+alt+n"], "command": "advanced_new_file", "args": {"is_python": true}},
+ {
+ "keys": ["tab"],
+ "command": "insert_best_completion",
+ "args": {"default": "", "exact": false},
+ "context": [
+ { "key": "advanced_new_file_completion"},
+ { "key": "setting.tab_completion", "operator": "equal", "operand": true },
+ { "key": "last_command", "operator": "not_equal", "operand": "insert_best_completion" },
+ { "key": "auto_complete_visible" , "operator": "equal", "operand": false}
+ ]
+ }
]

0 comments on commit d029cda

Please sign in to comment.