ajermakovics/eclipse-instasearch

Change key-bind?

manavortex opened this issue · 2 comments

Hey there,

I love this plugin - I've been dying to find a Notepad++-like "Find in project"-function for ages. However, I'd like to change the key bind to Ctrl+Shift+F (yes, I've been beating my Eclipse to work more like Notepad++...) Is this possible? I don't mind hacking a file if I have to, just point me to the right location.

Thank you for your work!

Hi!

It might be possible to change the key binding via Eclipse preferences.
If not, I think the default one is defined in here https://github.com/ajermakovics/eclipse-instasearch/blob/master/instasearch/plugin.xml#L204 but it's been a while so I might be mistaken.

Hi,

We could change the key binding of instasearch from M4 to M1

M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms
....
M4 is the CTRL key on MacOS X, and is undefined on other platforms

But changing the current key bind to M4+M3+I results to a conflict with other key binding. which I propose to change it or add another key modifier which results to M1+M2+M3+I.

What do you think?

<extension
point="org.eclipse.ui.bindings">
<key
commandId="it.unibz.instasearch.ui.ShowInstaSearch"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M4+M3+I">
</key>
</extension>