All Projects → ivalkeen → Guard Ctags Bundler

ivalkeen / Guard Ctags Bundler

Licence: mit
Guard gem for generating ctags for project files and gems from project's bundle.

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Guard Ctags Bundler

lh-tags
ctags base updating, and browsing from vim
Stars: ✭ 25 (-75.96%)
Mutual labels:  ctags
Gen tags.vim
Async plugin for vim and neovim to ease the use of ctags/gtags
Stars: ✭ 288 (+176.92%)
Mutual labels:  ctags
Ctags Status
Atom Editor plugin that shows the class/function/scope name of the current line on the status bar.
Stars: ✭ 6 (-94.23%)
Mutual labels:  ctags
so stupid search
It's my honor to drive you fucking fire faster, to have more time with your Family and Sunshine.This tool is for those who often want to search for a string Deeply into a directory in Recursive mode, but not with the great tools: grep, ack, ripgrep .........every thing should be Small, Thin, Fast, Lazy....without Think and Remember too much ...一…
Stars: ✭ 135 (+29.81%)
Mutual labels:  ctags
dotfiles
Your dotfiles are how you personalize your system. These are mine.
Stars: ✭ 12 (-88.46%)
Mutual labels:  ctags
Ctags
A maintained ctags implementation
Stars: ✭ 4,768 (+4484.62%)
Mutual labels:  ctags
Starscope
Smart code search for Ruby, Go, and JavaScript
Stars: ✭ 248 (+138.46%)
Mutual labels:  ctags
Vista.vim
🌵 Viewer & Finder for LSP symbols and tags
Stars: ✭ 1,218 (+1071.15%)
Mutual labels:  ctags
lein-codeindex
Index code using etags, ctags or gtags.
Stars: ✭ 19 (-81.73%)
Mutual labels:  ctags
Gotags
ctags-compatible tag generator for Go
Stars: ✭ 789 (+658.65%)
Mutual labels:  ctags
vim-ctrlp-tjump
CtrlP extension for fuzzy-search in tag matches (:tjump replacement).
Stars: ✭ 90 (-13.46%)
Mutual labels:  ctags
dotvim
My Vim setup
Stars: ✭ 36 (-65.38%)
Mutual labels:  ctags
Codequery
A code-understanding, code-browsing or code-search tool. This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. It builds upon the databases of cscope and ctags, and provides a nice GUI tool.
Stars: ✭ 551 (+429.81%)
Mutual labels:  ctags
citre
Ctags IDE on the True Editor
Stars: ✭ 230 (+121.15%)
Mutual labels:  ctags
Unused
Deprecated; see https://github.com/unused-code/unused
Stars: ✭ 879 (+745.19%)
Mutual labels:  ctags
ctagsx
VSCode ctags implementation that actually works
Stars: ✭ 24 (-76.92%)
Mutual labels:  ctags
Ctags Patterns For Javascript
Exuberant Ctags Patterns for JavaScript
Stars: ✭ 368 (+253.85%)
Mutual labels:  ctags
Ptags
A parallel universal-ctags wrapper for git repository
Stars: ✭ 87 (-16.35%)
Mutual labels:  ctags
Vim.ana
The portable Vim IDE with all the trimmings, one-click installable on any standard box.
Stars: ✭ 37 (-64.42%)
Mutual labels:  ctags
Phpcomplete.vim
Improved PHP omnicompletion
Stars: ✭ 582 (+459.62%)
Mutual labels:  ctags

Guard-CTags-Bundler

Build Status

Guard-CTags-Bundler generates ctags for your project and for gems in your bundle. For project tags file tags is generated, for gems tags file gems.tags is generated.

Features

  • Initially developed for Rails projects, but theoretically can be used with any ruby project, that uses Bundler, with minimal configuration changes.
  • When you run bundle install in your project, gems.tags file is automatically is generated or updated.
  • When you save one of you project's ruby files, tags file is automatically generated or updated.
  • Only Linux is tested, but probably will work on Mac

Install

Make sure you have Guard installed.

Install the gem:

$ gem install guard-ctags-bundler

Add it to your Gemfile (inside development group):

gem 'guard-ctags-bundler'

And then add a basic setup to your Guardfile:

$ guard init ctags-bundler

Usage

Please, read Guard usage doc

Guardfile Options

:src_path => ".", # source path to be scanned for tags (default .)
:emacs => false, # run ctags in emacs mode and merge tags and gems.tags into TAGS file
:stdlib => true, # run ctags for core and stdlib, generating stdlib.tags (default false)
:binary => 'ctags-exuberant' # name of the ctags binary (default ctags)
:arguments => '-R --languages=ruby --fields=+l' # change the arguments passed to ctags (default '-R --languages=ruby')
:stdlib_file => "stdlib.tags" # name of tags file for stdlib references (default stdlib.tags)
:bundler_tags_file => "gems.tags" # name of tags file for bundler gems references (default gems.tags)
:project_file => "tags" # name of tags file for project references (default tags)
:gemfile => "Gemfile" # name of tags file for project references (default 'Gemfile')
:silent => false # Suppress regeneration notices

For a typical Rails application, Guardfile can look like this (default):

guard 'ctags-bundler', :src_path => ["app", "lib", "spec/support"] do
  watch(/^(app|lib|spec\/support)\/.*\.rb$/)
  watch('Gemfile.lock')
end

CTags

Ctags generates an index (or tag) file of language objects found in source files that allows these items to be quickly and easily located by a text editor or other utility. A tag signifies a language object for which an index entry is available (or, alternatively, the index entry created for that object).

In ubuntu you can install ctags by running

$ sudo apt-get install exuberant-ctags

Vim

Vim supports ctags by default. All you need to do is add your gems.tags file to the Vim's tag stack.

set tags+=gems.tags

Emacs

Ctags can be used with emacs too. Add :emacs => true option to your Guardfile and ctags will be generated with -e option:

guard 'ctags-bundler', :emacs => true, :src_path => ["app", "lib", "spec/support"] do
  watch(/^(app|lib|spec\/support)\/.*\.rb$/)
  watch('Gemfile.lock')
end

Thanks to Jorge Dias and Antono Vasiljev for emacs support.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Self-Promotion

If you like this project, please follow the repository on GitHub. Also, you might consider visiting my blog and following me on Twitter and Github.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].