Define wordSeparator option

This commit is contained in:
Max Risuhin
2019-06-21 16:35:26 +03:00
parent 96eafd32db
commit 1b2811075c
5 changed files with 16 additions and 12 deletions
+3 -1
View File
@@ -46,7 +46,8 @@ export const DEFAULT_OPTIONS: ITerminalOptions = Object.freeze({
screenKeys: false,
debug: false,
cancelEvents: false,
useFlowControl: false
useFlowControl: false,
wordSeparator: ' ()[]{}\'"'
});
/**
@@ -99,6 +100,7 @@ export class OptionsService implements IOptionsService {
case 'fontWeight':
case 'fontWeightBold':
case 'rendererType':
case 'wordSeparator':
if (!value) {
value = DEFAULT_OPTIONS[key];
}
+2
View File
@@ -56,6 +56,7 @@ export interface IPartialTerminalOptions {
tabStopWidth?: number;
theme?: ITheme;
windowsMode?: boolean;
wordSeparator?: string;
}
export interface ITerminalOptions {
@@ -91,6 +92,7 @@ export interface ITerminalOptions {
screenKeys: boolean;
termName: string;
useFlowControl: boolean;
wordSeparator?: string;
}
export interface ITheme {