To add a new Search Provider, refer to the examples in the SearchProvider class.
These examples create a function and tag it with the SearchItemProvider attribute:
SearchProvider instance.SearchProvider instance must have the following:
type. For example, Asset, Menu, or Scene.displayName to use in the Filters pane.filterId provides a search token for text-based filtering. For example, p: is the filter ID for Asset searches.To register a shortcut for a new provider, use:
[UsedImplicitly, Shortcut("Help/Quick Search/Assets")]
private static void PopQuickSearch()
{
// Open Search with only the "Asset" provider enabled.
SearchService.ShowContextual("asset");
}
You can map shortcuts to keys or key combinations using the shortcuts manager.