tmm1 / ripper-tags

fast, accurate ctags generator for ruby source code using Ripper
MIT License
550 stars 43 forks source link

Support `--fields=+l` option #81

Closed jackkinsella closed 6 years ago

jackkinsella commented 6 years ago

Motivation: Code completion engines for Vim can be configured to draw upon tag files to power their suggestions. However, some of the major engines (e.g. YouCompleteMe ) need the language field to be present in the tag files so that they can give appropriate completions for the type of file you are editing.

More generally speaking, I think that the more ripper-tags resembles ctags from an external interface POV, the better. The library should be plug-and-play replacement for the Ruby programmer.

What needs to be done: In implementation terms, this simply means adding a column that reads language:Ruby to every line produced by ripper-tags.

Happy to send a PR if you're interested in supporting this option (though LMK if there are any gotchas I should watch out for!)

mislav commented 6 years ago

PR welcome! 💟