1aff3bc216
* Created a ViewModel class in the Command Palette called FilteredCommand, aggregating the Command, the filter and the highlighted presentation of the command name * This ListView of the filtered commands is bound to the vector of FilteredCommands * Introduced HighlightedTextControl user control with HighlightedText view model * Added this control to the ListView Item's grid * Bound the FilteredCommand's highlighted command name to the user control ## Validation Steps Performed * UT for matching algorithm * Only manual tests * Searching in CommandLine, SwitchTab and Nested Command modes * Checking for bot matching an non matching filters * Dogfooding Closes #6646
23 lines
631 B
Plaintext
23 lines
631 B
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
import "IDirectKeyListener.idl";
|
|
import "ShortcutActionDispatch.idl";
|
|
import "HighlightedTextControl.idl";
|
|
|
|
namespace TerminalApp
|
|
{
|
|
[default_interface] runtimeclass FilteredCommand : Windows.UI.Xaml.Data.INotifyPropertyChanged
|
|
{
|
|
FilteredCommand();
|
|
FilteredCommand(Microsoft.Terminal.Settings.Model.Command command);
|
|
|
|
Microsoft.Terminal.Settings.Model.Command Command { get; };
|
|
String Filter;
|
|
HighlightedText HighlightedName { get; };
|
|
Int32 Weight;
|
|
|
|
void UpdateFilter(String filter);
|
|
}
|
|
}
|