feature: add Repository Configure to command palette

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-03-06 11:11:52 +08:00
parent 659d37fcab
commit 242ab5b018

View File

@@ -98,7 +98,7 @@ namespace SourceGit.ViewModels
repo.CreateNewTag();
}));
_cmds.Add(new($"{App.Text("Fetch.Title")}...", "fetch", "Fetch", async () =>
_cmds.Add(new($"{App.Text("Fetch")}...", "fetch", "Fetch", async () =>
{
var repo = _repo;
_launcher.CancelCommandPalette();
@@ -112,7 +112,7 @@ namespace SourceGit.ViewModels
await repo.PullAsync(false);
}));
_cmds.Add(new($"{App.Text("Push.Title")}...", "push", "Push", async () =>
_cmds.Add(new($"{App.Text("Push")}...", "push", "Push", async () =>
{
var repo = _repo;
_launcher.CancelCommandPalette();
@@ -133,6 +133,13 @@ namespace SourceGit.ViewModels
repo.ApplyPatch();
}));
_cmds.Add(new($"{App.Text("Configure")}...", "configure", "Settings", async () =>
{
var repo = _repo;
_launcher.CancelCommandPalette();
await App.ShowDialog(new RepositoryConfigure(repo));
}));
_cmds.Sort((l, r) => l.Label.CompareTo(r.Label));
_visibleCmds = _cmds;
_selectedCmd = _cmds[0];