da24f7d939
## Summary of the Pull Request Currently, when the MRU is enabled we lose the keybinding allowing us to go forward/backward (aka right/left in LTR) in the tab view. To fix that, this PR introduces "tabSwitcherMode" optional parameter to the prevTab / nextTab commands. If it is not provided the global setting will be used. So if you want to go to adjacent tabs, even if MRU is enabled on the system level you can use: ``` { "command": { "action": "prevTab", "tabSwitcherMode": "inOrder" }, "keys": "ctrl+f1"} { "command": { "action": "nextTab", "tabSwitcherMode": "inOrder" }, "keys": "ctrl+f2"} ``` or even ``` {"command": { "action": "prevTab", "tabSwitcherMode": "disabled" }, "keys": "ctrl+f1"} { "command": { "action": "nextTab", "tabSwitcherMode": "disabled" }, "keys": "ctrl+f2"} ``` if you don't want tab switcher to show up <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/9330 * [x] CLA signed. * [x] Tests added/passed * [ ] Documentation updated - not yet. Waiting for approval. * [x] Schema updated. * [ ] I've discussed this with core contributors already.
81 lines
3 KiB
Plaintext
81 lines
3 KiB
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#include "IInheritable.idl.h"
|
|
|
|
import "ColorScheme.idl";
|
|
import "KeyMapping.idl";
|
|
import "Command.idl";
|
|
|
|
namespace Microsoft.Terminal.Settings.Model
|
|
{
|
|
// MIDL 3 allows for structs to hold nullable types
|
|
// Though IReference is a WinRT object, MIDL 3
|
|
// handles all of the ownership logic for us.
|
|
// Docs: https://docs.microsoft.com/en-us/uwp/midl-3/intro#types
|
|
struct LaunchPosition
|
|
{
|
|
Windows.Foundation.IReference<Int64> X;
|
|
Windows.Foundation.IReference<Int64> Y;
|
|
};
|
|
|
|
enum LaunchMode
|
|
{
|
|
DefaultMode,
|
|
MaximizedMode,
|
|
FullscreenMode,
|
|
FocusMode,
|
|
MaximizedFocusMode,
|
|
};
|
|
|
|
enum WindowingMode
|
|
{
|
|
UseNew,
|
|
UseAnyExisting,
|
|
UseExisting,
|
|
};
|
|
|
|
[default_interface] runtimeclass GlobalAppSettings {
|
|
Guid DefaultProfile;
|
|
INHERITABLE_SETTING(String, UnparsedDefaultProfile);
|
|
|
|
INHERITABLE_SETTING(Int32, InitialRows);
|
|
INHERITABLE_SETTING(Int32, InitialCols);
|
|
INHERITABLE_SETTING(Boolean, AlwaysShowTabs);
|
|
INHERITABLE_SETTING(Boolean, ShowTitleInTitlebar);
|
|
INHERITABLE_SETTING(Boolean, ConfirmCloseAllTabs);
|
|
INHERITABLE_SETTING(Windows.UI.Xaml.ElementTheme, Theme);
|
|
INHERITABLE_SETTING(Microsoft.UI.Xaml.Controls.TabViewWidthMode, TabWidthMode);
|
|
INHERITABLE_SETTING(Boolean, ShowTabsInTitlebar);
|
|
INHERITABLE_SETTING(String, WordDelimiters);
|
|
INHERITABLE_SETTING(Boolean, CopyOnSelect);
|
|
INHERITABLE_SETTING(Boolean, InputServiceWarning);
|
|
INHERITABLE_SETTING(Microsoft.Terminal.Control.CopyFormat, CopyFormatting);
|
|
INHERITABLE_SETTING(Boolean, WarnAboutLargePaste);
|
|
INHERITABLE_SETTING(Boolean, WarnAboutMultiLinePaste);
|
|
INHERITABLE_SETTING(LaunchPosition, InitialPosition);
|
|
INHERITABLE_SETTING(Boolean, CenterOnLaunch);
|
|
INHERITABLE_SETTING(LaunchMode, LaunchMode);
|
|
INHERITABLE_SETTING(Boolean, SnapToGridOnResize);
|
|
INHERITABLE_SETTING(Boolean, ForceFullRepaintRendering);
|
|
INHERITABLE_SETTING(Boolean, SoftwareRendering);
|
|
INHERITABLE_SETTING(Boolean, ForceVTInput);
|
|
INHERITABLE_SETTING(Boolean, DebugFeaturesEnabled);
|
|
INHERITABLE_SETTING(Boolean, StartOnUserLogin);
|
|
INHERITABLE_SETTING(Boolean, AlwaysOnTop);
|
|
INHERITABLE_SETTING(TabSwitcherMode, TabSwitcherMode);
|
|
INHERITABLE_SETTING(Boolean, DisableAnimations);
|
|
INHERITABLE_SETTING(String, StartupActions);
|
|
INHERITABLE_SETTING(Boolean, FocusFollowMouse);
|
|
INHERITABLE_SETTING(WindowingMode, WindowingBehavior);
|
|
|
|
Windows.Foundation.Collections.IMapView<String, ColorScheme> ColorSchemes();
|
|
void AddColorScheme(ColorScheme scheme);
|
|
void RemoveColorScheme(String schemeName);
|
|
|
|
KeyMapping KeyMap();
|
|
|
|
Windows.Foundation.Collections.IMapView<String, Command> Commands();
|
|
}
|
|
}
|