How can I open the Search Everywhere dialog from a plugin?

I'm creating a plugin that takes the current editor file name, modifies it slightly, and opens the search everywhere dialog with the modified filename.

Is there a way to programatically open the Search Everywhere dialog and populate it?

0
1 comment
Avatar
Permanently deleted user

Search everywhere action gets current selection from editor and uses it as initial search request.

Try to open Search Everywhere dialog like this:

ActionManager am = ActionManager.getInstance();

am.tryToExecute(am.getAction("SearchEverywhere"), //some arguments to persuade Search Everywhere to use file name as fake editor selection);

 

0

Please sign in to leave a comment.