trigger with regex of the previous line

Asked by Thanatermesis

it is possible to regex the previous line ? im editing my snippets and some of them uses the same name, a good way will be to know if the previous line include foo or bar, where i can read more about the regex used and its possibilities ?

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

It is generally not possible to consider previous lines in a regexp trigger at this point in time. All about the regular expression triggers are in the documentation of ultisnips.

Can you help with this problem?

Provide an answer of your own, or ask Thanatermesis for more information if necessary.

To post a message you must log in.