Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse. Fuzzy search in Quick Switch Editor

Using Quick Switch Editor (ctrl+E) in Eclipse allows one to navigate trough currently open tabs. Thing that bugs me is: you must use wildcard (*) to performe fuzzy search. It looks like it's more convenient to use Open Type (ctrl+shift+T) functionality that support fuzzy search then Quick Switch Editor.

Is there any Eclipse configuration that I miss or plugin that will make my life better?

Kind regards.

like image 762
Vehpsr Dfcbkmjdbx Avatar asked Jan 10 '15 17:01

Vehpsr Dfcbkmjdbx


Video Answer


2 Answers

I use AutoHotKey to automatically type * whenever I press Ctrl+E, which ends up being essentially the same as Quick Switch Editor using wildcard by default.

AutoHotKey Script:

#IfWinActive, ahk_class SWT_Window0
~^e::Send {*}

You could also set up something similar for "Open Resource" (Ctrl+Shift+R) and "Quick Outline" (Ctrl+O).

like image 128
Alex Graham Avatar answered Sep 17 '22 15:09

Alex Graham


Quite some time past since I asked this question, but I think I have something to add now.

GotoFile plugin, I believe is good solution to above problem. It will perform fuzzy-search on all WorkSpace projects.

As it is it doesn't quite address 'navigate trough currently open tabs' problem, but I decided to improve it a bit. For example, if search term starts with '.' it will prioritize open tabs (search will be performed on all files, but open will appear on top; '.' itself will be ignored). Case sensitive fuzzy-search (with 'In' search term resource IndexPage.java will have priority over index.js). On startup -- just display list of currently open tabs (like Ctrl + E currently does).

Basically idea is to have 'single point of access' for QuickSwitchEditor, OpenType and OpenResource functionality. true, it will not replace them, but eliminate 90% of everyday use.

like image 30
Vehpsr Dfcbkmjdbx Avatar answered Sep 19 '22 15:09

Vehpsr Dfcbkmjdbx