-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Display "find" matches in the scrollbar #8631
Comments
#3920 might has some of the feature included. |
I'm gonna narrow this down to just the scrollbar highlighting, since #6319 is already tracking the "number of matches". Thanks! |
Actually, yeah, I'm inclined to call this a /dupe of #1527. Thanks for digging, James! |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
This is a resurrection of #8588. That PR became painfully stale after the `ControlCore` split. Original description: > ## Summary of the Pull Request > This is a PoC for: > * Search status in SearchBox (aka number of matches + index of the current match) > * Live search (aka search upon typing) > ## Detailed Description of the Pull Request / Additional comments > * Introduced this optionally (global setting to enable it) > * The approach is following: > * Every time the filter changes, enumerate all matches > * Upon navigation just take the relevant match and select it > I cleaned it up a bit, and added support for also displaying the positions of the matches in the scrollbar (if `showMarksOnScrollbar` is also turned on). It's also been made SUBSTANTIALLY easier after #15858 was merged. Similar to before, searching while there's piles of output running isn't _perfect_. But it's pretty awful currently, so that's not the end of the world. Gifs below. * closes #8631 (which is a bullet point in #3920) * closes #6319 Co-authored-by: Don-Vito <khvitaly@gmail.com> --------- Co-authored-by: khvitaly <khvitaly@gmail.com>
Description of the new feature/enhancement
VSCode has this nice feature where find "matches" are displayed by a certain color (brown here) in the scrollbar e.g.:
This instantly lets the user know where in the overall file the matches are. IMO this is even more useful in a console with a large scrollback buffer (10000 lines). The example above also shows a mini-map to the left of the scrollbar that also shows matches but I think that would cut into the console too much.
Proposed technical implementation details (optional)
First, while the find dialog is open, ensure the entire scrollbar is visible (not just the little sliver that shows when you're not hovering over the scrollbar). Second, for every match, display a horizontal line of a discernable color that corresponds to each match location in the scrollback buffer.
The text was updated successfully, but these errors were encountered: