From 4c772cafa891d50bab92bd7994401e54b912d31a Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 24 Feb 2026 16:51:03 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20add=20hotkey=20`Alt/=E2=8C=A5+Up`=20?= =?UTF-8?q?to=20goto=20child=20of=20selected=20commit=20(#2104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: leo --- src/Resources/Locales/de_DE.axaml | 1 - src/Resources/Locales/en_US.axaml | 3 +- src/Resources/Locales/es_ES.axaml | 1 - src/Resources/Locales/ru_RU.axaml | 1 - src/Resources/Locales/zh_CN.axaml | 3 +- src/Resources/Locales/zh_TW.axaml | 3 +- ...ector.axaml => GotoRevisionSelector.axaml} | 8 +-- ...axaml.cs => GotoRevisionSelector.axaml.cs} | 6 +-- src/Views/Histories.axaml | 4 ++ src/Views/Histories.axaml.cs | 49 ++++++++++++++++++- src/Views/Hotkeys.axaml | 9 ++-- 11 files changed, 70 insertions(+), 18 deletions(-) rename src/Views/{GotoParentSelector.axaml => GotoRevisionSelector.axaml} (94%) rename src/Views/{GotoParentSelector.axaml.cs => GotoRevisionSelector.axaml.cs} (87%) diff --git a/src/Resources/Locales/de_DE.axaml b/src/Resources/Locales/de_DE.axaml index 6fab3b0d..0d3bcd11 100644 --- a/src/Resources/Locales/de_DE.axaml +++ b/src/Resources/Locales/de_DE.axaml @@ -471,7 +471,6 @@ $1, $2, … Werte der Eingabe-Steuerelemente Remote: Verfolge alle ‚{0}‘ Dateien Verfolge alle *{0} Dateien - Vorgänger auswählen VERLAUF AUTOR AUTOR-ZEITPUNKT diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index bdd14810..9bc3c7b7 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -468,7 +468,7 @@ Remote: Track files named '{0}' Track all *{0} files - Select Parent + Select Commit HISTORY AUTHOR AUTHOR TIME @@ -498,6 +498,7 @@ Stage all changes and commit Fetch, starts directly Dashboard mode (Default) + Goto child of selected commit Goto parent of selected commit Open command palette Commit search mode diff --git a/src/Resources/Locales/es_ES.axaml b/src/Resources/Locales/es_ES.axaml index 4f18cb0e..7b5ba54a 100644 --- a/src/Resources/Locales/es_ES.axaml +++ b/src/Resources/Locales/es_ES.axaml @@ -472,7 +472,6 @@ Remoto: Seguir archivos llamados '{0}' Seguir todos los archivos *{0} - Seleccionar Padre Historias AUTOR HORA DEL AUTOR diff --git a/src/Resources/Locales/ru_RU.axaml b/src/Resources/Locales/ru_RU.axaml index 95b41d0f..0066e612 100644 --- a/src/Resources/Locales/ru_RU.axaml +++ b/src/Resources/Locales/ru_RU.axaml @@ -472,7 +472,6 @@ Внешнее хранилище: Отслеживать файлы с именем «{0}» Отслеживать все файлы (*{0}) - Выбрать родительский Истории АВТОР ВРЕМЯ АВТОРА diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index 9260b56b..2f82c0fd 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -472,7 +472,7 @@ 远程 : 跟踪名为'{0}'的文件 跟踪所有 *{0} 文件 - 选择前往的父提交 + 选择前往的提交 历史记录 作者 修改时间 @@ -502,6 +502,7 @@ 自动暂存全部变更并提交 拉取 (fetch) 远程变更 切换左边栏为分支/标签等显示模式(默认) + 前往选中提交的子提交 前往选中提交的父提交 打开快捷命令面板 切换左边栏为提交搜索模式 diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml index 9cedfb3a..2fdb310e 100644 --- a/src/Resources/Locales/zh_TW.axaml +++ b/src/Resources/Locales/zh_TW.axaml @@ -472,7 +472,7 @@ 遠端存放庫: 追蹤名稱為「{0}」的檔案 追蹤所有 *{0} 檔案 - 選取要前往的父提交 + 選取要前往的提交 歷史記錄 作者 修改時間 @@ -502,6 +502,7 @@ 自動暫存全部變更並提交 提取 (fetch) 遠端的變更 切換左邊欄為分支/標籤等顯示模式 (預設) + 前往所選提交的子提交 前往所選提交的父提交 開啟命令面板 切換左邊欄為歷史搜尋模式 diff --git a/src/Views/GotoParentSelector.axaml b/src/Views/GotoRevisionSelector.axaml similarity index 94% rename from src/Views/GotoParentSelector.axaml rename to src/Views/GotoRevisionSelector.axaml index cb871186..f2f363d6 100644 --- a/src/Views/GotoParentSelector.axaml +++ b/src/Views/GotoRevisionSelector.axaml @@ -6,10 +6,10 @@ xmlns:v="using:SourceGit.Views" xmlns:c="using:SourceGit.Converters" mc:Ignorable="d" d:DesignWidth="520" d:DesignHeight="230" - x:Class="SourceGit.Views.GotoParentSelector" + x:Class="SourceGit.Views.GotoRevisionSelector" x:Name="ThisControl" Icon="/App.ico" - Title="{DynamicResource Text.GotoParentSelector}" + Title="{DynamicResource Text.GotoRevisionSelector}" Width="600" SizeToContent="Height" CanResize="False" WindowStartupLocation="CenterOwner"> @@ -27,7 +27,7 @@ IsVisible="{OnPlatform True, macOS=False}"/> @@ -37,7 +37,7 @@ +