ultisnips icon indicating copy to clipboard operation
ultisnips copied to clipboard

Check if jumpable

Open eichboson opened this issue 4 years ago • 3 comments

This is not an issue, but a feature request. I have tried to somehow get a simple function to return true or false whether a jump is present or not, but I couldn't get a reliable solution, that worked in every situation. Would it be possible to implement a function "isJumpable" to do just that?

coc-snippets for example provides coc#jumpable() but I don't want to use coc-snippets with ultisnips as it doesnt support python t s m variables

eichboson avatar Oct 01 '19 08:10 eichboson

Yes, this would be feasible. It needs refactoring in https://github.com/SirVer/ultisnips/blob/8ff301c651d6df806c0f9305273a6c62a693bc48/pythonx/UltiSnips/snippet_manager.py#L497 to implement such a functionality.

SirVer avatar Oct 20 '19 19:10 SirVer

Would this not be the same as checking whether there is an active snippet? For example, by checking len(self._active_snippets)?

mvcouwen avatar Feb 01 '20 13:02 mvcouwen

This would be a great feature

thorlucas avatar Feb 05 '21 09:02 thorlucas