Skip to content

Commit

Permalink
Shift modifier prevents automatic insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Nov 6, 2013
1 parent f3d960f commit ae1c95c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
[{ "keys": ["ctrl+alt+n"], "command": "prompt_insert_nums" }]
[
{ "keys": ["ctrl+alt+n"], "command": "prompt_insert_nums" }
{ "keys": ["ctrl+shift+alt+n"], "command": "prompt_insert_nums", "args": { "automatic": false } }
]
5 changes: 4 additions & 1 deletion Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
[{ "keys": ["super+alt+n"], "command": "prompt_insert_nums" }]
[
{ "keys": ["super+alt+n"], "command": "prompt_insert_nums" },
{ "keys": ["super+shift+alt+n"], "command": "prompt_insert_nums", "args": { "automatic": false } },
]
5 changes: 4 additions & 1 deletion Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
[{ "keys": ["ctrl+alt+n"], "command": "prompt_insert_nums" }]
[
{ "keys": ["ctrl+alt+n"], "command": "prompt_insert_nums" }
{ "keys": ["ctrl+shift+alt+n"], "command": "prompt_insert_nums", "args": { "automatic": false } }
]
4 changes: 2 additions & 2 deletions InsertNums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@


class PromptInsertNumsCommand(sublime_plugin.WindowCommand):
def run(self):
def run(self, automatic = True):
self.window.show_input_panel(
'Enter a starting number/character, step and padding.',
'1 1 0',
self.insertNums,
self.insertNums,
self.insertNums if automatic else None,
None
)
pass
Expand Down

0 comments on commit ae1c95c

Please sign in to comment.