ZIm/crates/search/src
Dino ed7c55a04e
vim: Reset search range after substitute (#28403)
Update the `Vim::replace_command` method so as to reset the range in the
`BufferSearchBar` after running the replacement in order to fix the
issue where the number of matches in the search bar would be incorrect
after the replacement was done, as it would only take into consideration
the range in which the replacement happened, instead of the whole
buffer.

In order to get this working a new
`BufferSearchBar::clear_search_within_ranges` method is introduced in
these changes.

Release Notes:

- Fixed the number of matches displayed in the search bar after running
vim's substitute command.
2025-04-09 20:43:53 -06:00
..
buffer_search chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
buffer_search.rs vim: Reset search range after substitute (#28403) 2025-04-09 20:43:53 -06:00
mode.rs Allow AI interactions to be proxied through Zed's server so you don't need an API key (#7367) 2024-03-19 19:22:26 +01:00
project_search.rs Update default vim substitute command behavior and add support for 'g' flag (#28138) 2025-04-09 14:34:51 -06:00
search.rs Update default vim substitute command behavior and add support for 'g' flag (#28138) 2025-04-09 14:34:51 -06:00
search_bar.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
search_status_button.rs Add the project search as an item in the status bar (#28388) 2025-04-09 01:13:48 +00:00