Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adhere to snippet options when listing snippets #153

Closed
SirVer opened this issue Feb 15, 2014 · 2 comments
Closed

Adhere to snippet options when listing snippets #153

SirVer opened this issue Feb 15, 2014 · 2 comments

Comments

@SirVer
Copy link
Owner

SirVer commented Feb 15, 2014

Hi Holger,

atm it isn't possible to invoke the list of the available snippets directly after leaving the last snippet (reaching it's final jump mark) without adding an additional tab or space character.

It would be nice if we could configure the popup list in the same way like snippets, e.g. through:

let g:UltiSnipsPopupOption = "b|i|w"

b = only at the beginning of a line
i = inword expansion (that's what I like to use because I don't have to provide the extra space / tab before I can get the list of snippets again)
w = word boundary

If the variable is left empty, the default could be used which is probably "w" atm.

Tia,
Ulf

Launchpad Details: #LP931372 Ulf Kohlmorgen - 2012-02-13 12:17:44 +0100

@SirVer
Copy link
Owner Author

SirVer commented Feb 15, 2014

It makes little sense to list a snippet when it would not be expanded. But there is a stupid bug lurking in the code (it is clearly marked in init.py with TODO makers and should be a low hanging fruit for contributors): ultisnips does not adhere to the snippet options properly when determining if a snippet should be listed - the snippet you have troubles with is likey a word-boundary option. It won't get listed directly after a non-whitespace due to this bug.

a new option as you propose makes no sense to me and will only be confusion for users.

Launchpad Details: #LPC SirVer - 2012-02-14 09:59:58 +0100

@SirVer
Copy link
Owner Author

SirVer commented Jul 11, 2015

Closing as duplicate of #177.

@SirVer SirVer closed this as completed Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant