Comment 9 for bug 1171227

Revision history for this message
Jorge (skeept) wrote : Re: [Bug 1171227] Re: Add function do return a vim dictionary with current snippets

Thanks, I'll look into it later. But in this case there should be no change
in the buffer when this function is called. All it does is to return a vim
dictionary to be used by external tools.

On Mon, Apr 22, 2013 at 12:56 PM, SirVer <email address hidden> wrote:

> test.py - it is essentially end-to-end tests. write a new one there,
> just dump the output you expect into the buffer and compare it with a
> golden state.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1171227
>
> Title:
> Add function do return a vim dictionary with current snippets
>
> Status in UltiSnips - The Ultimate Snippet Solution for Vim:
> Incomplete
>
> Bug description:
> Hi Sirver,
>
> I wrote two small functions, one in vimL UltiSnips_SnippetDict which
> calls another function in python
> list_snippets_dict which is similar to list_snippets but just returns a
> vim dictionary with the snippets and description.
>
> The purpose of this is to be able to list the matching snippets via a
> pump instead of in the bottom of the window.
> For this the user would need to install two plugins from Ingo Karkat:
> SnippetComplete and SnippetCompleteSnipMate.
>
> I will email the author of those plugins to see if he can change one of
> them so it will support ultisnips
> (the only change will be to replace the line
>
> let l:snippets = GetSnipsInCurrentScope()
> by the line
> let l:snippets = UltiSnips_SnippetDict()
>
> so I don't antecipate a big problem there.
>
> I tried to record a short video showing the functionality:
> http://youtu.be/Cm7lzcS7SWM
>
> Please accept the patch or let me know issues you see with it.
> If you decide to accept and once I hear from Ingo I will also add
> additional information to the documentation so the users can use this
> functionality.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ultisnips/+bug/1171227/+subscriptions
>