yongkangchen / atom-ctags

better autocomplete for atom, using ctags
https://atom.io/packages/atom-ctags
MIT License
87 stars 35 forks source link

Feature suggestions #193

Open d3v-null opened 7 years ago

d3v-null commented 7 years ago

Hi there! I have 2 minor feature suggestions that could improve the Go to Declaration feature.

  1. I noticed that when I use atom-ctags:go-to-declaration, it sometimes duplicates my options for certain classes, most likely because I have a symlink from $HOME/GitHub to $Home/Documents/GitHub. Here is an example (see: last 2 options)

    No big deal but it might be a nice idea to resolve symlinks in a path and collapse equivalent paths.

  2. It would be very useful if I could search for a declaration go to. e.g. in the previous example, if I knew that I wanted to go to abstract.py, I'd like to be able to start typing abstract and narrow down my options instead of having to use my mouse to select the correct option.

I also have a feature suggestion for the atom-ctags:toggle-file-symbols function.

  1. I'd like to be able to narrow down my search to search for certain types of symbols/tags, e.g. classes / functions etc. I'm not sure what kind of data ctags gives you about how it classifies symbols/tags, but this information could be obtained from the surrounding source code.

Let me know what you think! If these are feasible features for an dev who is unfamiliar with this project to tackle in a reasonable amount of time and no one on the project has the time to take these on, then I'd be glad to attempt to implement these features. Especially number 3

Thanks.

jdanbrown commented 6 years ago

I just made https://github.com/yongkangchen/atom-ctags/pull/204 which I think addresses your feature request (2). Give it a try!