Last Updated: February 25, 2016
·
4.842K
· smathy

ctags in Rails project

If you're like me, then you program Rails and you use ctags to navigate your project.

But, you don't want your tags to include only what's in your own project. Sometimes you want to follow a call into a gem, or into Rails itself.

Well, alias this my friends:

ctags -R . $(bundle list --paths)

That's right, using Bundler you can get a list of all the paths to the gems that you're using in your project, and you can include them in the tags that you generate for your project.

FWIW, I also use the -f .tags option so I end up with a hidden .tags file.