diff --git a/tabby-core/src/components/appRoot.component.ts b/tabby-core/src/components/appRoot.component.ts index 9c62c5289a75a339b49eae841af74e3b4cfc2750..d9b6fe58eef4a4502e04182bea44709679c85cbd 100644 --- a/tabby-core/src/components/appRoot.component.ts +++ b/tabby-core/src/components/appRoot.component.ts @@ -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() diff --git a/tabby-core/src/configDefaults.linux.yaml b/tabby-core/src/configDefaults.linux.yaml index 7cd27e949123c2ad7904c8e977e19d58c41b6902..5e1be6add54b27b7ebb7bd7c28d661a7b96f46cf 100644 --- a/tabby-core/src/configDefaults.linux.yaml +++ b/tabby-core/src/configDefaults.linux.yaml @@ -20,6 +20,7 @@ hotkeys: - 'Ctrl-Shift-PageDown' rearrange-panes: - 'Ctrl-Shift' + duplicate-tab: [] tab-1: - 'Alt-1' tab-2: diff --git a/tabby-core/src/configDefaults.macos.yaml b/tabby-core/src/configDefaults.macos.yaml index d833eda685abd0f3d8704d9e18b5ed3d44c4264d..29f06cb4e5dc3280f09cf62c68b2890fa545e367 100644 --- a/tabby-core/src/configDefaults.macos.yaml +++ b/tabby-core/src/configDefaults.macos.yaml @@ -38,6 +38,7 @@ hotkeys: - '⌘-9' tab-10: - '⌘-0' + duplicate-tab: [] tab-11: [] tab-12: [] tab-13: [] diff --git a/tabby-core/src/configDefaults.windows.yaml b/tabby-core/src/configDefaults.windows.yaml index 5afd411200d663d7093262a7b84f334d1e576dc7..6af2a92704fb8d1111aede8e5bddc2d8b8c7da9a 100644 --- a/tabby-core/src/configDefaults.windows.yaml +++ b/tabby-core/src/configDefaults.windows.yaml @@ -21,6 +21,7 @@ hotkeys: - 'Ctrl-Shift-PageDown' rearrange-panes: - 'Ctrl-Shift' + duplicate-tab: [] tab-1: - 'Alt-1' tab-2: diff --git a/tabby-core/src/hotkeys.ts b/tabby-core/src/hotkeys.ts index 28ce7b831021b88a2565028d6d61d95bc1c61ddd..56acf98daa55aad72ff84a0da3198a598df3b6f0 100644 --- a/tabby-core/src/hotkeys.ts +++ b/tabby-core/src/hotkeys.ts @@ -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',