-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search addon: Return the number of results of a search #1659
Comments
Hi @Tyriar
|
@noamyogev84 currently the search addon returns a boolean, I think we should return a number instead:
It's probably also a good idea to return only 0 or 1 unless a new option to return number of results ( xterm.js/src/addons/search/Interfaces.ts Lines 24 to 28 in 9e446a9
|
Hi @Tyriar,
|
@noamyogev84 sorry about the delay. 1: the second iteration is because findNext does not start from the top:
2: I think the code to collect the total should look a little different to the current code, if it's true we want to continue searching until we've wrapped around to the start. |
This request may impact performance, this should be evaluated.
Plan issue: #705
The text was updated successfully, but these errors were encountered: