snippet ending with whitespace is not expanded

Bug #1204508 reported by Rinat Shigapov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UltiSnips
Confirmed
Low
Unassigned

Bug Description

I want to add a snippet ending with whitespace:

snippet "# "
expanded snippet
endsnippet

But this snippet is not expanded. I use <c-j> as a keystroke.

python version 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]

Revision history for this message
SirVer (sirver) wrote :

Try using a regular expression trigger. While I agree that the documentation reads as if this should work, ultisnips always expects its trigger to be at the border of words. You can circumvent the problem using a tab trigger though.

Revision history for this message
SirVer (sirver) wrote :

s/tab trigger/regular expression trigger/. sorry.

Changed in ultisnips:
status: New → Won't Fix
Revision history for this message
Rinat Shigapov (rinatshigapov) wrote :

I tried to add t option but this snippet wasn't shown in available snippets list and still doesn't expand.

Revision history for this message
SirVer (sirver) wrote :

you are right - it does not work. Ultisnips never sees the word before it. Patches are welcome.

Changed in ultisnips:
status: Won't Fix → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.