Conrad Irwin
633f23536a
Fix bug where vim commands were copied on each update_matches
...
In zed1, the array of commands was recalculated on every update_matches,
In zed2 it's cached before we change the focus.
2023-12-15 11:59:06 -07:00
Conrad Irwin
ab430c6442
fix modal exchange ( #3620 )
...
- Fix opening GoToLine from Command
- Extend test to cover go_to_line behavior too
Release Notes:
- N/A
2023-12-12 21:30:34 -07:00
Conrad Irwin
53c72419b8
Extend test to cover go_to_line behavior too
...
(It's also been broken and fixed a few times along the way)
2023-12-12 20:53:54 -07:00
Conrad Irwin
6bf18efa4e
Fix opening GoToLine from Command
...
This was broken because of the async hop introduced by should_dismiss.
Change that API to instead be syncronous, and require that implementors
(of which there is only one) to call dismiss again if they want to.
2023-12-12 20:46:27 -07:00
Conrad Irwin
5f81903e97
And restore the command palette spawn behaviour
2023-12-12 19:27:09 -07:00
Conrad Irwin
0d96e964ef
Merge branch 'main' into vim2
2023-12-11 09:38:23 -07:00
Conrad Irwin
aed17f4763
Restore impl_actions! and remove derive(Action)
2023-12-10 19:33:38 -07:00
Conrad Irwin
9befa3f9ca
Restore namespace parameter to actions!
...
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.
2023-12-09 15:18:31 -07:00
Max Brunsfeld
e845cc799d
Fix crash due to mutating command palette's candidates on confirmation
2023-12-09 11:08:33 -08:00
Joseph T. Lyons and Mikayla Maki
e418d69bc8
Allow modals to override their dismissal
...
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com >
2023-12-08 15:29:44 -05:00
Conrad Irwin
e356a7df09
vim2 compiling (but mostly commented out)
2023-12-08 18:47:14 +00:00
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 Osiewicz and Antonio
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 Brunsfeld and Conrad
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