Home Download Buy Blog Forum Support

Goto Symbol in the whole project

Goto Symbol in the whole project

Postby vaxXxa on Sun Oct 07, 2012 4:29 pm

Use case: I remember class name (Python, PHP, etc...), but I can't remember filename. How can I use "Goto symbol" to find my class in the whole project, not only in the current file, or myfile@MyClass?
Last edited by vaxXxa on Sun Oct 14, 2012 8:42 am, edited 1 time in total.
Posts: 1
Joined: Sun Oct 07, 2012 4:25 pm

Re: Goto Symbol in all project

Postby jfunk on Wed Oct 10, 2012 1:05 pm

Out of the box sublime doesnt do this. I have tried to do the same thing. Most likely because doing that would be similar to a global search. Which with a large project can get quite slow. I bet with some monkeying in the python code you could find how to extend it on a global level. To give you a starting point, I enable sublime.log_commands(True) in the console and watch for the commands that are used to do that search. Then try and find that implementation in the python scripts used by Sublime.
Posts: 2
Joined: Tue Oct 02, 2012 2:19 pm

Re: Goto Symbol in the whole project

Postby MrTact on Mon Oct 15, 2012 11:39 pm

You should check out the ctags package. This is precisely what it exists for.
Posts: 3
Joined: Wed Jun 27, 2012 4:38 am

Re: Goto Symbol in the whole project

Postby stirrell on Tue Oct 16, 2012 2:25 am

Mr. Tact,

Is it possible to search for all symbols with the Ctags plug-in? Or just jump to a symbol that is being called in your code? I think Ctags just let's you jump to the symbol but you cannot search project-wide for a particular symbol. I could be wrong. If there is another plug-in that does this, I would be interested to hear about it.

Posts: 12
Joined: Thu Jan 12, 2012 4:04 pm
Location: South Portland, ME

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], uydscuyast and 27 guests