Comment 3 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

I have looked at Mark Webber's fork before, but for the some reason I
decided to stick with the Ultisnips main branch.

I will welcome the new release when it is done...

Regards,

Jorge

On Sun, Apr 21, 2013 at 3:48 PM, SirVer <email address hidden> wrote:

> take a look at the current v3.0 branch. I think what you want is already
> implemented there - though the code is not pretty.
>
>
> ** Changed in: ultisnips
> Status: New => Incomplete
>
> --
> 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
>