tabby-quick-cmds
Version:
Quick commands manager for Tabby
13 lines (12 loc) • 805 B
TypeScript
import { BaseTabComponent } from 'tabby-core';
import { QuickCmds, ICmdGroup, SSHProfileOption } from './api';
export interface RuntimeSSHContext {
profileId: string | null;
isSSH: boolean;
}
export declare function getFocusedTab(tab: BaseTabComponent | null): BaseTabComponent | null;
export declare function getRuntimeSSHContext(tab: BaseTabComponent | null): RuntimeSSHContext;
export declare function scopedToCurrentProfile(profileIds: string[] | undefined, context: RuntimeSSHContext): boolean;
export declare function commandVisibleForContext(command: QuickCmds, groups: ICmdGroup[], context: RuntimeSSHContext): boolean;
export declare function profileLabel(profile: SSHProfileOption): string;
export declare function profileMatchesQuery(profile: SSHProfileOption, query: string): boolean;