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?
请先登录再写评论。
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);