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!
Comments (11)
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
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".
I hope you've noticed that both open type and open resource already have this feature. ./the_mindstorm
Please ignore the above (I've missed the fuzzy naming part). sorry. ./the_mindstorm
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)?
This "fuzzy naming' scheme is also to be found in LaunchBar and Quicksilver.
Actually, you couldn't do just g*f with Open Resource (Ctrl-Shift-R). You'd have to do *g*f*
Well, actually I was able to use g*f* ;) - but you are right, I made a typo.
Oh, but your point was to meet his example I would need those 3 stars. My bad.
IntelliJ Idea 2.6 had this
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.