|
1 | 1 | [
|
| 2 | + // Module Docstrings |
2 | 3 | {
|
3 | 4 | "keys": [
|
4 | 5 | "enter"
|
|
37 | 38 | { "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
|
38 | 39 | { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(\"\"\")\\s*$", "match_all": true }
|
39 | 40 | ]
|
| 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 | + ] |
40 | 82 | }
|
41 | 83 | ]
|
0 commit comments