24 lines
526 B
C#
24 lines
526 B
C#
namespace AxCopilot.Views;
|
|
|
|
internal sealed class SlashPaletteState
|
|
{
|
|
public List<(string Cmd, string Label, bool IsSkill)> Matches { get; set; } = [];
|
|
|
|
public int SelectedIndex { get; set; } = -1;
|
|
|
|
public string? ActiveCommand { get; set; }
|
|
|
|
public void ResetMatches(List<(string Cmd, string Label, bool IsSkill)> matches)
|
|
{
|
|
Matches = matches;
|
|
SelectedIndex = -1;
|
|
}
|
|
|
|
public void Clear()
|
|
{
|
|
Matches = [];
|
|
SelectedIndex = -1;
|
|
ActiveCommand = null;
|
|
}
|
|
}
|