Alessandro Martone
baee1ca6de
editor: Inherit whole word match from buffer search ( #64137 )
...
# Objective
Make `editor: select next` / `editor: select previous` more powerful and
conform to VSCode behaviour
Partial fix for #15415
## Solution
When `editor: select next`/`editor: select previous`/`editor: select
all` is used from an existing selection, it'll now inherit whole-word
from the buffer search bar, while it's open.
If those commands are used starting from a single caret, continue to
always match whole words, with case sensitivity continuing to be
configurable in that case.
## Testing
Test both manually, as well as with unit tests:
- Updated `editor::editor_tests::test_select_next` with new assertion
for whole-word matching
- Added
`search::buffer_search::tests::test_set_active_pane_item_syncs_select_search_options`
- Added
`search::buffer_search::tests::test_search_option_change_during_selections`
- Added
`search::buffer_search::tests::test_show_syncs_select_search_options`
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist )
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md )
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Release Notes:
- Improved `editor: select next` and `editor: select previous` to
respect the buffer search whole-word option.
---------
Co-authored-by: dino <dinojoaocosta@gmail.com >
2026-09-24 09:52:26 +00:00
..
2026-09-24 09:23:58 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-24 09:23:58 +00:00
2026-09-23 12:06:54 +00:00
2026-09-21 15:15:54 +00:00
2026-09-17 08:49:31 +00:00
2026-09-24 09:23:58 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 01:32:37 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-16 21:41:45 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 16:13:31 +00:00
2026-08-26 14:33:13 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 17:57:36 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 19:04:52 +00:00
2026-09-15 09:58:45 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 13:08:53 +00:00
2026-09-18 18:44:49 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 22:05:47 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 13:08:53 +00:00
2026-09-24 09:52:26 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 09:24:15 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 20:50:24 +00:00
2026-09-23 20:50:24 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-18 10:40:43 +00:00
2026-09-22 09:18:57 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 14:25:14 +00:00
2026-09-21 11:17:46 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 17:59:33 +00:00
2026-09-23 16:14:14 +00:00
2026-09-22 00:11:23 +00:00
2026-09-20 08:26:45 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 02:25:54 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 17:59:33 +00:00
2026-09-22 22:57:07 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 03:59:20 +00:00
2026-09-21 14:24:18 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-16 16:03:30 +00:00
2026-09-21 17:57:36 +00:00
2026-09-23 13:15:09 +00:00
2026-09-23 01:32:37 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 16:15:20 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 01:46:02 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-16 16:02:58 +00:00
2026-09-16 16:04:13 +00:00
2026-09-23 03:58:52 +00:00
2026-09-23 03:58:52 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 15:15:54 +00:00
2026-09-17 08:49:31 +00:00
2026-09-22 11:01:26 +00:00
2026-09-23 16:13:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 01:32:39 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 00:40:11 +00:00
2026-09-23 13:15:09 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-16 16:03:09 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 19:04:52 +00:00
2026-09-22 10:19:27 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 16:15:20 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 16:15:20 +00:00
2026-09-23 08:54:29 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-18 10:50:41 +00:00
2026-09-24 09:52:26 +00:00
2026-09-21 13:08:53 +00:00
2026-09-21 16:10:07 +00:00
2026-09-21 13:08:53 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 15:15:54 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 14:46:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-19 01:57:44 +00:00
2026-09-19 01:57:44 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-22 09:59:23 +00:00
2026-09-21 15:37:37 +00:00
2026-09-11 15:19:53 +00:00
2026-09-17 08:49:31 +00:00
2026-09-16 21:41:45 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 15:19:11 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-21 02:24:26 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 03:59:20 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-23 05:50:57 +00:00
2026-09-17 08:49:31 +00:00
2026-09-24 09:52:26 +00:00
2026-09-20 19:09:14 +00:00
2026-09-22 14:29:32 +00:00
2026-09-22 14:29:32 +00:00
2026-09-23 15:11:54 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00
2026-09-17 08:49:31 +00:00