mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 13:30:02 +00:00
feat: reconnect current tab hotkey
This commit is contained in:
parent
d1b45812d5
commit
bbca7a6a84
@ -22,6 +22,7 @@ hotkeys:
|
|||||||
- 'Ctrl-Shift'
|
- 'Ctrl-Shift'
|
||||||
duplicate-tab: []
|
duplicate-tab: []
|
||||||
restart-tab: []
|
restart-tab: []
|
||||||
|
reconnect-tab: []
|
||||||
explode-tab:
|
explode-tab:
|
||||||
- 'Ctrl-Shift-.'
|
- 'Ctrl-Shift-.'
|
||||||
combine-tabs:
|
combine-tabs:
|
||||||
|
@ -39,6 +39,7 @@ hotkeys:
|
|||||||
tab-10: []
|
tab-10: []
|
||||||
duplicate-tab: []
|
duplicate-tab: []
|
||||||
restart-tab: []
|
restart-tab: []
|
||||||
|
reconnect-tab: []
|
||||||
explode-tab:
|
explode-tab:
|
||||||
- '⌘-Shift-.'
|
- '⌘-Shift-.'
|
||||||
combine-tabs:
|
combine-tabs:
|
||||||
|
@ -23,6 +23,7 @@ hotkeys:
|
|||||||
- 'Ctrl-Shift'
|
- 'Ctrl-Shift'
|
||||||
duplicate-tab: []
|
duplicate-tab: []
|
||||||
restart-tab: []
|
restart-tab: []
|
||||||
|
reconnect-tab: []
|
||||||
explode-tab:
|
explode-tab:
|
||||||
- 'Ctrl-Shift-.'
|
- 'Ctrl-Shift-.'
|
||||||
combine-tabs:
|
combine-tabs:
|
||||||
|
@ -9,7 +9,7 @@ import { BaseSession } from '../session'
|
|||||||
|
|
||||||
import { Frontend } from '../frontends/frontend'
|
import { Frontend } from '../frontends/frontend'
|
||||||
import { XTermFrontend, XTermWebGLFrontend } from '../frontends/xtermFrontend'
|
import { XTermFrontend, XTermWebGLFrontend } from '../frontends/xtermFrontend'
|
||||||
import { ResizeEvent, BaseTerminalProfile } from './interfaces'
|
import { ResizeEvent, BaseTerminalProfile, isReconnectable } from './interfaces'
|
||||||
import { TerminalDecorator } from './decorator'
|
import { TerminalDecorator } from './decorator'
|
||||||
import { SearchPanelComponent } from '../components/searchPanel.component'
|
import { SearchPanelComponent } from '../components/searchPanel.component'
|
||||||
import { MultifocusService } from '../services/multifocus.service'
|
import { MultifocusService } from '../services/multifocus.service'
|
||||||
@ -306,6 +306,11 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
|
|||||||
case 'scroll-to-bottom':
|
case 'scroll-to-bottom':
|
||||||
this.frontend?.scrollToBottom()
|
this.frontend?.scrollToBottom()
|
||||||
break
|
break
|
||||||
|
case 'reconnect-tab':
|
||||||
|
if (isReconnectable(this)) {
|
||||||
|
this.reconnect()
|
||||||
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -97,6 +97,10 @@ export class TerminalHotkeyProvider extends HotkeyProvider {
|
|||||||
id: 'scroll-to-bottom',
|
id: 'scroll-to-bottom',
|
||||||
name: this.translate.instant('Scroll terminal to bottom'),
|
name: this.translate.instant('Scroll terminal to bottom'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'reconnect-tab',
|
||||||
|
name: this.translate.instant('Reconnect current tab (Serial/Telnet/SSH)'),
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
constructor (private translate: TranslateService) { super() }
|
constructor (private translate: TranslateService) { super() }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user