Address feedback

This commit is contained in:
Jean Pierre
2023-05-12 16:08:11 -05:00
parent a1e9105ce7
commit cc5136aeb3
3 changed files with 79 additions and 18 deletions
+15 -2
View File
@@ -75,14 +75,27 @@ declare module 'xterm-addon-search' {
activeMatchColorOverviewRuler: string;
}
/**
* Options for the search addon.
*/
export interface ISearchAddonOptions {
/**
* Max number of matches highlighted when decorations are enabled.
* Defaults to 1000 highlighted matches
*/
highlightLimit: number
}
/**
* An xterm.js addon that provides search functionality.
*/
export class SearchAddon implements ITerminalAddon {
/**
* Max number of matches when decorations are enabled
* Creates a new search addon.
* @param options Options for the search addon.
*/
public readonly MATCHES_LIMIT: number;
constructor(options?: Partial<ISearchAddonOptions>);
/**
* Activates the addon