Commit Graph
810 Commits
Author SHA1 Message Date
Piotr Osiewicz 8476738afa project_search: Swap places of case-sens/whole-word 2023-08-14 11:59:42 +02:00
Piotr Osiewicz 46a4a82f1a Style nav buttons 2023-08-13 01:29:35 +02:00
Piotr Osiewicz ddfd18fa1b Style dismiss button.
Fix clipping in nav buttons and mode buttons. Add missing borders to outskirts of mode buttons.
2023-08-13 01:06:35 +02:00
Piotr Osiewicz 6baac517b7 chore: remove redundant mut 2023-08-12 22:20:22 +02:00
Piotr Osiewicz 8ec3ff2d3b Remove buttonside, use new corner_radii instead 2023-08-12 22:18:27 +02:00
Piotr Osiewicz 6d1ca22f57 Merge branch 'main' into project_search_design 2023-08-12 21:57:21 +02:00
Piotr Osiewicz 3f35ee3621 Decrease row count for buffer search bar 2023-08-11 23:47:16 +02:00
Piotr Osiewicz dfa4d484f0 Shrink project search + decrease padding 2023-08-11 18:19:45 +02:00
Piotr Osiewicz 2fed7612b2 chore: fix compiler warning 2023-08-11 17:09:26 +02:00
Piotr Osiewicz d925e81832 Add row_height 2023-08-11 17:02:25 +02:00
Piotr Osiewicz f361c17071 Style mode/option buttons 2023-08-11 16:32:15 +02:00
Piotr Osiewicz 6d2f085dee Make ButtonSide respect corner_radius 2023-08-11 14:44:22 +02:00
Piotr Osiewicz f6b8df5100 mode_button: get rid of borders before creating a label 2023-08-11 13:26:22 +02:00
Piotr Osiewicz 3870731929 Make ButtonSide scale with corner_radius 2023-08-11 13:10:56 +02:00
Nathan Sobo bb9591415f WIP 2023-08-10 10:26:48 -06:00
Piotr Osiewicz b217de5c5c Fix rounding artifacts of nav buttons 2023-08-10 15:26:05 +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
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
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
Piotr Osiewicz e9c3d21ddd buffer: use icons for search options 2023-08-09 00:16:12 +02:00
Nathan Sobo 79da4b18a4 Move more window methods off AsyncAppContext 2023-08-08 11:38:07 -06:00
Nathan Sobo c843749cb0 Store an AnyWindowHandle in WindowContext 2023-08-08 11:08:37 -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
Nathan Sobo 337db743e9 Remove TestAppContext::add_view
Instead, we now call this on window handles.
2023-08-07 22:46:48 -06:00
Piotr Osiewicz 4624834f84 Add dismiss button to project search 2023-08-07 12:22:10 +02:00
Nathan Sobo d1e01ba625 WIP 2023-08-06 12:45:31 -06:00
Piotr OsiewiczandKyle f8335db1ae Adjust row count for project search.
Instead of using the same row count as for the breadcrumbs, we double the height so that there's some space for padding.

Co-authored-by: Kyle <kyle@zed.dev>
2023-08-04 18:54:27 +02:00
Piotr OsiewiczandKyle 1da45695ae Align match count
Co-authored-by: Kyle <kyle@zed.dev>
2023-08-04 18:21:46 +02:00
Piotr OsiewiczandKyle ca5ae63071 Center the query editor (for real now)
Co-authored-by: Kyle <kyle@zed.dev>
2023-08-04 17:49:54 +02:00