mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 10:14:31 -05:00
feat(ssh): add hotkey to open SFTP panel (#11106)
Co-authored-by: Eugene <inbox@null.page>
This commit is contained in:
@@ -64,6 +64,9 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
|
||||
this.ssh.launchWinSCP(this.sshSession)
|
||||
}
|
||||
break
|
||||
case 'open-sftp':
|
||||
this.openSFTP()
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ export class SSHConfigProvider extends ConfigProvider {
|
||||
hotkeys: {
|
||||
'restart-ssh-session': [],
|
||||
'launch-winscp': [],
|
||||
'open-sftp': [],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@ export class SSHHotkeyProvider extends HotkeyProvider {
|
||||
id: 'launch-winscp',
|
||||
name: this.translate.instant('Launch WinSCP for current SSH session'),
|
||||
},
|
||||
{
|
||||
id: 'open-sftp',
|
||||
name: this.translate.instant('Open SFTP panel'),
|
||||
},
|
||||
]
|
||||
|
||||
constructor (private translate: TranslateService) { super() }
|
||||
|
||||
Reference in New Issue
Block a user