Dino and Conrad Irwin
0a9f407872
search: Add support for case-sensitivity pattern items ( #34762 )
...
This Pull Request introduces support for pattern items in the buffer
search. It does so by splitting the `query` methods into two new
methods:
- `BufferSearchBar.raw_query` – returns the text from the search query
editor
- `BufferSearchBar.query` - returns the search query with pattern items
removed
Whenever the search query is updated, processing of the
`EditorEvent::Edited` event ends up calling the
`BufferSearchBar.apply_pattern_items` method, which parses the pattern
items from the raw query, and updates the buffer search bar's search
options accordingly. This `apply_pattern_items` function avoids updating
the `BufferSearchBar.default_options` field in order to be able to reset
the search options when a pattern items is removed. Lastly, new pattern
items can easily be added by updating the `PATTERN_ITEMS` array.
### Screen Capture
https://github.com/user-attachments/assets/ebd83c38-e480-4c24-9b8c-6edde69cf392
---
Closes #32390
Release Notes:
- Added support for the `\c` and `\C` query pattern items to control
case-sensitivity in buffer search
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com >
2025-08-27 19:27:02 -06:00
..
2025-08-27 15:39:39 +00:00
2025-08-25 16:04:44 -06:00
2025-08-20 14:07:37 +02:00
2025-08-20 14:07:37 +02:00
2025-08-26 13:55:09 +00:00
2025-08-27 13:08:03 +02:00
2025-08-27 16:21:28 +00:00
2025-08-20 12:05:58 +02:00
2025-08-27 10:26:57 -07:00
2025-08-25 17:21:20 +00:00
2025-08-19 21:26:17 +02:00
2025-08-13 13:25:52 -06:00
2025-08-20 12:20:13 +02:00
2025-08-27 23:24:19 +00:00
2025-08-20 12:20:13 +02:00
2025-08-27 23:24:19 +00:00
2025-08-25 21:07:30 +02:00
2025-08-21 15:56:16 +02:00
2025-08-19 14:20:01 +00:00
2025-08-20 12:05:58 +02:00
2025-08-20 12:20:13 +02:00
2025-08-19 21:26:17 +02:00
2025-08-27 23:24:19 +00:00
2025-08-22 03:48:47 -04:00
2025-08-27 00:15:39 +00:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:20:13 +02:00
2025-08-26 16:59:12 -03:00
2025-08-22 11:45:47 -04:00
2025-08-11 15:34:34 +02:00
2025-08-27 23:24:19 +00:00
2025-08-27 10:26:57 -07:00
2025-08-26 00:27:52 +00:00
2025-08-20 12:20:13 +02:00
2025-08-22 13:16:42 +00:00
2025-08-27 23:24:19 +00:00
2025-08-21 19:59:42 -04:00
2025-08-19 21:26:17 +02:00
2025-08-20 12:05:58 +02:00
2025-08-19 20:33:44 +00:00
2025-08-26 00:27:52 +00:00
2025-08-20 12:20:13 +02:00
2025-08-27 10:51:26 -04:00
2025-08-23 07:03:36 +00:00
2025-08-27 03:24:50 +08:00
2025-08-22 11:45:47 -04:00
2025-08-22 11:45:47 -04:00
2025-08-27 23:24:19 +00:00
2025-08-20 20:14:30 +02:00
2025-08-19 20:33:44 +00:00
2025-08-20 12:05:58 +02:00
2025-08-16 19:00:31 +00:00
2025-08-27 00:15:39 +00:00
2025-08-20 12:20:13 +02:00
2025-08-26 15:30:26 +02:00
2025-08-21 19:59:42 -04:00
2025-08-27 00:15:39 +00:00
2025-08-19 21:26:17 +02:00
2025-08-20 12:20:13 +02:00
2025-08-19 13:27:24 +00:00
2025-08-20 20:14:30 +02:00
2025-08-19 13:27:24 +00:00
2025-08-26 13:55:09 +00:00
2025-08-20 14:07:37 +02:00
2025-08-19 21:26:17 +02:00
2025-08-27 18:12:34 +00:00
2025-08-20 18:45:40 +00:00
2025-08-21 17:19:57 +00:00
2025-08-19 13:27:24 +00:00
2025-08-20 12:20:13 +02:00
2025-08-26 16:58:23 -03:00
2025-08-26 00:27:52 +00:00
2025-08-24 11:01:42 +00:00
2025-08-18 21:54:35 +00:00
2025-08-19 20:33:44 +00:00
2025-08-20 12:20:13 +02:00
2025-08-28 02:37:32 +05:30
2025-08-18 21:54:35 +00:00
2025-08-27 12:53:07 +00:00
2025-08-26 21:08:45 +00:00
2025-08-19 13:27:24 +00:00
2025-08-27 23:24:19 +00:00
2025-08-28 00:57:08 +02:00
2025-08-21 15:56:16 +02:00
2025-08-27 21:01:36 +05:30
2025-08-26 12:55:40 -03:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:20:13 +02:00
2025-08-24 09:59:32 +03:00
2025-08-19 20:33:44 +00:00
2025-08-19 13:27:24 +00:00
2025-08-26 00:27:52 +00:00
2025-08-25 19:50:08 +00:00
2025-08-19 21:26:17 +02:00
2025-08-27 00:15:39 +00:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:05:58 +02:00
2025-08-20 12:20:13 +02:00
2025-08-19 21:26:17 +02:00
2025-08-27 19:27:02 -06:00
2025-08-27 00:15:39 +00:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:20:13 +02:00
2025-08-27 23:24:19 +00:00
2025-08-27 00:15:39 +00:00
2025-08-19 13:27:24 +00:00
2025-08-27 00:15:39 +00:00
2025-08-27 23:24:19 +00:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:05:58 +02:00
2025-08-19 13:27:24 +00:00
2025-08-20 12:20:13 +02:00
2025-08-21 06:48:04 +00:00
2025-08-20 12:20:13 +02:00
2025-08-27 19:27:02 -06:00
2025-08-20 12:20:13 +02:00
2025-08-19 13:27:24 +00:00
2025-08-27 23:24:19 +00:00
2025-08-20 12:20:13 +02:00
2025-08-27 03:24:50 +08:00
2025-08-19 21:26:17 +02:00
2025-08-19 21:26:17 +02:00
2025-08-19 13:27:24 +00:00
2025-08-26 00:27:52 +00:00
2025-08-20 12:20:13 +02:00
2025-08-19 20:33:44 +00:00
2025-08-18 21:54:35 +00:00
2025-08-19 21:26:17 +02:00
2025-08-20 12:20:13 +02:00
2025-08-19 21:26:17 +02:00
2025-08-19 20:33:44 +00:00
2025-08-21 19:59:42 -04:00
2025-08-27 16:21:28 +00:00
2025-08-27 00:15:39 +00:00
2025-08-20 14:35:59 +00:00
2025-08-19 21:26:17 +02:00
2025-08-15 15:37:52 -04:00
2025-08-20 12:20:13 +02:00
2025-08-27 00:15:39 +00:00
2025-08-19 21:26:17 +02:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:20:13 +02:00
2025-08-27 00:15:39 +00:00
2025-08-21 09:37:45 +00:00
2025-08-26 16:59:12 -03:00
2025-08-20 12:20:13 +02:00
2025-08-21 19:08:26 +02:00
2025-08-15 13:54:24 +03:00
2025-08-27 20:25:00 -05:00
2025-08-25 14:28:11 -04:00
2025-08-20 12:20:13 +02:00
2025-08-19 20:33:44 +00:00
2025-08-27 23:24:19 +00:00
2025-08-27 18:34:14 -06:00
2025-08-26 21:08:45 +00:00
2025-08-27 10:26:57 -07:00
2025-08-26 16:59:12 -03:00
2025-08-22 11:45:47 -04:00
2025-08-20 12:20:13 +02:00
2025-08-20 12:20:13 +02:00