-
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
Add search result count to SearchAddon #3716
Conversation
We can either do it this way or could return the count from findNext/findPrevious instead of a boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we only know the total count if decorations are on? What would this return if it's off so only a single result is selected?
When decorations are on, all of that work has already been done, so it costs nothing extra to get this info. Would have to find all when decorations are not on. Do we want to support that? |
We discussed and agreed upon:
|
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
@@ -87,6 +87,7 @@ export class SearchAddon implements ITerminalAddon { | |||
}, 200); | |||
} | |||
}); | |||
this.onDidChangeResults((results) => console.log(results)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think that was outdated as I don't see it there
fixes #1659