提交 1941d9b7 编写于 作者: M Me1onRind

add duplicate tab hotkey

上级 35f0d690
......@@ -111,6 +111,9 @@ export class AppRootComponent {
if (hotkey === 'reopen-tab') {
this.app.reopenLastTab()
}
if (hotkey === 'duplicate-tab') {
this.app.duplicateTab(this.app.activeTab)
}
}
if (hotkey === 'toggle-fullscreen') {
hostWindow.toggleFullscreen()
......
......@@ -20,6 +20,7 @@ hotkeys:
- 'Ctrl-Shift-PageDown'
rearrange-panes:
- 'Ctrl-Shift'
duplicate-tab: []
tab-1:
- 'Alt-1'
tab-2:
......
......@@ -38,6 +38,7 @@ hotkeys:
- '⌘-9'
tab-10:
- '⌘-0'
duplicate-tab: []
tab-11: []
tab-12: []
tab-13: []
......
......@@ -21,6 +21,7 @@ hotkeys:
- 'Ctrl-Shift-PageDown'
rearrange-panes:
- 'Ctrl-Shift'
duplicate-tab: []
tab-1:
- 'Alt-1'
tab-2:
......
......@@ -51,6 +51,10 @@ export class AppHotkeyProvider extends HotkeyProvider {
id: 'rearrange-panes',
name: 'Show pane labels (for rearranging)',
},
{
id: 'duplicate-tab',
name: 'Duplicate tab',
},
{
id: 'tab-1',
name: 'Tab 1',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册