Phials developer documentation
User guide
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

ContextItemContext

Context passed to context menu item callbacks. Provides access to the current file(s) and pane.

Signature

interface ContextItemContext {
    entry: FileEntry;
    entries: FileEntry[];
    pane: PluginPaneContext;
}

Members

NameTypeRequiredDescription
entryFileEntryyesThe primary file entry (for single mode, the right-clicked file; for multi, the first selected)
entriesFileEntry[]yesAll selected file entries (for multi mode; for single mode, just [entry])
panePluginPaneContextyesThe pane context