csharp
public sealed class CommandPaletteSourceThe 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 CategoryWhat this source calls its results.
public bool UniformWhether 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