diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml
index 2f7c5c430..63c9815dd 100644
--- a/src/Resources/Locales/en_US.axaml
+++ b/src/Resources/Locales/en_US.axaml
@@ -386,6 +386,8 @@
Go to previous page
Create new page
Open Preferences dialog
+ Open Workspaces dialog
+ Switch to corresponding workspace
REPOSITORY
Commit staged changes
Commit and push staged changes
diff --git a/src/ViewModels/Launcher.cs b/src/ViewModels/Launcher.cs
index d9425059a..5eaca7637 100644
--- a/src/ViewModels/Launcher.cs
+++ b/src/ViewModels/Launcher.cs
@@ -463,6 +463,14 @@ public ContextMenu CreateContextForPageTab(LauncherPage page)
return menu;
}
+ public void SwitchWorkspace(int idx)
+ {
+ var pref = Preferences.Instance;
+ if (idx >= pref.Workspaces.Count || pref.Workspaces[idx].IsActive) return;
+
+ SwitchWorkspace(pref.Workspaces[idx]);
+ }
+
private string GetRepositoryGitDir(string repo)
{
var fullpath = Path.Combine(repo, ".git");
@@ -493,7 +501,7 @@ private string GetRepositoryGitDir(string repo)
return new Commands.QueryGitDir(repo).Result();
}
-
+
private void SwitchWorkspace(Workspace to)
{
foreach (var one in Pages)
diff --git a/src/Views/Hotkeys.axaml b/src/Views/Hotkeys.axaml
index 872427935..b1d436a48 100644
--- a/src/Views/Hotkeys.axaml
+++ b/src/Views/Hotkeys.axaml
@@ -45,7 +45,7 @@
FontSize="{Binding Source={x:Static vm:Preferences.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Increase}}"
Margin="0,0,0,8"/>
-
+
@@ -69,6 +69,12 @@
+
+
+
+
+
+
-