feat: add 'reveal-current-file-in-sidebar' feature to status bar navigation

This commit is contained in:
purocean
2024-04-23 16:32:05 +08:00
parent 9608fef97d
commit 505bb04f40
3 changed files with 11 additions and 0 deletions
@@ -17,6 +17,15 @@ export default {
ellipsis: true,
onClick: () => ctx.action.getActionHandler('workbench.show-quick-open')()
},
{
id: 'reveal-current-file-in-sidebar',
hidden: ctx.store.state.currentRepo?.name !== ctx.store.state.currentFile?.repo,
type: 'normal',
title: ctx.i18n.t('status-bar.nav.reveal-current-file-in-sidebar'),
subTitle: ctx.keybinding.getKeysLabel('tree.reveal-current-node'),
ellipsis: false,
onClick: () => ctx.action.getActionHandler('tree.reveal-current-node')()
},
{ type: 'separator' },
]
}
+1
View File
@@ -230,6 +230,7 @@ const data = {
'nav': {
'nav': 'Navigation',
'goto': 'Goto',
'reveal-current-file-in-sidebar': 'Reveal Current File in Sidebar',
'forward': 'Forward',
'back': 'Back',
},
+1
View File
@@ -231,6 +231,7 @@ const data: BaseLanguage = {
'nav': {
'nav': '导航',
'goto': '快速跳转',
'reveal-current-file-in-sidebar': '在侧栏中显示当前文件',
'forward': '前进',
'back': '后退',
},