list_snippets does not show potential regex defined snippet
Bug #1171276 reported by
Zhao Cai
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Confirmed
|
Low
|
Unassigned |
Bug Description
For example, if I have the following snippet. type `u` and hit `<C-tab>` will not show the following snippet as possible match.
---------
global !p
def upper_right(inp):
return (75 - 2 * len(inp))*' ' + inp.upper()
endglobal
snippet /upper_right|ur/ "text ... TEXT" r
${1:Text}`!p snip.rv = upper_right(t[1])`
$0
endsnippet
To post a comment you must log in.
this is a known bug - it should even be reported here already. The problem is that 'partially matching' regular expression is not well defined. But there is agreement that a full match should be reported in the list. If you provide a patch, please also write a test for this :).