Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Find the ctags file in .git/tags? #77

Open
mathie opened this issue Feb 25, 2015 · 2 comments · May be fixed by #137
Open

Find the ctags file in .git/tags? #77

mathie opened this issue Feb 25, 2015 · 2 comments · May be fixed by #137

Comments

@mathie
Copy link

mathie commented Feb 25, 2015

I'm not sure where I picked it up from, but I have a git repository template with a post-commit hook that automatically generates a tags file when I commit to, or update the repository. You can find the hooks in my dot-files, here.

Would it be possible for symbols-view to pick up this tags file? Couple of things to note:

  • the tags file is at ${PROJECT}/.git/tags; and

  • the file references in the tags file are relative to ${PROJECT}/.git (if that makes sense?) So ApplicationController's entry in the tags file is:

    ApplicationController   ../app/controllers/application_controller.rb    /^class ApplicationController < ActionController::Base$/;"      c
    

I discovered the latter when I lazily tried symlinking the existing tags file into my project root and it still wouldn't find the symbols. 😄

@TrevorS
Copy link

TrevorS commented Jun 28, 2015

👍

@mathie You probably got it from here:
http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html.

:)

@lzap
Copy link
Contributor

lzap commented Jun 30, 2015

Yeah I do the same, but I don'ŧ use ctags but https://github.com/tmm1/ripper-tags and also automatic tagger https://github.com/lzap/gem-ripper-tags of course with hooks :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants