We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9181f29 commit f1c5baaCopy full SHA for f1c5baa
UltiSnips/markdown.snippets
@@ -3,7 +3,7 @@ priority -50
3
global !p
4
def create_table(snip):
5
# retrieving single line from current string and treat it like tabstops count
6
- placeholders_string = snip.buffer[snip.line].strip().split("x",1)
+ placeholders_string = snip.buffer[snip.line].strip()[2:].split("x",1)
7
rows_amount = int(placeholders_string[0])
8
columns_amount = int(placeholders_string[1])
9
@@ -84,9 +84,8 @@ snippet fnt "Footnote"
84
[^$1]:${2:Text}
85
endsnippet
86
87
-post_jump "create_table(snip)"
+pre_expand "create_table(snip)"
88
snippet "tb(\d+x\d+)" "Customizable table" br
89
-`!p snip.rv = match.group(1)`
90
91
92
# vim:ft=snippets:
0 commit comments