Commit Graph
1149 Commits
Author SHA1 Message Date
Max BrunsfeldandMarshall b199bcb28b Merge branch 'main' into zed2-project-test
Co-authored-by: Marshall <marshall@zed.dev>
2023-10-31 11:50:56 -07:00
Conrad Irwin a1fb3523d3 Merge branch 'main' into zed2 2023-10-27 10:55:15 +02:00
Conrad Irwin e9a72a23b4 v1 2023-10-26 18:19:57 +02:00
Joseph T. Lyons 315c1e6022 Revert "Add activity_indicator2"
This reverts commit 456c659c2a.
2023-10-26 17:13:40 +02:00
Joseph T. Lyons 456c659c2a Add activity_indicator2 2023-10-26 16:49:39 +02:00
Conrad Irwin 20aba94a6b Clearer error on importing both gpui and gpui2 2023-10-26 10:39:52 +02:00
Max Brunsfeld ab38098989 Load more notifications when scrolling down 2023-10-22 17:10:21 +02:00
Max Brunsfeld 5d1e917401 Merge branch 'main' into notifications 2023-10-22 12:25:30 +02:00
Conrad Irwin 7186969334 Fix bug in vim visual block mode 2023-10-20 11:49:10 -06:00
Conrad Irwin 83d315d720 Fix single column vim selections 2023-10-20 11:17:19 -06:00
Conrad Irwin fbbf36d152 Merge branch 'main' into pixel-columns 2023-10-18 23:00:56 -06:00
Max Brunsfeld 0b084d3b67 Add an empty state to the notification panel 2023-10-16 12:54:44 -07:00
Nathan Sobo 49f73ce19c Checkpoint 2023-10-16 20:16:35 +02:00
Nathan Sobo 458c7aa4f5 Get everything rendering again 2023-10-16 20:15:24 +02:00
Julia e3e012b4b4 Autocomplete docs (#3126)
Release Notes:

- Added documentation display for autocomplete items.
- Fixed autocomplete filtering blocking the Zed UI, causing hitches and
input delays with large completion lists.
- Fixed hover popup link not firing if the mouse moved a slight amount
while clicking.
- Added support for absolute path file links in hover popup and
autocomplete docs.
2023-10-13 13:26:45 -04:00
Antonio Scandurra 36ad020380 Merge branch 'main' into gpui2 2023-10-12 10:55:17 +02:00
JuliaandAntonio Scandurra 545bfa4231 Make completion documentation scroll & fix accompanying panic from tag
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-10-10 10:08:29 -04:00
Conrad Irwin 3e26012885 Round better for up/down 2023-10-09 21:48:32 -06:00
Conrad Irwin 36c95ae516 Merge branch 'main' into links 2023-10-09 20:08:48 -06:00
Conrad Irwin 925afa67d0 Fix ./script/bundle to allow passing key 2023-10-09 08:59:25 -06:00
Marshall Bowers f403508188 Merge branch 'main' into gpui2 2023-10-07 10:50:05 -04:00
Conrad Irwin d6a8816b42 Add universal links support to mac platform 2023-10-06 23:15:37 -06:00
fcd44e93d3 Mainline GPUI2 UI work (#3099)
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.

Included in this is a performance improvement to make use of the
`TextLayoutCache` when calling `layout` for `Text` elements.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2023-10-06 13:18:56 -04:00
Antonio Scandurra 218527478f Checkpoint: start rendering images 2023-10-04 15:03:21 +02:00
Max Brunsfeld 6f6460a858 Merge branch 'main' into channel-changes 2023-10-03 17:52:28 -07:00
Nathan Sobo 956728505c Checkpoint: Glyphs rendering how I'd like 2023-10-03 17:29:36 -06:00
Nathan Sobo 824a682201 Checkpoint 2023-10-03 16:17:25 -06:00
Nathan Sobo 729d4d77e9 WIP 2023-10-03 15:17:45 -06:00
Nathan Sobo 353ec430ef WIP 2023-10-03 14:25:29 -06:00
Max BrunsfeldandMikayla 90373d87a7 Avoid spurious notifies in chat channel select
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-10-02 15:57:59 -07:00
Conrad Irwin 5b30778967 Add a screen for gpui tests
Allows me to test notifications
2023-10-02 09:53:30 -06:00
Mikayla 03777676aa Implement channel changes for messages 2023-10-01 22:32:11 -07:00
Piotr Osiewicz 44c05f7a86 ui: Mirror option key in keybindings (#3065)
![image](https://github.com/zed-industries/zed/assets/24362066/94731737-a21a-4cef-a445-eb855f1a4d3e)

![image](https://github.com/zed-industries/zed/assets/24362066/e879ec9a-70aa-4989-923f-4cca18d01587)

Release Notes:

- Fixed option key's appearance in keybindings
2023-09-29 16:45:49 +02:00
Nathan Sobo b369ffe1d6 Checkpoint 2023-09-27 21:14:09 -06:00
Marshall Bowers b91ba727a0 Report which requested font families are not present on the system (#3006)
This PR improves the error message when `FontCache.load_family` attempts
to load a font that is not present on the system.

I ran into this while trying to run the `storybook` for the first time.
The error message indicated that a font family was not found, but did
not provide any information as to which font family was being loaded.

### Before

```
   Compiling storybook v0.1.0 (/Users/maxdeviant/projects/zed/crates/storybook)
    Finished dev [unoptimized + debuginfo] target(s) in 8.52s
     Running `/Users/maxdeviant/projects/zed/target/debug/storybook`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: could not find a non-empty font family matching one of the given names', crates/theme/src/theme_settings.rs:132:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
libc++abi: terminating due to uncaught foreign exception
fish: Job 1, 'cargo run' terminated by signal SIGABRT (Abort)
```

### After

```
   Compiling storybook v0.1.0 (/Users/maxdeviant/projects/zed/crates/storybook)
    Finished dev [unoptimized + debuginfo] target(s) in 7.90s
     Running `/Users/maxdeviant/projects/zed/target/debug/storybook`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: could not find a non-empty font family matching one of the given names: `Zed Mono`', crates/theme/src/theme_settings.rs:132:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
libc++abi: terminating due to uncaught foreign exception
fish: Job 1, 'cargo run' terminated by signal SIGABRT (Abort)
```

Release Notes:

- N/A
2023-09-22 15:27:42 -04:00
Marshall BowersandPiotr Osiewicz 6eb1360ba6 Put Theme behind an Arc (#3017)
This PR puts the `Theme` returned from the `theme` function behind an
`Arc`.

### Motivation

While working on wiring up window focus events for the `TitleBar`
component we ran into issues where `theme` was holding an immutable
borrow to the `ViewContext` for the entirety of the `render` scope,
which prevented having mutable borrows in the same scope.

### Explanation

To avoid this, we can make `theme` return an `Arc<Theme>` to allow for
cheap clones and avoiding the issues with the borrow checker.

Release Notes:

- N/A

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2023-09-22 13:35:30 -04:00
Mikayla c4a0267642 Switch drag end event to be fired after mouse up 2023-09-21 08:58:36 -07:00
Nathan Sobo 4769f8dc4d WIP - Next: implement Element derive macro 2023-09-20 22:26:46 -06:00
Nathan Sobo 752f2f8b9b Checkpoint 2023-09-20 12:16:26 -06:00
Nathan Sobo a06e8dbfd7 Checkpoint 2023-09-20 10:17:29 -06:00
Nate Butler ad9c0e70ca Merge branch 'main' into nate/gpui2-ui-components 2023-09-19 00:26:41 -04:00
Nathan Sobo 4b86052007 Checkpoint 2023-09-18 20:17:27 -06:00
Nathan Sobo 4b3522984c Checkpoint: Add methods for setting arbitrary lengths 2023-09-18 19:48:22 -06:00
Piotr Osiewicz ed9b176d52 chore: Hoist non-generic part out of add_action_internal. (#2981)
add_action_internal shows up often in downstream crates (as it should
be, since it's a generic function it's codegened in each crate that uses
it); it adds non-trivial amounts of LLVM IR to the build as a whole
which we can cut down a bit by doing the inner fn trick.

Release Notes:

- N/A
2023-09-18 11:55:44 +02:00
Max Brunsfeld b21b2dd959 Merge branch 'main' into chat-again 2023-09-15 11:06:39 -07:00
Max Brunsfeld 5a2c3c4393 Add buttons for opening channel notes and joining call, in chat panel header 2023-09-14 18:05:44 -07:00
Max Brunsfeld 1965c351e3 Style the chat panel further 2023-09-14 17:19:08 -07:00
Conrad Irwin 914959abf3 Fix multi-key shortcuts with modifiers
To make this work we need to move the handling of multiple possible key
events into the keyboard shortcut system.

This was broken in #2957.
2023-09-14 14:35:17 -06:00
Nathan Sobo f03dcbe781 WIP 2023-09-12 12:43:08 -06:00
Nathan Sobo c770e06c0c Checkpoint 2023-09-11 12:58:55 -06:00