Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#298 CtagsInterface Remove all sources command

closed-fixed
Tom Power
None
5
2012-05-23
2012-05-16
Jarek Czekalski
No

Tom, since we have an active CtagsInterface maintainer (good job), I'll step up with a feature request.

Most of my projects have a "Dialog" method. And many methods with repeating names. So I chose to always remove old tag sources (e.g. an old project) through CtagsInterface option pane. That's a bit inconvenient way to clean all the sources. Don't you think a command like "Remove all sources" would be handy?

Or maybe I need an advice on how to properly use the plugin. Note that I not only tag projects. Sometimes I tag directories.

Discussion

  • What do you mean by "remove all sources"? Do you wish to erase the tag index completely and then add only those you're interested in?
    While this is not very convenient, note that the tag index is a Lucene index. There is an open source tool named Luke, which lets you query (and as far as I know also modify) a Lucene index. You can use it while jEdit is not running to clean undesired parts of the tag index, e.g. using a query. It is possible to write sort of 'tag index cleaner' in CtagsInterface, but maybe Luke can do the job well without this effort.

     
  • Tom Power
    Tom Power
    2012-05-16

    An action to remove all the tags from the index sounds useful to me and be happy to add it and respond to any bugs etc.

    Goes without saying that Shlomy knows a million times more than me about this though so whatever he thinks, everything I've done on the plugin has been implementing methods he wrote and just happy to be helping out.

     
  • There is currently just a single tag index - the index is not per project or directory tree. If you decide to provide an action to delete all tags from the index, the simplest way to do this is to simply delete the tag index directory.

     
  • Shlomy, you ask what I meant by "remove all sources". Wasn't that clear when I said that I do it "through CtagsInterface option pane"? I am able to remove all the sources, but it is inconvenient. How do I remove them? I remove all the entries from "Source trees", "Files", "Projects". These are the option panes in the plugin.

     
    • status: open --> closed-fixed
     
  • Tom, please close the tickets that you fix in trunk.