Skip to content

Commit 77f052c

Browse files
committed
Fixed key binding for build 3114 syntax updates
Resolves #10
1 parent 80f8f4d commit 77f052c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Default.sublime-keymap

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
// Module Docstrings
23
{
34
"keys": [
45
"enter"
@@ -37,5 +38,46 @@
3738
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
3839
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\"\"\")\\s*$", "match_all": true }
3940
]
41+
},
42+
43+
// NEW function docstrings
44+
{
45+
"keys": [
46+
"enter"
47+
],
48+
"command": "docblockr_python",
49+
"context": [
50+
{ "key": "selector", "operator": "equal", "operand": "comment.block.python", "match_all": false },
51+
{ "key": "setting.auto_indent", "operator": "equal", "operand": true, "match_all": true },
52+
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
53+
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
54+
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\"\"\")\\s*$", "match_all": true }
55+
]
56+
},
57+
{
58+
"keys": [
59+
"keypad_enter"
60+
],
61+
"command": "docblockr_python",
62+
"context": [
63+
{ "key": "selector", "operator": "equal", "operand": "comment.block.python", "match_all": false },
64+
{ "key": "setting.auto_indent", "operator": "equal", "operand": true, "match_all": true },
65+
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
66+
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
67+
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\"\"\")\\s*$", "match_all": true }
68+
]
69+
},
70+
{
71+
"keys": [
72+
"tab"
73+
],
74+
"command": "docblockr_python",
75+
"context": [
76+
{ "key": "selector", "operator": "equal", "operand": "comment.block.python", "match_all": false },
77+
{ "key": "setting.auto_indent", "operator": "equal", "operand": true, "match_all": true },
78+
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
79+
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
80+
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\"\"\")\\s*$", "match_all": true }
81+
]
4082
}
4183
]

0 commit comments

Comments
 (0)