|
|
@@ -1,7 +1,6 @@
|
|
|
import { Injectable } from '@angular/core'
|
|
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
|
|
-import { ConfigService, BaseTabComponent, TabContextMenuItemProvider, SplitTabComponent, NotificationsService, MenuItemOptions, ProfilesService, PromptModalComponent, TranslateService } from 'tabby-core'
|
|
|
-import { MultifocusService } from 'tabby-terminal'
|
|
|
+import { ConfigService, BaseTabComponent, TabContextMenuItemProvider, NotificationsService, MenuItemOptions, ProfilesService, PromptModalComponent, TranslateService } from 'tabby-core'
|
|
|
import { TerminalTabComponent } from './components/terminalTab.component'
|
|
|
import { UACService } from './services/uac.service'
|
|
|
import { TerminalService } from './services/terminal.service'
|
|
|
@@ -66,7 +65,6 @@ export class NewTabContextMenu extends TabContextMenuItemProvider {
|
|
|
private terminalService: TerminalService,
|
|
|
private uac: UACService,
|
|
|
private translate: TranslateService,
|
|
|
- private multifocus: MultifocusService,
|
|
|
) {
|
|
|
super()
|
|
|
}
|
|
|
@@ -133,23 +131,6 @@ export class NewTabContextMenu extends TabContextMenuItemProvider {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- if (tab instanceof TerminalTabComponent && tab.parent instanceof SplitTabComponent) {
|
|
|
- items.push({
|
|
|
- label: this.translate.instant('Focus all tabs'),
|
|
|
- click: () => {
|
|
|
- this.multifocus.focusAllTabs()
|
|
|
- },
|
|
|
- })
|
|
|
- if (tab.parent.getAllTabs().length > 1) {
|
|
|
- items.push({
|
|
|
- label: this.translate.instant('Focus all panes'),
|
|
|
- click: () => {
|
|
|
- this.multifocus.focusAllPanes()
|
|
|
- },
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
return items
|
|
|
}
|
|
|
}
|