Ensure snippets keymaps cascade correctly by breaking into 2 files

This commit is contained in:
Nathan Sobo
2013-01-03 15:20:24 -07:00
parent a9bb4ea163
commit fdc1de6be0
3 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,2 @@
window.keymap.bindKeys '.editor'
'tab': 'snippets:expand'

View File

@@ -0,0 +1,6 @@
# it's critical that these bindings be loaded after those snippets-1 so they
# are later in the cascade, hence breaking the keymap into 2 files
window.keymap.bindKeys '.editor'
'tab': 'snippets:next-tab-stop'
'shift-tab': 'snippets:previous-tab-stop'

View File

@@ -1,6 +0,0 @@
window.keymap.bindKeys '.editor'
'tab': 'snippets:expand'
window.keymap.bindKeys '.editor'
'tab': 'snippets:next-tab-stop'
'shift-tab': 'snippets:previous-tab-stop'