Commit Graph
11071 Commits
Author SHA1 Message Date
Piotr Osiewicz b217de5c5c Fix rounding artifacts of nav buttons 2023-08-10 15:26:05 +02:00
Piotr Osiewicz 9d70562c90 Fix padding inside search input.
Adjust borders for toggle buttons
2023-08-10 14:53:25 +02:00
Piotr Osiewicz 408eb2c08c Bump row_count for buffer search 2023-08-10 13:01:20 +02:00
Piotr Osiewicz c88182a908 Increase padding on search 2023-08-10 12:57:12 +02:00
Piotr Osiewicz d131cc0324 Add cycle mode command for buffer search 2023-08-09 18:02:21 +02:00
Piotr Osiewicz 10d7ef81bc Reset search index on mode change 2023-08-09 14:25:56 +02:00
Piotr Osiewicz 395b5b6d5c buffer: Add magnifying glass icon 2023-08-09 13:47:48 +02:00
Piotr Osiewicz 08a4f3482c chore: update fn paint 2023-08-09 12:33:14 +02:00
Piotr Osiewicz a5f96dade0 Merge branch 'main' into project_search_design 2023-08-09 12:30:48 +02:00
Piotr Osiewicz 8d914b4332 Go back to previous mode on rejection of semantic indexing 2023-08-09 12:28:15 +02:00
Nathan Sobo f38f79b209 Pass PaintContext to Element::paint (#2788)
I want to use this on another branch, but it's a sweeping change, so
this prepares the ground for it. This can always be reverted if it
doesn't work out.
2023-08-08 21:16:57 -06:00
Joseph T. Lyons 4e874b1140 Fix language detection when file name begins with a . (#2833)
I went to add in `zprofile` to the bash language config to get syntax
highlighting for it. After adding it in, Zed was still not highlighting
the file. I checked and saw that we are using `Path::extension()` in
`language_for_file()`, which [returns `None` when a file's name begins
with a
`.`](https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.extension),
such as in the case of `.zprofile`. This PR adds a custom method, with
some tests, that just tries to grab the last component in the file name
if `Path::extension` returns `None`. Not sure if `ext` is the best name,
but I can't use `extension`.

Maybe this method should be called `extension_or_hidden_file_name()`?

Release Notes:

- Fixed a bug where language detection would fail for files starting
with `.` in their names.
- Added syntax highlighting for `.zprofile` files
2023-08-08 21:48:56 -04:00
Joseph T. Lyons 9024511498 Fix code that identifies language via extension 2023-08-08 21:35:11 -04:00
Nathan Sobo ba8c733d80 Merge remote-tracking branch 'origin/main' into paint-context 2023-08-08 18:27:16 -06:00
Nathan Sobo e1dfc8e3ce Replace context methods that take a window id with methods on window handles (#2832)
With this PR, I've eliminated almost all references to window ids
outside of the internals of GPUI. All public methods taking these ids
are now defined on `AnyWindowHandle`, which provides a more coherent
narrative around windows as a concept.
2023-08-08 17:51:37 -06:00
Piotr Osiewicz 392465c608 fix dismiss tooltip for project search 2023-08-09 01:37:17 +02:00
Piotr Osiewicz fb3dc3a587 chore: remove unused function 2023-08-09 01:30:45 +02:00
Piotr Osiewicz e364754ed2 buffer: use shared func for nav button rendering 2023-08-09 01:29:22 +02:00
Nathan Sobo ee9ba10e80 Rename mac platform Window to MacWindow for clarity 2023-08-08 17:21:06 -06:00
Nathan Sobo 78c6e537d5 Use AppContext::update when updating windows so we handle effects 2023-08-08 17:20:46 -06:00
Piotr Osiewicz 0c4511e71a chore: fix compiler warnings 2023-08-09 01:16:24 +02:00
Piotr Osiewicz 557ace7e71 Do not display match count when query is empty 2023-08-09 01:15:17 +02:00
Piotr Osiewicz a2006f33e9 buffer: finish up moving things around 2023-08-09 01:09:07 +02:00
Piotr Osiewicz 3495f0d203 buffer: WIP style sides of buffer search 2023-08-09 00:38:50 +02:00
Nathan Sobo bc83f1788b Minimize window id usage 2023-08-08 16:38:46 -06:00
Piotr Osiewicz e9c3d21ddd buffer: use icons for search options 2023-08-09 00:16:12 +02:00
Nathan Sobo f0132c19a9 Store AnyWindowHandles instead of usizes 2023-08-08 16:06:53 -06:00
Piotr Osiewicz 128890db7c Piotr/optimize search selections with a limit (#2831)
/cc @nathansobo @maxbrunsfeld 

Release Notes:
- Fixed scrollbar selections causing noticeable slowdowns with large
quantities of selections.
2023-08-08 21:29:24 +02:00
Nathan Sobo 7b5fe99570 Merge remote-tracking branch 'origin/main' into window-handles 2023-08-08 11:42:55 -06:00
Nathan Sobo 7416197a6e Return window handles from WeakItemHandle 2023-08-08 11:39:56 -06:00
Nathan Sobo 79da4b18a4 Move more window methods off AsyncAppContext 2023-08-08 11:38:07 -06:00
Nathan Sobo 3c7e84d573 Move debug_elements to AnyWindowHandle 2023-08-08 11:27:19 -06:00
Nathan Sobo 0b2865203b Remove window methods from AsyncAppContext 2023-08-08 11:23:49 -06:00
Nathan Sobo 11c1e225a0 Remove AsyncAppContext::remove_window 2023-08-08 11:22:43 -06:00
Nathan Sobo 729a5abbeb Remove unused dock code 2023-08-08 11:20:42 -06:00
Nathan Sobo f01d3b87e0 Remove more window id usage 2023-08-08 11:20:09 -06:00
Nathan Sobo e293985af9 Work with window handles instead of ids in drag code 2023-08-08 11:14:02 -06:00
Nathan Sobo c843749cb0 Store an AnyWindowHandle in WindowContext 2023-08-08 11:08:37 -06:00
Nate Butler 25b03b3485 Calculate the range for each color family in a theme (#2738)
Release Notes:
- N/A (Internal theme stuff)
2023-08-08 11:49:52 -04:00
Nathan Sobo d03f2437e5 Remove window when closing workspace in test 2023-08-08 09:13:17 -06:00
Piotr Osiewicz c546e190d0 Move option button rendering to search_bar 2023-08-08 16:26:19 +02:00
Piotr Osiewicz 7f2d4abe4b Finish migration to modes for buffer search 2023-08-08 15:57:07 +02:00
Piotr Osiewicz b10245bdd3 Add modes to buffer search 2023-08-08 15:25:32 +02:00
Piotr Osiewicz a5af566ddf Move mode cycling to mode module 2023-08-08 15:20:34 +02:00
Piotr Osiewicz a56e6c1b85 Move mode rendering to a search_bar module 2023-08-08 15:11:32 +02:00
Piotr Osiewicz ab7a7b7918 Move nav buttons generation to search_bar 2023-08-08 14:56:21 +02:00
Piotr Osiewicz 87f8fa36a7 Remove SearchOptions::REGEX.
A bit WIP as it awaits migration of buffer search to modes
2023-08-08 14:42:11 +02:00
Piotr Osiewicz 3c71113730 Update keybinds to use new names 2023-08-08 14:33:51 +02:00
Piotr Osiewicz 4fda657efe Move ButtonSide to new module 2023-08-08 14:24:26 +02:00
Piotr Osiewicz eb2bfe55c4 Move SearchMode and SearchHistory to separate modules 2023-08-08 14:14:39 +02:00