From 3e68d0c879e013062b66dfe92df7021a85e19298 Mon Sep 17 00:00:00 2001 From: sdpfigueiredo Date: Wed, 19 Aug 2026 20:26:23 +0100 Subject: [PATCH] feature: add `Open Directory` option to repository tab context menu --- TRANSLATION.md | 14 +++++++------- src/Resources/Locales/de_DE.axaml | 1 + src/Resources/Locales/el_GR.axaml | 1 + src/Resources/Locales/en_US.axaml | 1 + src/Resources/Locales/es_ES.axaml | 1 + src/Resources/Locales/fr_FR.axaml | 1 + src/Resources/Locales/he_IL.axaml | 1 + src/Resources/Locales/id_ID.axaml | 1 + src/Resources/Locales/it_IT.axaml | 1 + src/Resources/Locales/ja_JP.axaml | 1 + src/Resources/Locales/ko_KR.axaml | 1 + src/Resources/Locales/pt_BR.axaml | 1 + src/Resources/Locales/ru_RU.axaml | 1 + src/Resources/Locales/ta_IN.axaml | 1 + src/Resources/Locales/uk_UA.axaml | 1 + src/Resources/Locales/zh_CN.axaml | 1 + src/Resources/Locales/zh_TW.axaml | 1 + src/Views/LauncherTabBar.axaml.cs | 11 +++++++++++ 18 files changed, 34 insertions(+), 7 deletions(-) diff --git a/TRANSLATION.md b/TRANSLATION.md index 1f529bc2f..1ffd73b82 100644 --- a/TRANSLATION.md +++ b/TRANSLATION.md @@ -48,7 +48,7 @@ This document shows the translation status of each locale file in the repository -### ![fr__FR](https://img.shields.io/badge/fr__FR-95.03%25-yellow) +### ![fr__FR](https://img.shields.io/badge/fr__FR-95.04%25-yellow)
Missing keys in fr_FR.axaml @@ -107,7 +107,7 @@ This document shows the translation status of each locale file in the repository
-### ![he__IL](https://img.shields.io/badge/he__IL-95.03%25-yellow) +### ![he__IL](https://img.shields.io/badge/he__IL-95.04%25-yellow)
Missing keys in he_IL.axaml @@ -181,7 +181,7 @@ This document shows the translation status of each locale file in the repository
-### ![it__IT](https://img.shields.io/badge/it__IT-88.61%25-yellow) +### ![it__IT](https://img.shields.io/badge/it__IT-88.62%25-yellow)
Missing keys in it_IT.axaml @@ -325,7 +325,7 @@ This document shows the translation status of each locale file in the repository
-### ![ko__KR](https://img.shields.io/badge/ko__KR-96.49%25-yellow) +### ![ko__KR](https://img.shields.io/badge/ko__KR-96.50%25-yellow)
Missing keys in ko_KR.axaml @@ -369,7 +369,7 @@ This document shows the translation status of each locale file in the repository
-### ![pt__BR](https://img.shields.io/badge/pt__BR-62.51%25-red) +### ![pt__BR](https://img.shields.io/badge/pt__BR-62.55%25-red)
Missing keys in pt_BR.axaml @@ -771,7 +771,7 @@ This document shows the translation status of each locale file in the repository
-### ![ta__IN](https://img.shields.io/badge/ta__IN-64.17%25-red) +### ![ta__IN](https://img.shields.io/badge/ta__IN-64.20%25-red)
Missing keys in ta_IN.axaml @@ -1147,7 +1147,7 @@ This document shows the translation status of each locale file in the repository
-### ![uk__UA](https://img.shields.io/badge/uk__UA-64.95%25-red) +### ![uk__UA](https://img.shields.io/badge/uk__UA-64.98%25-red)
Missing keys in uk_UA.axaml diff --git a/src/Resources/Locales/de_DE.axaml b/src/Resources/Locales/de_DE.axaml index 1cc59d419..2fac8907f 100644 --- a/src/Resources/Locales/de_DE.axaml +++ b/src/Resources/Locales/de_DE.axaml @@ -640,6 +640,7 @@ $1, $2, … Werte der Eingabe-Steuerelemente Kopiere Repository-Pfad Bearbeiten In Arbeitsumgebung verschieben + Ordner öffnen Aktualisieren Repositorys Einfügen diff --git a/src/Resources/Locales/el_GR.axaml b/src/Resources/Locales/el_GR.axaml index a39ce1094..271c258c0 100644 --- a/src/Resources/Locales/el_GR.axaml +++ b/src/Resources/Locales/el_GR.axaml @@ -639,6 +639,7 @@ Αντιγραφή διαδρομής αποθετηρίου Επεξεργασία Μετακίνηση σε χώρο εργασίας + Άνοιγμα φακέλου Ανανέωση Αποθετήρια Επικόλληση diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index 2d589bbec..20354ab4d 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -640,6 +640,7 @@ Copy Repository Path Edit Move to Workspace + Open Directory Refresh Repositories Paste diff --git a/src/Resources/Locales/es_ES.axaml b/src/Resources/Locales/es_ES.axaml index bf8e861e9..083bfd137 100644 --- a/src/Resources/Locales/es_ES.axaml +++ b/src/Resources/Locales/es_ES.axaml @@ -644,6 +644,7 @@ Copiar Ruta del Repositorio Editar Mover al Espacio de trabajo + Abrir directorio Actualizar Repositorios Pegar diff --git a/src/Resources/Locales/fr_FR.axaml b/src/Resources/Locales/fr_FR.axaml index d2d7c73c4..d2609da64 100644 --- a/src/Resources/Locales/fr_FR.axaml +++ b/src/Resources/Locales/fr_FR.axaml @@ -608,6 +608,7 @@ Copier le chemin vers le dépôt Éditer Se déplacer vers l'espace de travail + Ouvrir le dossier Actualiser Dépôts Coller diff --git a/src/Resources/Locales/he_IL.axaml b/src/Resources/Locales/he_IL.axaml index 98fbe616d..f49d9c9ed 100644 --- a/src/Resources/Locales/he_IL.axaml +++ b/src/Resources/Locales/he_IL.axaml @@ -608,6 +608,7 @@ העתק נתיב המאגר ערוך העבר לסביבת עבודה + פתח תיקייה רענן מאגרים הדבק diff --git a/src/Resources/Locales/id_ID.axaml b/src/Resources/Locales/id_ID.axaml index 09f001013..f72ca2395 100644 --- a/src/Resources/Locales/id_ID.axaml +++ b/src/Resources/Locales/id_ID.axaml @@ -640,6 +640,7 @@ Salin Jalur Repositori Sunting Pindahkan ke Workspace + Buka Direktori Segarkan Repositori Tempel diff --git a/src/Resources/Locales/it_IT.axaml b/src/Resources/Locales/it_IT.axaml index dd16b7150..268f36c85 100644 --- a/src/Resources/Locales/it_IT.axaml +++ b/src/Resources/Locales/it_IT.axaml @@ -559,6 +559,7 @@ ${pure_files:N} Come ${files:N}, ma senza cartelle Copia Percorso Repository Modifica Sposta nel Workspace + Apri Cartella Aggiorna Repository Incolla diff --git a/src/Resources/Locales/ja_JP.axaml b/src/Resources/Locales/ja_JP.axaml index 4f8ebbb31..315e0aae6 100644 --- a/src/Resources/Locales/ja_JP.axaml +++ b/src/Resources/Locales/ja_JP.axaml @@ -639,6 +639,7 @@ リポジトリへのパスをコピー 編集 ワークスペースに移動 + ディレクトリを開く 再読み込み リポジトリ 貼り付け diff --git a/src/Resources/Locales/ko_KR.axaml b/src/Resources/Locales/ko_KR.axaml index dda2e690b..86878cf5e 100644 --- a/src/Resources/Locales/ko_KR.axaml +++ b/src/Resources/Locales/ko_KR.axaml @@ -611,6 +611,7 @@ 저장소 경로 복사 편집 작업 공간으로 이동 + 디렉터리 열기 새로 고침 저장소 붙여넣기 diff --git a/src/Resources/Locales/pt_BR.axaml b/src/Resources/Locales/pt_BR.axaml index 9fc78cdbb..080832db4 100644 --- a/src/Resources/Locales/pt_BR.axaml +++ b/src/Resources/Locales/pt_BR.axaml @@ -390,6 +390,7 @@ Fechar Abas à Direita Copiar Caminho do Repositório Editar + Abrir Diretório Repositórios Colar {0} dias atrás diff --git a/src/Resources/Locales/ru_RU.axaml b/src/Resources/Locales/ru_RU.axaml index c828a1373..e9c70aaee 100644 --- a/src/Resources/Locales/ru_RU.axaml +++ b/src/Resources/Locales/ru_RU.axaml @@ -644,6 +644,7 @@ Копировать путь репозитория Редактировать... Переместить в рабочее пространство + Открыть папку Обновить Репозитории Вставить diff --git a/src/Resources/Locales/ta_IN.axaml b/src/Resources/Locales/ta_IN.axaml index f33ac284b..2e270eb85 100644 --- a/src/Resources/Locales/ta_IN.axaml +++ b/src/Resources/Locales/ta_IN.axaml @@ -385,6 +385,7 @@ வலதுபுறத்தில் உள்ள தாவல்களை மூடு களஞ்சிய பாதை நகலெடு திருத்து + கோப்புறையைத் திற களஞ்சியங்கள் ஒட்டு {0} நாட்களுக்கு முன்பு diff --git a/src/Resources/Locales/uk_UA.axaml b/src/Resources/Locales/uk_UA.axaml index 0749003f4..27998e760 100644 --- a/src/Resources/Locales/uk_UA.axaml +++ b/src/Resources/Locales/uk_UA.axaml @@ -389,6 +389,7 @@ Закрити вкладки праворуч Копіювати шлях до сховища Редагувати + Відкрити папку Сховища Вставити {0} днів тому diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index 7f7854c96..5cc68314e 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -644,6 +644,7 @@ 复制仓库路径 编辑 移至工作区 + 打开目录 刷新 新标签页 粘贴 diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml index 2a3bea318..e0b0a7a5d 100644 --- a/src/Resources/Locales/zh_TW.axaml +++ b/src/Resources/Locales/zh_TW.axaml @@ -644,6 +644,7 @@ 複製存放庫路徑 編輯 移至工作區 + 開啟目錄 重新整理 新分頁 貼上 diff --git a/src/Views/LauncherTabBar.axaml.cs b/src/Views/LauncherTabBar.axaml.cs index 83826afce..c54d2eab5 100644 --- a/src/Views/LauncherTabBar.axaml.cs +++ b/src/Views/LauncherTabBar.axaml.cs @@ -323,6 +323,17 @@ private void OnTabContextRequested(object sender, ContextRequestedEventArgs e) ev.Handled = true; }; menu.Items.Add(copyPath); + var openDirectory = new MenuItem(); + openDirectory.Header = App.Text("PageTabBar.Tab.OpenDirectory"); + openDirectory.Icon = this.CreateMenuIcon("Icons.Folder.Open"); + openDirectory.Click += (_, ev) => + { + var dir = new DirectoryInfo(repo.FullPath).FullName; + if (Directory.Exists(dir)) + Native.OS.OpenInFileManager(dir); + ev.Handled = true; + }; + menu.Items.Add(openDirectory); menu.Items.Add(new MenuItem() { Header = "-" }); var edit = new MenuItem();