use decoration width, find all and select next

This commit is contained in:
meganrogge
2022-03-11 12:01:19 -05:00
parent 96574425c7
commit fa4479c797
5 changed files with 192 additions and 49 deletions
+16 -8
View File
@@ -49,20 +49,28 @@ declare module 'xterm-addon-search' {
*/
public dispose(): void;
/**
* Find all instances of the term, selecting the next one with each
* enter. If it doesn't exist, do nothing.
* @param term The search term.
* @param searchOptions The options for the search.
*/
public find(term: string, searchOptions?: ISearchOptions): boolean;
/**
* Search forwards for the next result that matches the search term and
* options.
* @param term The search term.
* @param searchOptions The options for the search.
*/
public findNext(term: string, searchOptions?: ISearchOptions): boolean;
public findNext(term: string, searchOptions?: ISearchOptions): boolean;
/**
* Search backwards for the previous result that matches the search term and
* options.
* @param term The search term.
* @param searchOptions The options for the search.
*/
public findPrevious(term: string, searchOptions?: ISearchOptions): boolean;
/**
* Search backwards for the previous result that matches the search term and
* options.
* @param term The search term.
* @param searchOptions The options for the search.
*/
public findPrevious(term: string, searchOptions?: ISearchOptions): boolean;
}
}