Skip to content

Commit 242ab5b

Browse files
committed
feature: add Repository Configure to command palette
Signed-off-by: leo <longshuang@msn.cn>
1 parent 659d37f commit 242ab5b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/ViewModels/RepositoryCommandPalette.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public RepositoryCommandPalette(Launcher launcher, Repository repo)
9898
repo.CreateNewTag();
9999
}));
100100

101-
_cmds.Add(new($"{App.Text("Fetch.Title")}...", "fetch", "Fetch", async () =>
101+
_cmds.Add(new($"{App.Text("Fetch")}...", "fetch", "Fetch", async () =>
102102
{
103103
var repo = _repo;
104104
_launcher.CancelCommandPalette();
@@ -112,7 +112,7 @@ public RepositoryCommandPalette(Launcher launcher, Repository repo)
112112
await repo.PullAsync(false);
113113
}));
114114

115-
_cmds.Add(new($"{App.Text("Push.Title")}...", "push", "Push", async () =>
115+
_cmds.Add(new($"{App.Text("Push")}...", "push", "Push", async () =>
116116
{
117117
var repo = _repo;
118118
_launcher.CancelCommandPalette();
@@ -133,6 +133,13 @@ public RepositoryCommandPalette(Launcher launcher, Repository repo)
133133
repo.ApplyPatch();
134134
}));
135135

136+
_cmds.Add(new($"{App.Text("Configure")}...", "configure", "Settings", async () =>
137+
{
138+
var repo = _repo;
139+
_launcher.CancelCommandPalette();
140+
await App.ShowDialog(new RepositoryConfigure(repo));
141+
}));
142+
136143
_cmds.Sort((l, r) => l.Label.CompareTo(r.Label));
137144
_visibleCmds = _cmds;
138145
_selectedCmd = _cmds[0];

0 commit comments

Comments
 (0)