remote-edit-ni icon indicating copy to clipboard operation
remote-edit-ni copied to clipboard

Feature request: using ctags remotely

Open DamienHuet opened this issue 5 years ago • 3 comments

Hello, Thanks for this beautiful package. A feature that would be very useful would be to navigate in the project remotely using ctags. Right now, when a file from a project is open remotely, it is not possible to locate and be directed to the declaration of a variable/function using the ctags package. Is there any way this could be possible in a new release? It would be very time-saving when working on big projects. Thanks

DamienHuet avatar Sep 22 '19 21:09 DamienHuet

With a quick search around, it seems that ctags are working on a per-project basis. The current implementation is per-file rather than per-project (we are opening a single remote file rather than a folder). I assume you are interested in having the whole project's ctags right (so you can jump to different files)?

Maybe we could have a ctags file containing all definitions of currently opened files but this would require refreshing on open/close.

Time is very limited lately so I cannot promise I will find any to look into this but it definitely sounds like a good feature to have.

urban-1 avatar Nov 04 '19 11:11 urban-1

Hi and thank you for your answer. That's right, the ctags are a per-project basis, and it would be interesting to have the whole project ctags. With this ctags package, all the information is stored in a file .tags at the root of the project, and this file is updated when hitting the "rebuild ctags" instruction (which typically does not happen too often). So I guess my question reformulates as: is it possible to remotely use this (already generated) .tags file that contains information about the whole project in order to open a specific file when asking from a remote file to jump to the definition/declaration of a function/variable?

DamienHuet avatar Nov 12 '19 22:11 DamienHuet

Not using ctags myself, but happy to look at code submissions...

newinnovations avatar Nov 23 '19 15:11 newinnovations