Commit Graph
55 Commits
Author SHA1 Message Date
Nate Butler 6f5d8dbc4a Update pickers to have a consistently larger size 2023-12-06 23:38:47 -05:00
Piotr Osiewicz aac14f5c41 Merge branch 'main' into copilot2 2023-12-06 15:13:13 +01:00
Piotr OsiewiczandAntonio ae842f7bf2 Start out Copilot2;
Add hidden_action_types to CommandPaletteFilter.
WindowContext.available_actions now returns global actions as well.

Co-authored-by: Antonio <antonio@zed.dev>
2023-12-05 14:57:20 +01:00
Conrad Irwin 05f23386e3 Fix context key matching
* You need to check all layers of the context stack
* When in command, the context should be based on where focus was (to
  match `available_actions`.
2023-12-04 21:28:37 +00:00
Marshall Bowers b2f481567f Implement Selectable for ListItem and ListHeader 2023-11-30 13:26:12 -05:00
Max Brunsfeld 0d3b09ea8d Merge branch 'main' into project-panel-context-menu 2023-11-29 09:45:31 -08:00
Max BrunsfeldandConrad d018e9c0db Make DismissEvent a unit struct
Co-authored-by: Conrad <conrad@zed.dev>
2023-11-29 09:42:54 -08:00
Mikayla d6a5f8a3aa Merge branch 'main' into welcome2 2023-11-28 15:38:51 -08:00
Mikayla 4f97c7c98c Implement all but the UI 2023-11-28 15:18:19 -08:00
Nate Butler db67d14e46 Unused imports 2023-11-28 15:17:09 -05:00
Nate Butler 2b8514d5fc Fix missing arrows 2023-11-28 15:15:49 -05:00
Nate Butler f0d5f155e1 Merge branch 'main' into refine-keybindings 2023-11-28 15:12:22 -05:00
Nate Butler 161cb70aca Update command_palette.rs 2023-11-28 15:06:37 -05:00
Marshall Bowers b8bd5826c2 Add inset variant to ListItem (#3422)
This PR adds an inset variant to the `ListItem` component.

We're now using this inset variant for the `ListItem`s we render in
pickers.

Release Notes:

- N/A
2023-11-28 14:27:19 -05:00
Marshall Bowers 6ee92d1366 Use ListItem when rendering picker matches 2023-11-28 10:44:57 -05:00
Marshall Bowers c9a97782c9 Allow render_match to return an Option to represent no matches 2023-11-28 10:33:13 -05:00
Conrad Irwin c848fdf35d gpui2: Notifications 2023-11-26 22:28:53 -07:00
42dfefd738 WIP
co-authored-by: conrad <conrad@zed.dev>
co-authored-by: Nathan <nathan@zed.dev>
2023-11-20 14:46:01 -08:00
Conrad Irwin 7147bff519 Merge followup mess 2023-11-20 09:58:05 -07:00
Conrad Irwin 16cca67638 Merge branch 'main' into derive-element-redux 2023-11-20 09:15:38 -07:00
Nathan Sobo 42badd5d25 Clean compile with redesigned element traits 2023-11-18 21:51:47 -07:00
Nathan Sobo d2d1f1a1ff Element refinement passing on ui2 2023-11-18 20:05:47 -07:00
Julia 90cbd0db5d Merge branch 'main' into unborked-git-zed2-diagnostics-view 2023-11-17 16:43:29 -05:00
Julia 9a986fc6ab Merge branch 'main' into unborked-git-zed2-diagnostics-view 2023-11-17 16:32:35 -05:00
Julia 4f411715b3 Render diagnostics view and such a bit more 2023-11-17 16:32:35 -05:00
Mikayla 229d0e4479 Merge branch 'main' into managed-view-adjustment 2023-11-17 12:40:44 -08:00
Mikayla d2d9698adc Rename again, add fun cx APIs using new traits 2023-11-17 10:06:41 -08:00
Mikayla 5a0085ac6e Adjust the type arrangement on ManagedViews 2023-11-17 09:51:11 -08:00
Conrad Irwin b5a55a978e +ManagedView
And some games with rust traits
2023-11-16 23:02:10 -07:00
Mikayla 1ec9eaa36f #RemoveThe2 2023-11-16 18:04:35 -08:00
Marshall Bowers 89cd4ac842 Parameterize theme2::init to allow loading just the base theme (#3345)
This PR adds a parameter to the `theme2::init` method to indicate what
the theme-loading behavior should be.

This allows us to indicate when we want to load all of the additional
built-in user themes (like in the Zed binary and in the storybook), and
when we don't want to load the user themes (like in tests).

We're using an enum over just a `bool` here for clarity at the call
site.

Release Notes:

- N/A
2023-11-16 13:03:30 -05:00
Conrad Irwin 5a78d0f94f Leaky, but better, test abstraction 2023-11-15 14:01:10 -07:00
Conrad Irwin 1699d61248 FileFinder tests 2023-11-15 13:16:28 -07:00
Conrad Irwin 4da07b9274 Add command palette tests and simulate_keystrokes 2023-11-14 23:22:51 -07:00
Conrad Irwin 1a79b76549 Fix panicking unwrap() 2023-11-14 11:27:52 -07:00
Nathan Sobo 5fcd29f74d WIP 2023-11-14 11:00:52 -07:00
Nathan Sobo 7d1a6a81df Merge remote-tracking branch 'origin/main' into element-types 2023-11-14 01:55:58 -07:00
Nathan Sobo 4df524687e Rename back to div 2023-11-14 01:41:55 -07:00
Nathan Sobo 14d5584205 Checkpoint 2023-11-14 01:15:48 -07:00
Conrad Irwin dba8da9a6b Update command matches faster 2023-11-13 18:21:08 -07:00
Conrad Irwin 45966b2960 Add KeyBindings to CommandPalette 2023-11-13 15:40:49 -07:00
Nate ButlerandMarshall Bowers c13a82fabf Resolve errors
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-13 13:16:05 -05:00
3f549377da Redine command palette style
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
2023-11-13 13:13:40 -05:00
Nate Butler 13a8138462 Update command palette style 2023-11-12 22:13:54 -05:00
Nate ButlerandMarshall Bowers abf4debc13 Refactor command palette, picker and code action styles.
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-10 16:13:25 -05:00
Conrad Irwin 95c1ae6316 Fix panic caused by focusing the same thing twice 2023-11-09 22:25:46 -07:00
Conrad Irwin 8decd62115 Refactor to make ModalLayer a View 2023-11-09 22:15:44 -07:00
Conrad Irwin acd60a35c6 Move from register_modals to register_workspace_action 2023-11-09 21:51:48 -07:00
Conrad Irwin 2b2c24afae Tidy up some more modal behaviour 2023-11-09 21:11:44 -07:00
Conrad Irwin 8b5d37ffa4 Tidy up 2023-11-09 20:58:35 -07:00