Assign Shortcut to SearchEverywhereContributor

Answered

I wrote a plugin which adds a SearchEverywhereContributor, which works fine so far.
Now I want to add a keyboard shortcut to open the corresponding tab in the SearchEverywherePopup.
So far I found out, that the shortcuts are registered in the class SearchEverywhereManagerImpl::createShortcutsMap.

But how can I extend this class or is there any other way to assign a shortcut to my SearchEverywhereContributor?

2 comments
Comment actions Permalink

This seems not possible indeed. Why do you need a separate tab?
We usually don't recommend to add custom tabs as noted in com.intellij.ide.actions.searcheverywhere.SearchEverywhereContributor#isShownInSeparateTab

0
Comment actions Permalink

Hi Yann,

Thanks for your answer.

It's a search for a snippet database, which can have a lot of results.
Maybe I will stick to a custom popup then.

Thanks,

René

0

Please sign in to leave a comment.