zed icon indicating copy to clipboard operation
zed copied to clipboard

Select Next Occurrence: add support for `ToggleCaseSensitive` and `ToggleWholeWord`

Open vladmoroz opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the feature

In VS Code, Select Next Occurrence has the same modes as search, allowing to configure whether next selection is case-sensitive or grabs whole words:

https://github.com/user-attachments/assets/13af3ce5-179c-495b-bfc0-5891990b6823

This is currently missing in Zed. It's really helpful for refactors on the fly via Select Next Occurrence compared to search, which forces you to go either match by match, or to replace all matches altogether.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

vladmoroz avatar Jul 29 '24 10:07 vladmoroz

This should be prioritized highly, in my opinion.

And I found that it didn't show up in the #6952.

aurexav avatar Aug 29 '24 02:08 aurexav

I agree this is EXTREMELY high priority. Zed's "Select Next Occurrence" is almost useless until this bug/limitation is fixed.

brandonzylstra avatar Sep 20 '25 01:09 brandonzylstra