Nate Butler
164084c61c
Update collab_titlebar_item.rs
2023-11-30 14:55:59 -05:00
Nate Butler
180ba42456
WIP update popover_menu
2023-11-30 14:54:44 -05:00
Nate Butler
5fdfdb046c
Remove unused import
2023-11-30 13:13:22 -05:00
Nate Butler
5eb89781e3
Clean up left side titlebar buttons
2023-11-30 13:11:20 -05:00
Nate Butler
679851e349
Add render_project_name
and render_project_branch
...
Co-Authored-By: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2023-11-30 12:51:55 -05:00
Nate Butler
8d4652a4db
Scaffold out render_project_owner
...
Co-Authored-By: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2023-11-30 12:41:17 -05:00
Nate Butler
e20309f560
Update collab_titlebar_item.rs
...
[no ci]
2023-11-30 09:44:33 -05:00
Nate Butler
daf6201deb
Start plugging selected states into collab ui
2023-11-30 09:35:37 -05:00
Nate Butler
82b3efa16c
Update collab button styles
2023-11-30 09:12:39 -05:00
Nate Butler
92d2048aa4
WIP
2023-11-30 00:28:05 -05:00
Max Brunsfeld
e49325080c
Implement activity indicator in zed2
2023-11-29 17:18:21 -08:00
Max Brunsfeld
c95a7c7387
Address some TODOs in editor2 crate ( #3445 )
...
* Fix crash when jumping to definition
* Enabling resolution of completions
* Make links in interactive text clickable
* Enable code paths that use `select_anchors`
2023-11-29 16:32:02 -08:00
Marshall Bowers
bda1dc7721
Use ButtonLike
for breadcrumb ( #3452 )
...
This PR updates the (placeholder) breadcrumb to use the new `ButtonLike`
component.
Eventually this will need custom styling (e.g., syntax highlighting for
the symbol children), which is why we're using a `ButtonLike` as opposed
to a regular `Button`.
Release Notes:
- N/A
2023-11-29 19:21:34 -05:00
Marshall Bowers
9d53287341
Implement Selectable
for buttons ( #3451 )
...
This PR implements the `Selectable` trait for `ButtonLike`, `Button`,
and `IconButton`.
Release Notes:
- N/A
2023-11-29 18:46:41 -05:00
Max Brunsfeld
27a6761afc
Fix crash when jumping to a definition in the same buffer
2023-11-29 15:36:22 -08:00
Conrad Irwin
4c27f4453c
Merge branch 'main' into collab-panel2
2023-11-29 16:32:25 -07:00
Marshall Bowers
04bbd107c1
Fix the selected state for the panel icons in the status bar ( #3450 )
...
This PR fixes a bug where the selected state for the panel icons in the
status bar was not correctly reflecting whether the panel was open.
It was erroneously using the `is_open` state for the context menu.
Release Notes:
- N/A
2023-11-29 18:20:08 -05:00
Marshall Bowers
b357ae4dc3
Add new Button
and IconButton
components ( #3448 )
...
This PR adds new `Button` and `IconButton` components built on top of
our new button abstractions.
Both of these buttons are built from the common `ButtonLike` base, and
implement the `ButtonCommon` (name TBD) trait in order to provide a
common interface.
There are still some visual tweaks that we'll need to make to the new
buttons, but those should be straightforward to make after we land this.
Release Notes:
- N/A
2023-11-29 17:41:44 -05:00
Conrad Irwin
cd60d466b1
Merge branch 'main' into collab-panel2
2023-11-29 15:40:16 -07:00
Conrad Irwin
0eef4d03ed
Scrollyscrolly
2023-11-29 15:30:50 -07:00
Max Brunsfeld
0b8f9067ff
Implement highlighting of go-to-definition links
2023-11-29 14:30:31 -08:00
Conrad Irwin
4f040208c6
Fix mouse interaction on contact subsections
2023-11-29 15:26:19 -07:00
Max Brunsfeld
9451bd605d
Implement completion-resolution in editor2
...
Enable the completion tests in editor2.
2023-11-29 14:20:47 -08:00
Conrad Irwin
3bdd51cb2a
Availability indicators
2023-11-29 15:06:58 -07:00
Conrad Irwin
4ebae4d8bd
Make LeftSlot take an element
2023-11-29 14:20:26 -07:00
Marshall Bowers
df5de47a78
Make toggle
method accept impl Into<Option<bool>>
( #3446 )
...
This PR makes the `toggle` method on the various list components accept
an `impl Into<Option<bool>>` instead of just an `Option<bool>`.
This allows a caller with just a `bool` avoid having to wrap the
`Option` themselves.
Release Notes:
- N/A
2023-11-29 16:13:41 -05:00
Max Brunsfeld
2bd428102b
Use pointer cursor style for clickable ranges in InteractiveText
2023-11-29 12:42:09 -08:00
Max Brunsfeld
fc2251e7ed
Implement SelectionsCollection::select_anchor_ranges
2023-11-29 12:41:22 -08:00
Conrad Irwin
fb377aed73
Context menu, Dragon Drop, for collab panel ( #3441 )
...
Release Notes:
- N/A
2023-11-29 13:40:46 -07:00
Marshall Bowers
d8ed7c0721
Move GraphicSlot
out of components
module ( #3444 )
...
This PR moves the `GraphicSlot` definition out of the `components`
module, as it doesn't contain a component.
Release Notes:
- N/A
2023-11-29 15:29:33 -05:00
Conrad Irwin
6ab3825ab1
No moar toggleable
2023-11-29 13:25:29 -07:00
Conrad Irwin
87cf0cf5ac
Merge branch 'main' into collab-panel2
2023-11-29 13:09:57 -07:00
Nate Butler
3c05d57e6a
Style hover popover
2023-11-29 14:56:23 -05:00
Conrad Irwin
139708d486
Merge branch 'main' into collab-panel2
2023-11-29 12:37:29 -07:00
Conrad Irwin
7e5aa5ce77
More drag'n'drop fixes
...
Co-Authored-By: Max <max@zed.dev>
2023-11-29 12:35:25 -07:00
Marshall Bowers
e77846d2dc
Rework Toggle
into Toggleable
and ToggleState
2023-11-29 14:33:52 -05:00
Conrad Irwin
e377bd805b
Add channel drag'n'drop
...
Co-Authored-By: Max <max@zed.dev>
2023-11-29 12:24:04 -07:00
Marshall Bowers
6f5cc0af94
Rework Disclosure
component
2023-11-29 14:07:48 -05:00
Conrad Irwin
41e7653906
Channel Context Menu
2023-11-29 11:39:26 -07:00
Marshall Bowers
c7b79c9aef
Remove unnecessary constructor and Clone
derives
2023-11-29 13:38:05 -05:00
Marshall Bowers
390b0d8d56
Reorganize list components
2023-11-29 13:34:50 -05:00
Conrad Irwin
ee260a5e24
Progress
2023-11-29 11:06:24 -07:00
Max Brunsfeld
960ef7116d
Add a context menu to the project panel ( #3393 )
...
This PR adds a context menu to the project panel in Zed2.
* [x] Allow the context menu to extend outside of the project panel's
bounds
* [x] Add keyboard shortcuts to the context menu
* [x] Dismiss the context menu
* [x] when running an action
* [x] when changing selection in the project panel
Release Notes:
NA
2023-11-29 10:04:41 -08:00
Marshall Bowers
3e2c517dd1
Add Disableable
trait ( #3439 )
...
This PR adds a new `Disableable` trait to use for elements that are
capable of being disabled.
Release Notes:
- N/A
2023-11-29 13:01:26 -05:00
Max Brunsfeld
dbfc7d3555
Merge branch 'main' into project-panel-context-menu
2023-11-29 09:45:31 -08:00
Conrad Irwin
c23a610d52
Move padding on uniform list inside the scrollable area ( #3437 )
...
Release Notes:
- N/A
2023-11-29 10:43:04 -07:00
Max Brunsfeld
233aac5573
Make DismissEvent a unit struct
...
Co-authored-by: Conrad <conrad@zed.dev>
2023-11-29 09:42:54 -08:00
Marshall Bowers
043cef89eb
Remove unneeded wrapping div
s in ListItem
left content ( #3438 )
...
This PR removes some unneeded wrapping `div`s around the left content in
`ListItem`s.
Release Notes:
- N/A
2023-11-29 12:40:35 -05:00
Max Brunsfeld
ac34229118
Add keyboard control over context menus
...
Co-authored-by: Conrad <conrad@zed.dev>
2023-11-29 09:39:20 -08:00
Marshall Bowers
912c30c05b
Remove unneeded .clone
s
2023-11-29 12:35:39 -05:00