1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-21 01:47:28 +03:00

Merge pull request #4775 from Me1onRind/add_duplicate_tab_hotkey

This commit is contained in:
Eugeny 2021-10-16 23:08:35 +02:00 committed by GitHub
commit 7f733b8029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 0 deletions

View File

@ -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()

View File

@ -20,6 +20,7 @@ hotkeys:
- 'Ctrl-Shift-PageDown'
rearrange-panes:
- 'Ctrl-Shift'
duplicate-tab: []
tab-1:
- 'Alt-1'
tab-2:

View File

@ -38,6 +38,7 @@ hotkeys:
- '⌘-9'
tab-10:
- '⌘-0'
duplicate-tab: []
tab-11: []
tab-12: []
tab-13: []

View File

@ -21,6 +21,7 @@ hotkeys:
- 'Ctrl-Shift-PageDown'
rearrange-panes:
- 'Ctrl-Shift'
duplicate-tab: []
tab-1:
- 'Alt-1'
tab-2:

View File

@ -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',