This PR changes the ATS display order to _always_ be in most recently used (MRU) order. I chose not to give ATS the option to be displayed in-order because that order is better served through the traditional left-right TabRow switching. _Note_: `TabSearch` will stay in-order. This means that users can only choose one order or another in their `nextTab/prevTab` bindings. Setting `useTabSwitcher` to true will make nT/pT open the ATS in MRU order. If it's set to false, the ATS won't open and nT/pT will simply go left and right on the TabRow. I'm open to getting rid of the global and making ATS its own keybinding, but for now I figured I would keep the current behavior and open the PR to get eyes on the code that doesn't have anything to do with the settings. Closes #973
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
import "IDirectKeyListener.idl";
|
|
import "ShortcutActionDispatch.idl";
|
|
|
|
namespace TerminalApp
|
|
{
|
|
[default_interface] runtimeclass CommandPalette : Windows.UI.Xaml.Controls.UserControl, Windows.UI.Xaml.Data.INotifyPropertyChanged, IDirectKeyListener
|
|
{
|
|
CommandPalette();
|
|
|
|
String NoMatchesText { get; };
|
|
String SearchBoxPlaceholderText { get; };
|
|
String PrefixCharacter { get; };
|
|
String ControlName { get; };
|
|
String ParentCommandName { get; };
|
|
|
|
Windows.Foundation.Collections.IObservableVector<Microsoft.Terminal.Settings.Model.Command> FilteredActions { get; };
|
|
|
|
void SetCommands(Windows.Foundation.Collections.IVector<Microsoft.Terminal.Settings.Model.Command> actions);
|
|
void SetTabActions(Windows.Foundation.Collections.IVector<Microsoft.Terminal.Settings.Model.Command> tabs);
|
|
void SetKeyBindings(Microsoft.Terminal.TerminalControl.IKeyBindings bindings);
|
|
void EnableCommandPaletteMode();
|
|
|
|
void SelectNextItem(Boolean moveDown);
|
|
|
|
void SetDispatch(ShortcutActionDispatch dispatch);
|
|
|
|
void EnableTabSwitcherMode(Boolean searchMode, UInt32 startIdx);
|
|
}
|
|
}
|