Vixen
02b45cc4
csharp
public sealed class CommandPaletteSource

The palette's view of the command registry.

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

Remarks

⚠ A command that cannot run is shown and refuses, rather than being hidden. A palette that hides disabled commands is one where "Undo" disappearing means either that there is nothing to undo or that the editor has forgotten how — and the user cannot tell which. It also makes the list flicker as the selection changes underneath it.

Fields and properties (2)

  • public string Category

    What this source calls its results.

  • public bool Uniform

    Whether every result is filed under Category rather than its own.

Methods (2)

  • public CommandPaletteSource(CommandRegistry commands, KeyMap keys)

    Searches a registry.

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

    Adds what matches to the list.

Used by (3)

  • EditorApplicationVixen.Editor.App
  • EditorShellVixen.Editor.Ui
  • PaletteTestsVixen.Editor.Ui.Tests