ultisnips icon indicating copy to clipboard operation
ultisnips copied to clipboard

if expand fails, the trigger key is inserted

Open liushapku opened this issue 1 year ago • 1 comments

I use <a-;> as a trigger key. If the expansion is failed, a string show as "<t_u;" is inserted. I digged into the code, and see the following lines of code passes the trigger key to vim

https://github.com/SirVer/ultisnips/blob/0ad238b1910d447476b2d98f593322c1cdb71285/pythonx/UltiSnips/snippet_manager.py#L198

resulting a sequence of keys \<a-;> feed into the insert mode, just like :call feedkey("i\<a-;>")

This behavior is unwanted. Please allow us to costomzie whether the trigger key should be passed through on failure, or set it to "False"

liushapku avatar Feb 26 '23 14:02 liushapku