hyper/lib/config.d.ts

84 lines
1.9 KiB
TypeScript
Raw Normal View History

2020-04-27 05:32:08 -08:00
import {FontWeight} from 'xterm';
2021-03-05 07:03:35 -09:00
export type ColorMap = {
black: string;
blue: string;
cyan: string;
green: string;
lightBlack: string;
lightBlue: string;
lightCyan: string;
lightGreen: string;
lightMagenta: string;
lightRed: string;
lightWhite: string;
lightYellow: string;
magenta: string;
red: string;
white: string;
yellow: string;
};
2020-04-27 05:32:08 -08:00
export type configOptions = {
autoUpdatePlugins: boolean | string;
backgroundColor: string;
bell: string;
bellSound: string | null;
bellSoundURL: string | null;
borderColor: string;
2021-03-05 07:03:35 -09:00
colors: ColorMap;
2020-04-27 05:32:08 -08:00
copyOnSelect: boolean;
css: string;
cursorAccentColor: string;
cursorBlink: boolean;
cursorColor: string;
cursorShape: 'BEAM' | 'UNDERLINE' | 'BLOCK';
defaultSSHApp: boolean;
disableAutoUpdates: boolean;
2020-04-27 05:32:08 -08:00
disableLigatures: boolean;
env: Record<string, string>;
fontFamily: string;
fontSize: number;
fontWeight: FontWeight;
fontWeightBold: FontWeight;
foregroundColor: string;
letterSpacing: number;
lineHeight: number;
macOptionSelectionMode: string;
modifierKeys: {
altIsMeta: boolean;
cmdIsMeta: boolean;
};
padding: string;
quickEdit: boolean;
2020-11-24 04:18:50 -09:00
screenReaderMode: boolean;
2020-04-27 05:32:08 -08:00
scrollback: number;
selectionColor: string;
shell: string;
shellArgs: string[];
showHamburgerMenu: boolean | '';
showWindowControls: string;
termCSS: string;
uiFontFamily: string;
updateChannel: 'stable' | 'canary';
useConpty: boolean;
webGLRenderer: boolean;
2020-05-06 11:04:14 -08:00
webLinksActivationKey: 'ctrl' | 'alt' | 'meta' | 'shift';
2020-04-27 05:32:08 -08:00
windowSize: [number, number];
workingDirectory: string;
2020-04-27 05:32:08 -08:00
};
export type rawConfig = {
config?: configOptions;
plugins?: string[];
localPlugins?: string[];
keymaps?: Record<string, string | string[]>;
};
export type parsedConfig = {
config: configOptions;
plugins: string[];
localPlugins: string[];
keymaps: Record<string, string[]>;
};