We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3222c60 commit 999bd3fCopy full SHA for 999bd3f
1 file changed
pythonx/omnils.py
@@ -236,6 +236,9 @@ def _process_argument(self, match):
236
if quotes:
237
match['snippet'] = lhs + ' = "${1:' + quotes.group(1) + '}"'
238
else:
239
+ if rhs in ('TRUE', 'FALSE'):
240
+ rhs = 'TRUE' if rhs == 'FALSE' else 'FALSE'
241
+
242
match['snippet'] = lhs + ' = ${1:' + rhs + '}'
243
244
match['snippet'] = lhs + ' = $1'
@@ -275,7 +278,11 @@ def _process_option(self, match):
275
278
match['snippet'] = lhs + ' = "${1:' + snip + '}"'
276
279
277
280
default = rhs
- match['snippet'] = lhs + ' = ${1:' + default + '}'
281
282
283
284
285
+ match['snippet'] = lhs + ' = ${1:' + rhs + '}'
286
287
default = ''
288
0 commit comments