mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 05:50:08 +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':
|
case 'end':
|
||||||
this.sendInput('\x1b[F' )
|
this.sendInput('\x1b[F' )
|
||||||
break
|
break
|
||||||
|
case 'restart-serial-session':
|
||||||
|
this.reconnect()
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ export class SerialConfigProvider extends ConfigProvider {
|
|||||||
serial: [
|
serial: [
|
||||||
'Alt-K',
|
'Alt-K',
|
||||||
],
|
],
|
||||||
|
'restart-serial-session': [],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,10 @@ export class SerialHotkeyProvider extends HotkeyProvider {
|
|||||||
id: 'serial',
|
id: 'serial',
|
||||||
name: 'Show Serial connections',
|
name: 'Show Serial connections',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'restart-serial-session',
|
||||||
|
name: 'Restart current serial session',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
async provide (): Promise<HotkeyDescription[]> {
|
async provide (): Promise<HotkeyDescription[]> {
|
||||||
|
@ -13,6 +13,7 @@ export class SSHConfigProvider extends ConfigProvider {
|
|||||||
ssh: [
|
ssh: [
|
||||||
'Alt-S',
|
'Alt-S',
|
||||||
],
|
],
|
||||||
|
'restart-ssh-session': [],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,10 @@ export class SSHHotkeyProvider extends HotkeyProvider {
|
|||||||
id: 'ssh',
|
id: 'ssh',
|
||||||
name: 'Show SSH connections',
|
name: 'Show SSH connections',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'restart-ssh-session',
|
||||||
|
name: 'Restart current SSH session',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
async provide (): Promise<HotkeyDescription[]> {
|
async provide (): Promise<HotkeyDescription[]> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user