Vixen
02b45cc4
csharp
public interface IPaletteSource

Somewhere the palette looks.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The palette is not a command list, and building it as one is the mistake. Doc 11 asks for "fuzzy search over commands, assets, scene objects, and settings" — four sources with nothing in common except that each can answer "what of yours matches this?" — so the palette takes an ordered list of these and merges what they return. The scene view's source is not this assembly's business, and it never becomes it.

A source does its own matching. An asset source with a hundred thousand entries wants an index rather than a linear scan through a scorer, and the palette that told it how to search would prevent that. What the palette owns is the merge, the ranking and the cap.

Fields and properties (1)

  • string Category

    What this source calls its results.

Methods (1)

  • void Search(string query, List<PaletteItem> results, int limit)

    Adds what matches to the list.

Used by (5)

  • AssetSearchSourceVixen.Editor.App
  • CommandPaletteVixen.Editor.Ui
  • CommandPaletteSourceVixen.Editor.Ui
  • DelegatePaletteSourceVixen.Editor.Ui
  • EntitySearchSourceVixen.Editor.App