ZIm/crates/gpui/src
Max Brunsfeld 2d3a34c864 Refine search query suggestions (#3293)
This PR fixes some issues in response to feedback from Dan Abramov and
Jose Valim.

To do:

* [x] fix non-word search suggestions
* [x] add setting for disabling search suggestions

Release Notes:

- Fixed an issue where opening a search without text selected would
populate the search query with non-word characters adjacent to the
cursor.
- Added a setting, `seed_search_query_from_cursor`, which controls
whether the search query is automatically populated from the buffer when
starting a new buffer search or project search.

By default, the search query will always be set to the word under the
cursor. If you want to only populate the search query when text is
selected, you can add the following to your `~/.zed/settings.json`:

  ```json
  {
    "seed_search_query_from_cursor": "selection"
  }
  ```

If you don't want the search query to be automatically populated, even
when there is text selected, add the following:

  ```json
  {
    "seed_search_query_from_cursor": "never"
  }
  ```
2023-11-09 15:33:15 -08:00
..
app Mainline GPUI2 UI work (#3099) 2023-10-06 13:18:56 -04:00
elements Load more notifications when scrolling down 2023-10-22 17:10:21 +02:00
keymap_matcher ui: Mirror option key in keybindings (#3065) 2023-09-29 16:45:49 +02:00
platform Revert "Add activity_indicator2" 2023-10-26 17:13:40 +02:00
scene Merge branch 'main' into divs 2023-08-22 16:35:56 -06:00
views Avoid spurious notifies in chat channel select 2023-10-02 15:57:59 -07:00
app.rs Merge branch 'main' into gpui2 2023-10-07 10:50:05 -04:00
assets.rs Add png image loading to gpui 2023-03-06 14:26:32 -08:00
clipboard.rs Move all crates to a top-level crates folder 2021-10-04 13:22:21 -06:00
color.rs Ditch the hot reloading approach 2023-08-11 00:26:58 -06:00
elements.rs Eliminate PaintContext 2023-09-11 09:00:59 -06:00
executor.rs v1 2023-10-26 18:19:57 +02:00
font_cache.rs Report which requested font families are not present on the system (#3006) 2023-09-22 15:27:42 -04:00
fonts.rs Checkpoint 2023-10-16 20:16:35 +02:00
geometry.rs Refine search query suggestions (#3293) 2023-11-09 15:33:15 -08:00
gpui.rs Checkpoint 2023-09-06 15:22:35 -06:00
image_cache.rs Checkpoint: start rendering images 2023-10-04 15:03:21 +02:00
image_data.rs Move all crates to a top-level crates folder 2021-10-04 13:22:21 -06:00
json.rs Move all crates to a top-level crates folder 2021-10-04 13:22:21 -06:00
keymap_matcher.rs Fix multi-key shortcuts with modifiers 2023-09-14 14:35:17 -06:00
platform.rs Use platform API to request mouse position 2023-08-23 13:10:41 -06:00
scene.rs Checkpoint 2023-09-08 16:25:10 -06:00
test.rs Move methods querying window state into AsyncAppContext 2023-05-02 19:38:48 +02:00
text_layout.rs Merge branch 'main' into zed2 2023-10-27 10:55:15 +02:00
util.rs Make timer method available on both foreground and background executors 2022-03-04 13:54:07 -08:00
views.rs Restructure collab panel to allow opening chat + notes w/ one click 2023-09-08 17:06:39 -07:00