mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 13:30:02 +00:00
reconnect hotkey - fixes #3344
This commit is contained in:
parent
9b5b5a9d00
commit
aab1ae3ceb
@ -44,6 +44,9 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
|
||||
case 'end':
|
||||
this.sendInput('\x1b[F' )
|
||||
break
|
||||
case 'restart-serial-session':
|
||||
this.reconnect()
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -12,6 +12,7 @@ export class SerialConfigProvider extends ConfigProvider {
|
||||
serial: [
|
||||
'Alt-K',
|
||||
],
|
||||
'restart-serial-session': [],
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,10 @@ export class SerialHotkeyProvider extends HotkeyProvider {
|
||||
id: 'serial',
|
||||
name: 'Show Serial connections',
|
||||
},
|
||||
{
|
||||
id: 'restart-serial-session',
|
||||
name: 'Restart current serial session',
|
||||
},
|
||||
]
|
||||
|
||||
async provide (): Promise<HotkeyDescription[]> {
|
||||
|
@ -13,6 +13,7 @@ export class SSHConfigProvider extends ConfigProvider {
|
||||
ssh: [
|
||||
'Alt-S',
|
||||
],
|
||||
'restart-ssh-session': [],
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,10 @@ export class SSHHotkeyProvider extends HotkeyProvider {
|
||||
id: 'ssh',
|
||||
name: 'Show SSH connections',
|
||||
},
|
||||
{
|
||||
id: 'restart-ssh-session',
|
||||
name: 'Restart current SSH session',
|
||||
},
|
||||
]
|
||||
|
||||
async provide (): Promise<HotkeyDescription[]> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user