From adce6da4ba7ff5f6f68e9c0c0a827ef62dd45a2d Mon Sep 17 00:00:00 2001 From: Jordi Adoumie Date: Sun, 24 Nov 2024 08:34:54 -0800 Subject: [PATCH] add built in window walker command to Poc --- .../WindowWalkerCommandsProvider.cs | 5 +---- .../cmdpal/WindowsCommandPalette/Views/MainViewModel.xaml.cs | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/WindowWalkerCommandsProvider.cs b/src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/WindowWalkerCommandsProvider.cs index 6c68586d8c..2ac1917a51 100644 --- a/src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/WindowWalkerCommandsProvider.cs +++ b/src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/WindowWalkerCommandsProvider.cs @@ -6,13 +6,10 @@ using System; using System.IO; using System.Linq; using System.Runtime.Versioning; -using Microsoft.CmdPal.Ext.WindowsTerminal.Helpers; -using Microsoft.CmdPal.Ext.WindowsTerminal.Pages; -using Microsoft.CmdPal.Ext.WindowsTerminal.Properties; using Microsoft.CmdPal.Extensions; using Microsoft.CmdPal.Extensions.Helpers; -namespace Microsoft.CmdPal.Ext.WindowsTerminal; +namespace Microsoft.CmdPal.Ext.WindowWalker; public partial class WindowWalkerCommandsProvider : CommandProvider { diff --git a/src/modules/cmdpal/WindowsCommandPalette/Views/MainViewModel.xaml.cs b/src/modules/cmdpal/WindowsCommandPalette/Views/MainViewModel.xaml.cs index 40fac3c4f2..11c4d77171 100644 --- a/src/modules/cmdpal/WindowsCommandPalette/Views/MainViewModel.xaml.cs +++ b/src/modules/cmdpal/WindowsCommandPalette/Views/MainViewModel.xaml.cs @@ -11,6 +11,7 @@ using Microsoft.CmdPal.Ext.Settings; using Microsoft.CmdPal.Ext.WindowsServices; using Microsoft.CmdPal.Ext.WindowsSettings; using Microsoft.CmdPal.Ext.WindowsTerminal; +using Microsoft.CmdPal.Ext.WindowWalker; using Microsoft.CmdPal.Extensions; using Microsoft.CmdPal.Extensions.Helpers; using Windows.Foundation; @@ -61,6 +62,7 @@ public sealed class MainViewModel : IDisposable BuiltInCommands.Add(new WindowsServicesCommandsProvider()); BuiltInCommands.Add(new RegistryCommandsProvider()); BuiltInCommands.Add(new WindowsSettingsCommandsProvider()); + BuiltInCommands.Add(new WindowWalkerCommandProvider()); ResetTopLevel();