A custom language plugin can provide its items to be included in the lists shown when the user chooses the or action.
Provide implementations of ChooseByNameContributorEx
interface (separate implementations need to be provided for Class and Symbol, respectively), and register them in the com.intellij.gotoClassContributor
extension point or com.intellij.gotoSymbolContributor
extension point.
Each ChooseByNameContributorEx
implementation must provide the following methods:
processNames(@NotNull Processor<? super String> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter)
Feeds the processor with a complete list of names available in a specified scope, which the IDE will then filter according to the text typed by the user in the dialog. Using Indexing and PSI Stubs to obtain matching candidates is highly recommended to improve performance.
processElementsWithName(String name, Processor<? super NavigationItem> processor, FindSymbolParameters parameters)
Feeds the processor with a list of NavigationItem
instances (typically PsiElement
) matching the given name and parameters. Processed NavigationItem
s specify the destinations to jump to when a specific item is selected from the list.
Example:
19 March 2025
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4