mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 10:42:35 +03:00
22 lines
547 B
TypeScript
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
|
|
}
|
|
}
|