snipmate_for_django icon indicating copy to clipboard operation
snipmate_for_django copied to clipboard

Don't work with TagList plugin

Open ghost opened this issue 14 years ago • 4 comments

If you install this snippets, the TagList plugin http://www.vim.org/scripts/script.php?script_id=273 don't show the tags in python

ghost avatar Apr 30 '10 13:04 ghost

I have the same problem. Has anyone found a solution?

bawolk avatar Aug 25 '10 15:08 bawolk

me too

terryh avatar Sep 20 '10 04:09 terryh

I haven't found one. Honestly, the best thing to do would probably be to just cat django.snippets >> python.snippets, not mess with ft, and be done with it. I thought the dot-convention was internal to vim and the natural way of using filetype, but it appears most plugins don't use it that way. Another tag-related plugin, easytags.vim, does the same thing and it's clear it's simply passing django.python to ctags, which rightly doesn't recognize it. It should be splitting on . and then trying each one until there's a hit, in my opinion.

tdavis avatar Nov 09 '10 23:11 tdavis

I had the same problem with snippets for symfony and I just made a quick fix to the Taglist plugin so that it only considers the first part of the filetype when it is a composed one. So if you choose python.django as filetype, only python will be considered by taglist.

Here is my modified version : https://github.com/K-Phoen/Config/blob/master/vim/vim/plugin/taglist.vim

Hope it will help you ;)

K-Phoen avatar Jun 23 '11 22:06 K-Phoen