AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0
SelectionProvider
Selection provider - contributes actions to the multi-selection toolbar
Signature
interface SelectionProvider {
type: "selection";
id: string;
name: string;
priority?: number;
extensions?: string[];
mimeTypes?: string[];
categories?: FileCategory[];
canHandle?: (selectedFiles: FileEntry[]) => boolean;
minSelection?: number;
getItems: (ctx: SelectionContext, api?: SelectionActionAPI) => SelectionProviderItem[];
}Members
| Name | Type | Required | Description |
|---|---|---|---|
type | "selection" | yes | — |
id | string | yes | — |
name | string | yes | — |
priority | number | no | — |
extensions | string[] | no | Optional file-type filtering (only shows when all selected files match) |
mimeTypes | string[] | no | — |
categories | FileCategory[] | no | — |
canHandle | (selectedFiles: FileEntry[]) => boolean | no | Custom handler to check if provider applies to selection |
minSelection | number | no | Minimum number of selected items required (default: 2) |
getItems | (ctx: SelectionContext, api?: SelectionActionAPI) => SelectionProviderItem[] | yes | Generate action items for the current selection |