1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 10:42:35 +03:00
tabby/tabby-ssh/src/hotkeys.ts
2021-08-22 20:59:50 +02:00

22 lines
547 B
TypeScript

import { Injectable } from '@angular/core'
import { HotkeyDescription, HotkeyProvider } from 'tabby-core'
/** @hidden */
@Injectable()
export class SSHHotkeyProvider extends HotkeyProvider {
hotkeys: HotkeyDescription[] = [
{
id: 'restart-ssh-session',
name: 'Restart current SSH session',
},
{
id: 'launch-winscp',
name: 'Launch WinSCP for current SSH session',
},
]
async provide (): Promise<HotkeyDescription[]> {
return this.hotkeys
}
}