October 05, 2004

Cool Eclipse plug-in: GotoFile

GotoFile is an Eclipse plug-in that lets you find a file in your workspace based on fuzzy naming.  This is different from Ctrl-Shift-R ("Find resource", which is useful when you are trying to find a file that is not a Java source).  The key here is that the file search only needs to have the letters you type appear in the same order you type them.

For example, TestNG contains dozens of files starting with Test:  TestException, TestClass, TestMethod, Test1, etc...  Even the super-fast Ctrl-E shortcut sometimes requires a few extra keys to reach the correct buffer.  With this plug-in, I can just type "tc" and TestClass is automatically selected.

Interestingly, emacs used to have a similar package to locate Emacs-Lisp files, so it's good to see that good ideas never really die.

At any rate, congratulations to Max Muermann for his idea!

 

Posted by cedric at October 5, 2004 11:47 AM
Comments

Emacs *used to* have a similar package ?

It still does, it's called ido and it works with buffer names as well as file names.

http://www.cua.dk/ido.html

Posted by: Suraj at October 5, 2004 12:28 PM

Idea 4.0 does this also. Not a new idea, but a *fantastic* feature. I use it all the time in IDEA. You can type things like "cc" to find "CustomerCollection".

Posted by: Eric Burke at October 5, 2004 12:42 PM

I hope you've noticed that both open type and open resource already have this feature.

./the_mindstorm

Posted by: the_mindstorm at October 5, 2004 03:12 PM

Please ignore the above (I've missed the fuzzy naming part). sorry.

./the_mindstorm

Posted by: the_mindstorm at October 5, 2004 03:26 PM

So... the main difference between Open Type (Ctrl-Shift-T) and Open Resource (Ctrl-Shift-R) and this is you don't have to type the * between characters (e.g. g*f)?

Posted by: R.J. at October 5, 2004 03:33 PM

This "fuzzy naming' scheme is also to be found in LaunchBar and Quicksilver.

Posted by: Jonathan Feinberg at October 6, 2004 05:01 AM

Actually, you couldn't do just
g*f
with Open Resource (Ctrl-Shift-R). You'd have to do
*g*f*

Posted by: Colin Sampaleanu at October 6, 2004 06:58 AM

Well, actually I was able to use g*f* ;) - but you are right, I made a typo.

Posted by: R.J. at October 6, 2004 07:06 AM

Oh, but your point was to meet his example I would need those 3 stars. My bad.

Posted by: R.J. at October 6, 2004 07:07 AM

IntelliJ Idea 2.6 had this

Posted by: na at October 9, 2004 11:02 AM

I am not impressed with GotoFile plugin. It is slower than Eclipse inbuilt "Open Resource" plugin. I wonder if anyone have ever built a good file search plugin for eclipse.

I started writing one. Finally, it ended up with same problem (not faster than "Open Resource" ). It looks like the results are cached in "Open Resource" plugin. I wonder how to achieve that for my own plugin.

Posted by: bap at October 5, 2009 12:39 PM
Post a comment






Remember personal info?