diff --git a/src/Files.App/Views/ColumnShellPage.xaml.cs b/src/Files.App/Views/ColumnShellPage.xaml.cs index 601722f82561..af2d466150bd 100644 --- a/src/Files.App/Views/ColumnShellPage.xaml.cs +++ b/src/Files.App/Views/ColumnShellPage.xaml.cs @@ -29,6 +29,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; @@ -236,7 +237,14 @@ private async void ColumnShellPage_PreviewKeyDown(object sender, KeyRoutedEventA { path = SlimContentPage.SelectedItem.ItemPath; } - // TODO open path in Windows Terminal + + var terminalStartInfo = new ProcessStartInfo() + { + FileName = "wt.exe", + WorkingDirectory = path + }; + Process.Start(terminalStartInfo); + args.Handled = true; break; diff --git a/src/Files.App/Views/ModernShellPage.xaml.cs b/src/Files.App/Views/ModernShellPage.xaml.cs index c666da6c6476..18e524b0ed43 100644 --- a/src/Files.App/Views/ModernShellPage.xaml.cs +++ b/src/Files.App/Views/ModernShellPage.xaml.cs @@ -28,6 +28,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.CompilerServices; @@ -222,7 +223,13 @@ private async void ModernShellPage_PreviewKeyDown(object sender, KeyRoutedEventA if (SlimContentPage?.SelectedItem?.PrimaryItemAttribute == StorageItemTypes.Folder) path = SlimContentPage.SelectedItem.ItemPath; - // TODO open path in Windows Terminal + var terminalStartInfo = new ProcessStartInfo() + { + FileName = "wt.exe", + WorkingDirectory = path + }; + Process.Start(terminalStartInfo); + break; case (false, false, false, true, VirtualKey.Space): // space, quick look