mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Ensure snippets keymaps cascade correctly by breaking into 2 files
This commit is contained in:
2
src/packages/snippets/keymaps/snippets-1.cson
Normal file
2
src/packages/snippets/keymaps/snippets-1.cson
Normal file
@@ -0,0 +1,2 @@
|
||||
window.keymap.bindKeys '.editor'
|
||||
'tab': 'snippets:expand'
|
||||
6
src/packages/snippets/keymaps/snippets-2.cson
Normal file
6
src/packages/snippets/keymaps/snippets-2.cson
Normal 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'
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user