mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-11 06:59:59 +00:00
24 lines
680 B
TypeScript
24 lines
680 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import { HotkeyDescription, HotkeyProvider, TranslateService } from 'tabby-core'
|
|
|
|
/** @hidden */
|
|
@Injectable()
|
|
export class SSHHotkeyProvider extends HotkeyProvider {
|
|
hotkeys: HotkeyDescription[] = [
|
|
{
|
|
id: 'restart-ssh-session',
|
|
name: this.translate.instant('Restart current SSH session'),
|
|
},
|
|
{
|
|
id: 'launch-winscp',
|
|
name: this.translate.instant('Launch WinSCP for current SSH session'),
|
|
},
|
|
]
|
|
|
|
constructor (private translate: TranslateService) { super() }
|
|
|
|
async provide (): Promise<HotkeyDescription[]> {
|
|
return this.hotkeys
|
|
}
|
|
}
|