Add Git overlay, operation tools, and virtualized preview so large folders stay responsive.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-24 15:04:04 +02:00
parent 9bf451932f
commit a3c54bbb03
127 changed files with 14748 additions and 633 deletions

View File

@@ -0,0 +1,62 @@
using System.Diagnostics;
using Explorer.Application;
using Explorer.Domain;
namespace Explorer.Windows;
public sealed class WindowsWorkspaceLauncher : IWorkspaceLauncher
{
public void OpenTerminal(string directory)
{
var dir = PathRules.FromExtended(directory);
if (!Directory.Exists(dir))
{
return;
}
if (TryStart("wt.exe", "-d " + Quote(dir)))
{
return;
}
TryStart("cmd.exe", "/k cd /d " + Quote(dir));
}
public bool TryOpenInCursor(string directory)
{
var dir = PathRules.FromExtended(directory);
if (!Directory.Exists(dir))
{
return false;
}
var cursor = CursorLocator.Find();
if (cursor is not null)
{
return TryStart(cursor, Quote(dir));
}
return TryStart("cursor", Quote(dir));
}
private static bool TryStart(string fileName, string arguments)
{
try
{
Process.Start(new ProcessStartInfo
{
FileName = fileName,
Arguments = arguments,
UseShellExecute = true
});
return true;
}
catch
{
return false;
}
}
private static string Quote(string path)
=> path.StartsWith('"') ? path : "\"" + path.Replace("\"", "\\\"") + "\"";
}