≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1932

Feature request #1932: CommandT to search for tags

Kind feature request
Product Command-T
When Created 2011-12-02T23:59:02Z, updated 2012-02-21T06:35:00Z
Status closed
Reporter Noon Silk
Tags no tags

Description

Command-T is undeniably brilliant and useful, as are tags files. Currently I use the inbuilt tag searcher to get to tags of interest (:ts /foo to search, and so on), I think it would be amazing to have a Command-T prompt to search for these, just as there is one to search for buffers.

I imagine at least initially it could look in the current dir for a tags file, but could also just iterate over them, or use the same lookup strategy as :ts. The proposed implementation is fairly obvious, I think: Fuzzy search on tag name, load up tag location based on selection, etc.

I've looked at the Ruby code, but unfortunately I don't know ruby well enough to add this myself (I will try, though, if this feature is rejected).

Hope you accept this feature! Thanks for Command-T!

Comments

  1. Greg Hurrell 2011-12-03T19:11:44Z

    This is a duplicate of feature request #1746 so I am going to mark this one as closed.

    As I said in that ticket, I am not much of a tags user myself (I would be, but I've never been able to get tags working properly in a Ruby on Rails project). As such, I'm not really in a position to develop and test this feature myself.

    You're welcome to have a try at it. Check out the Git repo and look at how the buffer search was added, and more recently, the jumplist navigation. I suspect that you might be able to get the output of :tags and use that (or something similar, I'm really not familiar with Vim's tag-related commands); but basically you just want to get a list of all tags and then let Command-T do its thing.

    Getting it to not only jump to the right file, but also the right line within a file, is probably going to be trickier, as Command-T has only ever cared about opening files and buffers. I think just opening the file with the tag in it is a reasonable start though.

    Anyway, as I said, this ticket is a duplicate so please continue any further conversation about the issue over on ticket #1746.

  2. Greg Hurrell 2012-02-21T06:35:00Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets