zed
zed copied to clipboard
Preview all regex matches as you type in find/replace
Check for existing issues
- [X] Completed
Describe the feature
I would like to propose that, while finding text, ALL regex matches are highlighted in the text as you type.
Currently, if you do a find using a regex, the first match is highlighted as you type, and the position of all other matches appear dynamically in the scrollbar. This makes it tricky to discover if your regex is correct. A live update would make it possible to use trial and error before hitting select all matches (or at the very least boost everyone's confidence about pressing the button ).
If applicable, add mockups / screenshots to help present your vision of the feature
Hey, thanks for the report; I believe we're already highlighting all matches of a regex (or a search query in general), though in some themes the contrast of a match background is quite low. See the attached screenshot:
Confirmed.
Maybe using an older version that didn't have this feature?