Commit Graph
39175 Commits
Author SHA1 Message Date
Marshall Bowers 1c9eb27757 ui2: Reference theme2 and settings2 crates without the 2 (#3424)
This PR updates the `ui2` crate to reference the `theme2` and
`settings2` crates without the `2` the way we do in our other crates.

Release Notes:

- N/A
2023-11-28 15:30:29 -05:00
Nate Butler 5d0e7270ff Refine keybindings (#3368)
[[PR Description]]

Refine the `Keybinding` component.

Still some issues:

![CleanShot 2023-11-28 at 15 15
38@2x](https://github.com/zed-industries/zed/assets/1714999/4fc1dde4-fe65-4e1d-acf5-6faefa12f053)

Lots of things moving so want to get this in.

Changes:

- use icons for some keys & modifiers
- updates some icons
- updates some state colors

Release Notes:

- N/A

Zed 2 Release Notes:

- Keybindings now use icons for common keys and modifiers
2023-11-28 15:22:38 -05: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 6399784932 Update keybinding.rs 2023-11-28 15:12:40 -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 da5cfb3f5a ui2: Unsuppress and fix warnings (#3423)
This PR unsupresses the warnings in `ui2` and summarily fixes them.

Release Notes:

- N/A
2023-11-28 14:44:19 -05:00
Nate Butler 858a30fbeb Update keybinding.rs 2023-11-28 14:40:26 -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
Nate Butler f28e252e50 Merge branch 'main' into refine-keybindings 2023-11-28 14:00:09 -05:00
Conrad Irwin bf773dc6b3 Add logged out collab panel (#3412)
Release Notes:

- N/A
2023-11-28 11:49:09 -07:00
Conrad Irwin 77cf299566 Merge branch 'main' into collab-panel2 2023-11-28 11:40:58 -07:00
Marshall Bowers 3483114c19 Use ListItems in the project panel (#3421)
This PR reworks the project panel to render its items using the
`ListItem` component.

There are a few hacks in here in order to get click handlers working for
the `ListItem`, but we'll want to get these fixed in GPUI.

Release Notes:

- N/A
2023-11-28 13:11:43 -05:00
Kirill Bulatov 4e6941bb90 Use proper npm arguments and clean its inherited env vars (#3419)
Previously, `npm i` command could take too much time to download
dependencies, which was caused by wrong flags used.

Since we run `node` and `npm` processes ourselves and try to isolate
them from potentially "bad" user configs, it seems safer to remove any
ways to re-configure the tools via env vars, so strip off those too.

Release Notes:

- N/A
2023-11-28 19:14:10 +02:00
Conrad Irwin 5b5206ab64 More mouse occlusion work 2023-11-28 09:59:58 -07:00
Kirill Bulatov 08dc019824 Use proper npm arguments and clean its inherited env vars 2023-11-28 18:39:03 +02:00
Antonio Scandurra aff62ff89e WIP: preserve aspect ratio of images 2023-11-28 17:33:11 +01:00
Marshall Bowers d3ca1c1421 Render Picker matches using ListItems (#3418)
This PR updates the `PickerDelegate` implementations to render their
matches using the `ListItem` component so that they can have a
consistent style.

At some point it might make sense to move the `ListItem` rendering up
into the `Picker` implementation itself, and just have the delegate
responsible for giving us the inner content of the `ListItem`.

Release Notes:

- N/A
2023-11-28 10:56:27 -05:00
Marshall Bowers a6370091bc Use ListItems in Picker story 2023-11-28 10:52:17 -05:00
Antonio ScandurraandJulia fd4a8afc92 Introduce surface rendering
Co-Authored-By: Julia <julia@zed.dev>
2023-11-28 16:47:31 +01: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
Piotr Osiewicz 3033826942 fixup! Add contact finder, change ui::List's on_click handler signature 2023-11-28 14:37:53 +01:00
Piotr Osiewicz e81e3c4fb3 Add contact finder, change ui::List's on_click handler signature 2023-11-28 14:16:51 +01:00
Conrad Irwin d1cdd512bd Use layers to correct mouse event handling too 2023-11-28 00:07:26 -07:00
Conrad Irwin 8a908df52c Fix hover state when element is occluded 2023-11-27 23:18:25 -07:00
Conrad Irwin 7260a5ef7e Show channels and users in the sidebar 2023-11-27 19:57:55 -07:00
Mikayla Maki 39f40ce22c Add Uiua language and Nu LSP (#3416)
Adds support for Uiua to my favorite editor in advance of AOC and
integrates the new nushell lsp. Change made to both zed1 and zed2.

Release Notes:

- Added support for the integrated Nushell LSP
- Added support for the Uiua language
2023-11-27 18:55:51 -08:00
Mikayla a614cc433c Merge branch 'main' into welcome 2023-11-27 18:55:23 -08:00
Mikayla 8436b634b3 Add uiua and nu languages 2023-11-27 18:46:56 -08:00
Nate Butler 52900b4088 🚧 Completion & Popover Styles 🚧 (#3406)
TODO:

- [ ] Add y axis padding to list instead of popover container
- [x] Combined max-width between completions list and docs
- [ ] Allow docs to be taller than completion list
- [x] Use the workspace bounds to set doc position
- [ ] Clean up markdown styles
- [x] (🐜) Changing items should set doc scroll position to the top
- [x] (🐜) popovers should render on top of all panes
- [ ] (extra) Try adding code block backgrounds to md rendering
- [ ] (extra) Use ui font for markdown text, buffer font for markdown
code.
- [ ] (extra) Try lining up inline code in completions menu

[[PR Description]]

Release Notes:

- N/A
2023-11-27 21:08:21 -05:00
Conrad Irwin f31e301c73 Scaffolding for update notification too (#3410)
Release Notes:

- N/A
2023-11-27 19:05:15 -07:00
Nate Butler 7c497bd783 Update popover.rs 2023-11-27 20:12:20 -05:00
Nate Butler 88aefa344a Merge branch 'main' into completions-styles 2023-11-27 19:22:07 -05:00
Conrad Irwin 4c8c526d85 remove zed1 notification mess (#3415)
Accidentally added while testing zed2

Release Notes:

- N/A
2023-11-27 16:52:51 -07:00
Conrad Irwin f41174a63b remove zed1 notification mess 2023-11-27 16:27:02 -07:00
Conrad Irwin 853b68b456 TEMP 2023-11-27 16:22:01 -07:00
Max Brunsfeld 76e7223108 Upgrade Tree-sitter for stack-overflow bugfix (#3413)
Fixes https://github.com/zed-industries/community/issues/2290

This PR bumps Tree-sitter for
https://github.com/tree-sitter/tree-sitter/pull/2788.

Release Notes:

- Fixed a crash that could happen when opening certain large markdown
files.
2023-11-27 15:13:55 -08:00
Max Brunsfeld 8dfdae14fe Use 'any-match?' predicate in elixir embedding query 2023-11-27 15:06:20 -08:00
Conrad Irwin db268c2f52 Merge branch 'main' into collab-panel2 2023-11-27 15:57:09 -07:00
Conrad Irwin c0ee4bd948 Fix esc in command palette (#3414)
Also: add editor.register_action

Release Notes:

- N/A
2023-11-27 15:47:01 -07:00
Conrad Irwin facea92068 Fix panic on quit 2023-11-27 15:33:47 -07:00
Conrad Irwin 54793808a6 Fix esc in command palette
Also: add editor.register_action
2023-11-27 14:32:22 -07:00
Max Brunsfeld 4dbfdfdf02 Upgrade Tree-sitter for stack-overflow bugfix 2023-11-27 13:16:50 -08:00
JuliaandMax Brunsfeld 54a1ef9697 zed2: Mostly port breadcrumbs & improve StyledText api
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2023-11-27 16:09:31 -05:00
Piotr Osiewicz 4a0c9db114 fixup! Await toggle of mute 2023-11-27 21:46:03 +01:00
Piotr Osiewicz 7cef1a1fd7 Await toggle of mute 2023-11-27 21:44:53 +01:00
Marshall Bowers 2b2ee71c6c Add ListItem story (#3411)
This PR adds a story for the `ListItem` component, so we can work on it
in isolation.

Release Notes:

- N/A
2023-11-27 15:24:41 -05:00
Piotr Osiewicz 69daeed6e2 call: Restore mute_on_join behaviour 2023-11-27 21:06:06 +01:00