dan-t / rusty-tags

Create ctags/etags for a cargo project
Other
409 stars 32 forks source link

[feature request] Flag for skipping impls #66

Closed osa1 closed 4 years ago

osa1 commented 4 years ago

Currently if I have a struct Foo { ... } and impl Foo { ... }, rusty-tags generates two tags for Foo, one for the type definition, another one for the impl. Most of the time unless I'm looking for a function I only want type definitions, so a flag for omitting impls would be helpful.

dan-t commented 4 years ago

On Tue, Dec 03, 2019 at 06:24:21AM -0800, Ömer Sinan Ağacan wrote:

Currently if I have a struct Foo { ... } and impl Foo { ... }, rusty-tags generates two tags for Foo, one for the type definition, another one for the impl. Most of the time unless I'm looking for a function I only want type definitions, so a flag for omitting impls would be helpful.

You can get it by adding ctags_options = "--Rust-kinds=-c" to your config.

At the end it's about the ctags options and I don't want a separate flag for them or having to deal with the merging of flags and the config.

But I would be fine if you create a pull request for adding a command line argument for the ctags options.