mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
feat: add 'reveal-current-file-in-sidebar' feature to status bar navigation
This commit is contained in:
@@ -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' },
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -231,6 +231,7 @@ const data: BaseLanguage = {
|
||||
'nav': {
|
||||
'nav': '导航',
|
||||
'goto': '快速跳转',
|
||||
'reveal-current-file-in-sidebar': '在侧栏中显示当前文件',
|
||||
'forward': '前进',
|
||||
'back': '后退',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user