/
githubmirror
/
tabby
Обзор
Документация
Войти
/
githubmirror
/
tabby
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tabby-ssh/src/hotkeys.ts
27 строк
791 B
Utkarsh Adhran
feat(ssh): add hotkey to open SFTP panel (#11106)
07 май 2026, 23:33
Не верифицирован
07 май 2026, 23:33
84fd0a9
Код
Авторство
О чём код?
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'), }, { id: 'open-sftp', name: this.translate.instant('Open SFTP panel'), }, ] constructor (private translate: TranslateService) { super() } async provide (): Promise<HotkeyDescription[]> { return this.hotkeys } }