Assign Shortcut to SearchEverywhereContributor


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?

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

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.




Please sign in to leave a comment.