Commit log

fbefe44 zed 0.144.1

Peter Tripp created

ba94109 Keymap changes for `editor::JoinLines` (cherry-pick #14136) (#14234)

Click to expand commit body
Cherry-picked Keymap changes for `editor::JoinLines` (#14136)

gcp-cherry-pick-bot[bot] created

7d36760 Fix reverse selections always being cleared (cherry-pick #14150) (#14231)

Click to expand commit body
Cherry-picked Fix reverse selections always being cleared (#14150)

When I implemented #13701, I kinda messed up with the reversed
selections, thinking that their anchors are flipped, so I flipped them
again. This caused the reverse selections to always be cleared

Release Notes:

- Fix reverse selections always being cleared, even if the right click
was performed inside

Co-authored-by: Stanislav Alekseev <43210583+WeetHet@users.noreply.github.com>

gcp-cherry-pick-bot[bot] and Stanislav Alekseev created

8a0d5ae Build x86 linux too :/ (cherry-pick #14068) (#14073)

Click to expand commit body
Cherry-picked Build x86 linux too :/ (#14068)

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>

gcp-cherry-pick-bot[bot] and Conrad Irwin created

962be2e v0.144.x preview

Joseph T Lyons created

e1a6efa go: Quote targeting expression on runnables (#14055)

Click to expand commit body
Release Notes:

- Go: fix test runnables in fish shell.

Daniel Schmidt created

ba7d5a3 Fixed keymap for toggling right dock in linux (#14041)

Click to expand commit body
Release Notes:

- N/A

Saurabh created

6f99399 extensions: Add support for snippets provided by extensions (#14020)

Click to expand commit body
For now extensions can only register global snippets, but there'll be
follow-up work to support scope attribute in snippets.json.

Release Notes:

- Extensions can now provide snippets by including `snippets.json` file
next to the extension manifest.

---------

Co-authored-by: Marshall <marshall@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>

Piotr Osiewicz , Marshall , and Marshall Bowers created

2f2047a outline_panel: Fix outline panel should autoscroll when selection has changed (#14038)

Click to expand commit body
Fixed selection changed, outline panel not autoscroll.

Release Notes:

- N/A

CharlesChen0823 created

d01d764 gpui: Expose more granular style macros (#14035)

Click to expand commit body
This PR extract more GPUI style methods into macros that can be composed
together to selectively add styles to components.

Release Notes:

- N/A

Marshall Bowers created

a46a562 ui: Add margin style methods to `Label` and `LabelLike` (#14032)

Click to expand commit body
This PR adds margin style methods to the `Label` and `LabelLike`
components.

This allows for callers to provide a margin to these components without
needing to introduce a wrapping `div` to do so.

Release Notes:

- N/A

Marshall Bowers created

4bb8a08 Measure maximum width of each cell to render table (#14026)

Kyle Kelley created

c4bca87 assistant: Replace margin with gap (#14027)

Click to expand commit body
This PR replaces a usage of margin with a gap. This allows us to remove
an extra wrapping `div`.

Release Notes:

- N/A

Marshall Bowers created

46c0aa5 Update README.md

Mikayla Maki created

2db06c1 assistant: Remove unneeded wrapping `div` in `ModelSelector` (#14024)

Click to expand commit body
This PR removes an unneeded wrapping `div` in the `ModelSelector`.

Release Notes:

- N/A

Marshall Bowers created

c59d5fb Update .dockerignore (#14016)

Click to expand commit body
Release Notes:

- N/A

Joe Fitzgibbons created

8df098f Update linux.md

Mikayla Maki created

639b21a Update README.md

Mikayla Maki created

c65673f Fix linux prompts (#14021)

Click to expand commit body
Release Notes:

- N/A

Conrad Irwin created

6c9da83 Update README.md

Mikayla Maki created

a173bee Set minversion to next Zed Linux release

Mikayla Maki created

002ce6c Update README.md

Mikayla Maki created

2c30b88 Update README.md

Mikayla Maki created

0d527df Better zsh install fix (#14017)

Click to expand commit body
Fix it on linux too :facepalm:

Release Notes:

- N/A

Conrad Irwin created

110ce8a Python: Fix auto close for single quotes (#14014)

Click to expand commit body
Fixes #13972

Peter Tripp created

c6b9f19 Remove additional wrapping elements in the chat panel (#14013)

Click to expand commit body
This PR removes some wrapping elements that were used inside of the chat
panel.

To facilitate this, the `Label` component now has a `weight` method to
change the font weight.

Release Notes:

- N/A

Marshall Bowers created

df935df windows: Obtain mouse double-click information from the system instead of hardcoding (#13391)

Click to expand commit body
Release Notes:

- N/A

张小白 created

68b5ea4 windows: Fix and simplify title bar padding (#13420)

Click to expand commit body
This PR fixes the off by one pixel of the top client rect when not
maximized due to the added border. It also simplifies and properly fixes
the title bar padding problem when maximized, it is now properly taken
care of in GPUI rather then adding the padding in the UI.

Release Notes:

- N/A

Matin Aniss created

5e1521e Change the default shortcut for git blame on Linux (#13637)

Click to expand commit body
Zed already has a shortcut assigned to ctrl-alt-g and it's mapped to
`search::SelectNextMatch`. Having another multi shortcut with the same
prefix makes `ctrl-alt-g` to have a very noticeable delay when pressed.

This commit changes the default shortcut for git blame to `alt-g b`

Release Notes:

- N/A

Aleksei Gusev created

ba28827 Add support for numpad keys on linux (#14018)

Click to expand commit body
Fixes https://github.com/zed-industries/zed/issues/12117

Partial application of the changes in
https://github.com/zed-industries/zed/pull/13396

Release Notes:

- N/A

Mikayla Maki created

c22dbbe windows: Fix `tailwindcss-language-server` (#13891)

Click to expand commit body
We should run this server with `powershell`, or we will get some runtime
errors.

![Screenshot 2024-07-06
180154](https://github.com/zed-industries/zed/assets/14981363/e272e146-d4a8-4447-aa65-b657a49622de)


Release Notes:

- Fixed `tailwindcss-language-server` on Windows.

张小白 created

8f29ff8 windows: Fix font clipping issue (#13854)

Click to expand commit body
Closes #12737 . Left before this PR, right after.

![Screenshot 2024-07-05
180308](https://github.com/zed-industries/zed/assets/14981363/437baec3-2672-4b19-8595-17a6c564506e)


Release Notes:

- Fixed font rendering clipping issue on Windows.(#12737 )

张小白 created

ae414e2 gpui: Fix hide titlebar on Windows, with `titlebar: None` option (#13975)

Click to expand commit body
Release Notes:

- N/A

Ref the macOS Window:

When the `titlebar` is none, the titlebar should be hidden.


https://github.com/zed-industries/zed/blob/adaa4831766cde63b408909cf65cdeb1641e5888/crates/gpui/src/platform/mac/window.rs#L516-L528

```
cargo run -p gpui --example window_positioning
```

## Before


![img_v3_02ck_939c23d0-acc6-40c1-aaf7-c6dd73ddf7ag](https://github.com/zed-industries/zed/assets/5518/f2c7aa02-a102-4f24-8243-74219957d16b)

## After

<img width="466" alt="image"
src="https://github.com/zed-industries/zed/assets/5518/176ce4ea-14e9-44c8-8f2d-01e20ff3e543">

Jason Lee created

2dd4867 Reveal in files instead of Finder (#13432)

Click to expand commit body
fixes: #12776 

Release Notes:

- Renamed `editor::RevealInFinder` to `editor::RevealInFileManager`

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>

francesco-gaglione and Mikayla Maki created

f44e81b Add more package managers to docs (#14015)

Click to expand commit body
Release Notes:

- N/A

Mikayla Maki created

c093bc8 Fix search/replace start of line anchor (#13920)

Click to expand commit body
This is related to #9428 

I noticed that doing a search and replace for the beginning of a line
`^` results in the trailing line being included in the search. This
seems to be because of the way the range is generated for generating
matches being the up to the start of the trailing line rather than up to
the end of the last line.

I added a test and took a stab at fixing it but it is a bit yolo as this
is the first time I've seen this codebase.

Andy Weiss created

09e7b48 lsp: Add support for ShowMessage notification (#14012)

Click to expand commit body
When "one newer language" sends these messages, "one newer editor" will
display a pop-up for users to see. :)

Related to https://github.com/gleam-lang/gleam/issues/3274


![image](https://github.com/zed-industries/zed/assets/24362066/00d2c168-59f0-4033-91c8-af29c47516b3)

Release Notes:

- A certain popular language recently had to work around a missing LSP
notification. This has been fixed

Piotr Osiewicz created

8cfa690 Fix transparency (#14010)

Click to expand commit body
Release Notes:

- (preview only) Fix transparent themes

Conrad Irwin created

3cdd465 gpui: Make style macros more composable (#14007)

Click to expand commit body
This PR begins the process of breaking up the `style_helpers!` macro
into smaller macros that can be used to generate methods for a related
subset of styles.

The style method macros also now accept an optional `visibility`
parameter to control the visibility of the generated methods. This
allows for adding these methods to a struct instead of a just a trait.

For example, to expose just the padding styles on a `Facepile` we can do
this:

```rs
impl Facepile {
    fn style(&mut self) -> &mut StyleRefinement {
        self.base.style()
    }

    gpui::padding_style_methods!({
        visibility: pub
    });
}
```

Release Notes:

- N/A

Marshall Bowers created

8203b68 windows: Remove more `todo`s (#13818)

Click to expand commit body
Release Notes:

- N/A

张小白 created

ce7074c Fix panic when opening the same context twice (#14004)

Click to expand commit body
Release Notes:

- Fixed a crash that occurred when opening the same context twice in the
assistant panel (preview-only).

Antonio Scandurra created

6cc8412 Prevent dumping of temporary files in config_dir (#14002)

Click to expand commit body
Move telemetry temp files from `config_dir` to `log_dir`. Fixes #7155 

- On MacOS: from `~/.config/zed` to `~/Library/Logs/Zed`
- On Linux: from `~/.config/zed` to `.local/share/zed/logs` (or
`$FLATPAK_XDG_DATA_HOME/zed/logs`).

Release Notes:

- Fixed telemetry putting temporary files in config_dir
([#7155](https://github.com/zed-industries/zed/issues/7155)).

Peter Tripp created

2a97aad Fix scrolling sticking to top (#13874)

Click to expand commit body
The problem seemingly was that scrolling only started after autoscroll
has finished. I have added a function to forcefully stop it, which I
call when scroll event happens
Release Notes:

- Fixed delay when changing scrolling direction (#13720)

---------

Co-authored-by: Piotr <piotr@zed.dev>

Stanislav Alekseev and Piotr created

275dd3f Remove extraneous `Cargo.lock` files (#14001)

Click to expand commit body
This PR removes some extraneous `Cargo.lock` files for the `storybook`
and `sqlez` crates.

These lockfiles were not used, as everything uses the workspace's
`Cargo.lock`.

Release Notes:

- N/A

Marshall Bowers created

3cb2a14 gpui_macros: Refactor style helpers (#13999)

Click to expand commit body
This PR refactors the style definitions in the `gpui_macros` style
helpers to use structs instead of tuples for additional clarity.

Release Notes:

- N/A

Marshall Bowers created

dd9b2e2 PR template: Make issue numbers double clickable (no brackets) (#13989)

Click to expand commit body
Release Notes:

- N/A

Peter Tripp created

b691d1b Improve experience when themes provide transparent status colors (#13996)

Click to expand commit body
We shouldn't assume all themes will give us solid status color
backgrounds.

This change makes it so the status color renders on top of a normal
elevated surface background.

#### Before | After (Transparent status background color – Fixed)

![CleanShot 2024-07-09 at 10 50
17@2x](https://github.com/zed-industries/zed/assets/1714999/5f4b24c1-335a-4ed8-a1d0-f511e217e4a5)

![CleanShot 2024-07-09 at 10 50
31@2x](https://github.com/zed-industries/zed/assets/1714999/38c06533-bda5-4cfb-822a-ed5a9639fc33)

---

#### Before | After (Solid status background color – No change)

![CleanShot 2024-07-09 at 10 49
43@2x](https://github.com/zed-industries/zed/assets/1714999/bd60c807-a7bb-4f60-ab47-ddba17288e93)

![CleanShot 2024-07-09 at 10 49
58@2x](https://github.com/zed-industries/zed/assets/1714999/6ab27d60-5a77-448c-a23b-569b337f11e1)



Release Notes:

- Improved support for transparent status colors in themes.

Nate Butler created

bc0359a gpui: Input example log keystrokes (#13963)

Click to expand commit body
Release Notes:

- N/A

Conrad Irwin created

23c84f8 linux: Treat fullscreen as tiled on X11 and prevent resizing while maximized (#13990)

Click to expand commit body
Two quick fixes for issues I noticed:

1. Fullscreening an unmaximized X11 window still showed rounded window
corners and allowed resizing
2. Maximized windows still allowed for resizing on corners due to
missing checks

![image](https://github.com/zed-industries/zed/assets/71973804/47df4de2-4013-4e51-88c3-d33b52a909f5)


Release Notes:

- N/A

apricotbucket28 created

2922617 docs: Add tiny tweaks to the Linux page (#13994)

Click to expand commit body
Release Notes:

- N/A

Danilo Leal created