Commit log

e72f7b4 edit predictions: Put back status bar button tooltips (#24548)

Click to expand commit body
These were wrongly removed in
https://github.com/zed-industries/zed/pull/24540; putting them back.

cc @SomeoneToIgnore 

Release Notes:

- N/A

Danilo Leal created

d0c4c66 Brighten yellow and black terminal colors in One themes (#24420)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/24419

I made some fine adjustments to the color of the theme with reference
to' Window Terminal' to make it look good. If there is anything
inappropriate in this revision, please also point it out. :)


![window-terminal-one-light](https://github.com/user-attachments/assets/86c4002f-a5a7-4ab1-81de-e6ed0529fe06)

![window-terminal-one-dark](https://github.com/user-attachments/assets/c57095d7-0131-4978-ae6d-7105639110b5)

Release Notes:
- N/A

Libon created

994bea0 workspace: Fix pane focus transfer when closing another pane (#23175)

Click to expand commit body
Closes #23123 

Only close current active_pane should move focus to other pane.

Release Notes:

- N/A

CharlesChen0823 created

6f7f0f3 Fix hover tooltips appearing after related element is pressed (#24540)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/23894

Reworks all trigger declarations from
`.trigger(element.tooltip(tooltip))` into
`.trigger_with_tooltip(element, tooltip)` , with new API disallowing
simultaneous trigger and tooltip display.

All existing `.trigger(` calls were replaced, except 2 not applicable
(in dock.rs and pane.rs), 15 left as ones without tooltips, and 2
unchanged places in `inline_completion_button.rs`, where


https://github.com/zed-industries/zed/blob/0f7bb2e9fd6dc1fe3f0127de19df372f75ad0c4f/crates/inline_completion_button/src/inline_completion_button.rs#L311-L319

`with_animation` does not allow us to simply use the same approach.

Release Notes:

- Fixed hover tooltips appearing after related element is pressed

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>

Kirill Bulatov and Danilo Leal created

1a133ab Settings/keymap backup path next to files + update notification messages (#24517)

Click to expand commit body
Before:


![image](https://github.com/user-attachments/assets/5b7d8677-b0db-4a66-ac30-e4751ba4182d)

After:


![image](https://github.com/user-attachments/assets/94743bc2-2902-43a3-8d6e-e0e0e6e469ec)

Release Notes:

- N/A

Michael Sloan created

cf74d65 Fix outline panel issues in a multi-worktree set-up (#24538)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/22993

Properly calculates depth and maintains worktree order, when displaying
multiple worktrees in the outline panel.

Release Notes:

- Fixed outline panel issues in a multi-worktree set-up

Kirill Bulatov created

8f1ff18 component: Add `component` and `component_preview` crates to power UI components (#24456)

Click to expand commit body
This PR formalizes design components with the Component and
ComponentPreview traits.

You can open the preview UI with `workspace: open component preview`.

Component previews no longer need to return `Self` allowing for more
complex previews, and previews of components like `ui::Tooltip` that
supplement other components rather than are rendered by default.

`cargo-machete` incorrectly identifies `linkme` as an unused dep on
crates that have components deriving `IntoComponent`, so you may need to
add this to that crate's `Cargo.toml`:

```toml
# cargo-machete doesn't understand that linkme is used in the component macro
[package.metadata.cargo-machete]
ignored = ["linkme"]
```

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>

Nate Butler and Marshall Bowers created

56cfc60 ui: Add `buffer_font` method to labels (#24479)

Click to expand commit body
Now you don't need to wrap the `Label` in a `div` anymore 

Release Notes:

- N/A

Co-authored-by: Danilo <danilo@zed.dev>

Agus Zubiaga and Danilo created

6ee447e Move focus into editor for `outline_panel::Open` action on outlines and search results (#24535)

Click to expand commit body
Follow-up of
https://github.com/zed-industries/zed/discussions/19782#discussioncomment-12055976

Release Notes:

- Fixed outline panel not focusing editor when outlines and search
results were opened with `outline_panel::Open`

Kirill Bulatov created

f42177a ci: Pin Prettier to a specific version for docs formatting (#24531)

Click to expand commit body
This PR pins Prettier to a specific version when we run the docs
formatting check.

This should prevent drift when new Prettier versions are released that
may impact the formatting.

Release Notes:

- N/A

Marshall Bowers created

072d2b0 ui: Remove `ToolStrip` component (#24529)

Click to expand commit body
This PR removes the `ToolStrip` component.

Pulling this change out of
https://github.com/zed-industries/zed/pull/24456.

Release Notes:

- N/A

Marshall Bowers created

065fdcb language_tools: Add background color to syntax tree view (#24524)

Click to expand commit body
Closes #22830 

@jansol, please take a look. I don't know if this is correct as I
couldn't really tell the difference. I just added the active theme's
background color to the main container of the tree view.

<img width="1309" alt="Screenshot 2025-02-09 at 10 29 15 AM"
src="https://github.com/user-attachments/assets/dadf9333-0074-4bfa-bb06-ed4c4f275200"
/>
 
Release Notes:

- Added an explicit background color to the syntax tree view.

cc: @iamnbutler

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>

Caleb! and Marshall Bowers created

e84d77e Fix typo in elm.md (#24519)

Click to expand commit body
Removes duplicate mention of `elm`.

Henrikh Kantuni created

f1693e6 project_panel: Fix worktree root rename (#24487)

Click to expand commit body
Closes #7923

This PR fixes root worktree renaming by:  

1. Handling the case where `new_path` is the new root name instead of a
relative path from the root.
2. [#20313](https://github.com/zed-industries/zed/pull/20313) added
functionality to watch for root worktree renames made externally, e.g.,
via Finder. This PR avoids relying on that watcher because, when
renaming explicitly from Zed, we can eagerly perform the necessary work
(of course after fs rename) instead of waiting for the watcher to detect
the rename. This prevents UI glitches during renaming root.

Todo:

- [x] Fix wrong abs paths when root is renamed
- [x] Fix explicit scan entry func to handle renamed root dir
- [x] Tests
- [x] Test on Linux
- [x] Tested with single and multipe worktrees
- [x] Tested when single file is root file

Release Notes:

- Fixed an issue where worktree root name couldn't be renamed in project
panel.

smit created

4207b19 docs: Fix typo in the Icon Themes page (#24516)

Click to expand commit body
Release Notes:

- N/A

Affan Shahid created

fe6d180 Sort Prettier files in `file_types.json` (#24505)

Click to expand commit body
This PR sorts the Prettier files added in #24496.

Release Notes:

- N/A

Marshall Bowers created

0294b19 Track caller on `<usize as ToOffset>::to_offset` (#24503)

Click to expand commit body
To get useful logs when reporting bugs involving offsets out of range

Release Notes:

- N/A

João Marcos created

b105587 Improve outline panel initial update (#24500)

Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/24128

* removed unnecessary debounces when updating the panel data
* removed all "loading"-related messages to snow nothing when initial
data is loaded, thus reducing flickering

Release Notes:

- Improved outline panel initial update

Kirill Bulatov created

3582fc4 File icons add icon association for Prettier config (#24496)

Click to expand commit body
This PR adds icon association for more Prettier's config files.

Here is the list:

```
.prettierrc.cjs
.prettierrc.js
.prettierrc.json5
.prettierrc.mjs
.prettierrc.toml
.prettierrc.yaml
.prettierrc.yml
prettier.config.cjs
prettier.config.js
prettier.config.mjs
```

Release Notes:

- Added icon support for additional Prettier config file types.

Sanjeev Shrestha created

ca4e804 Add branch to git panel (#24485)

Click to expand commit body
This PR adds the branch selector to the git panel and fixes a few bugs
in the repository selector.

Release Notes:

- N/A

---------

Co-authored-by: ConradIrwin <conrad.irwin@gmail.com>
Co-authored-by: Conrad <conrad@zed.dev>

Mikayla Maki , ConradIrwin , and Conrad created

d9183c7 vim: Escape to normal mode when visual surround operation pending (#24484)

Click to expand commit body
Closes #24382

Release Notes:
Added a default keymap that returns the user to `normal` mode after
pressing escape during a pending `visual-surround` operation.

- N/A

---------

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

roycrippen4 , roy.crippen4 , and Conrad Irwin created

7bddb39 vim: Preserve trailing whitespace in inner text object selections (#24481)

Click to expand commit body
Closes #24438

Changes: Adjusted loop to only trim whitespace between last newline and
closing marker, when using inner objects like `y/d/c i b`

| Start   | Fixed `vib`   | Previous `vib`   |
| ---------- | ---------- | ---------- |
|
![image](https://github.com/user-attachments/assets/3d64dd7d-ed3d-4a85-9f98-f2f83799a738)
|
![image](https://github.com/user-attachments/assets/841beb59-31b1-475e-93f0-f4deaf18939c)
|
![image](https://github.com/user-attachments/assets/736d4c6f-20e1-4563-9471-1e8195455df4)
|



Release Notes:

- vim: Preserve trailing whitespace in inner text object selections

---------

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

5brian and Conrad Irwin created

146b9c2 Sort and dedupe .gitignore files (#24491)

Click to expand commit body
Release Notes:

- N/A

Michael Sloan created

be26acc Cargo.lock update (#24486)

Click to expand commit body
Release Notes:

- N/A

Michael Sloan created

4be89ea title_bar: Add menu item to deploy icon theme selector (#24482)

Click to expand commit body
Added the icons option in the title bar between Themes and Extension.

| Before | After |
|
---------------------------------------------------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------------------------------------------------
|
| <img width="215" alt="Screenshot 2025-02-07 at 5 18 10 PM"
src="https://github.com/user-attachments/assets/ff8bf5ce-c176-4d8c-8b0e-bb1cc65ec1d8"
/> | <img width="206" alt="Screenshot 2025-02-07 at 5 18 01 PM"
src="https://github.com/user-attachments/assets/c47a302e-98af-4530-a908-097b8306f2f0"
/> |

Release Notes:

- Added an option to open the icon theme selector from the user menu.

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>

Beniamin Zagan and Marshall Bowers created

e17e838 Include prediction ID on edit prediction accepted/discarded events (#24480)

Click to expand commit body
This PR updates the edit predictions to include the prediction ID
returned from the server on the resulting telemetry events indicating
whether the prediction was accepted or discarded.

The `prediction_id` on the events can then be correlated with the
`request_id` on the server-side prediction events.

Release Notes:

- N/A

Marshall Bowers created

ed56568 inline_completion: Add missing punctuation (#24477)

Click to expand commit body
This PR adds some missing punctuation.

Release Notes:

- N/A

Marshall Bowers created

c4bcff1 edit predictions: Add binding to the prediction toggle (#24468)

Click to expand commit body
This PR primary goal is to add a keybinding to the (ephemeral)
prediction toggle. In doing that, we also standardized the keybinding to
open the status bar menu with it.

Release Notes:

- N/A

---------

Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com>

Danilo Leal and Bennet Bo Fenner created

07f1b61 edit predictions: Fix translucent "jump to edit" background color (#24473)

Click to expand commit body
This PR uses a pretty cool GPUI method called `blend` to make this
callout's background color not translucent.

| Before | Header |
|--------|--------|
| <img width="732" alt="Screenshot 2025-02-07 at 4 58 16 PM"
src="https://github.com/user-attachments/assets/2a5df61b-dfa0-4edc-bffa-a605a2aa491a"
/> | <img width="732" alt="Screenshot 2025-02-07 at 4 56 48 PM"
src="https://github.com/user-attachments/assets/5dee9fca-6239-4ae0-80f5-dcc6abf0e779"
/> |

Release Notes:

- N/A

Danilo Leal created

9e5bc81 zeta: Promote line comment to doc comment (#24476)

Click to expand commit body
This PR promotes a line comment for the `tos_accepted` field to a doc
comment.

Release Notes:

- N/A

Marshall Bowers created

7148092 Fix adding new git repos to a project (#24471)

Click to expand commit body
Release Notes:

- N/A

Conrad Irwin created

ead5a83 gpui: Add data table example (#24373)

Click to expand commit body
Release Notes:

- N/A

As https://github.com/zed-industries/zed/discussions/24260 I mentioned
issue.

Make a complex data table example to test the text rendering
performance.

This example also can be an example to show how to build a large data
table.

```bash
cargo run -p gpui --example data_table
```

<img width="2004" alt="image"
src="https://github.com/user-attachments/assets/653771e5-ef08-4d76-97b9-90ea4b78be59"
/>

----

I will try to do some test. 

For example: With a threshold for the hold number of caches in
`FrameCache`, and only when the threshold is greater than a certain
number, some caches are released, or when a certain time has passed. I
am not sure if this is feasible.

This example is added to help us to test.

Jason Lee created

3be8066 Newlines in commit editor (#24465)

Click to expand commit body
Release Notes:

- N/A

Conrad Irwin created

f6e3968 Re-introduce syntax-based context and use new model (#24469)

Click to expand commit body
Release Notes:

- N/A

---------

Co-authored-by: Marshall <marshall@zed.dev>

Antonio Scandurra and Marshall created

a47d5d3 v0.173.4

Marshall Bowers created

4b24411 Merge branch 'main' into v0.173.x

Marshall Bowers created

2197ccf Revert "edit prediction: Do not render jump cursor until line layout is ready (#24226)"

Click to expand commit body
This reverts commit 722fd59d9cbba1c4c109f571a44c551a43845fb1.

Marshall Bowers created

8fd2067 Revert "edit prediction: Fix jump cursor position when scrolled (#24230)"

Click to expand commit body
This reverts commit bc67f990ae374a96e81ab5e1afa8540a9bf1c13a.

Marshall Bowers created

598abb5 Revert "zed 0.173.1"

Click to expand commit body
This reverts commit 57d09d2fd3ec37745476251029372ef5f9762644.

Marshall Bowers created

be8a2b2 Revert "edit prediction: Allow enabling OSS data collection with no project open (#24265)"

Click to expand commit body
This reverts commit 1748fbeec86cd22fb9bbc87a7193680c59ba3cfc.

Marshall Bowers created

c2c9187 Revert "edit predictions: Onboarding funnel telemetry (#24237)"

Click to expand commit body
This reverts commit 45f9192137d6487e1f5e94aa86f0787ba7de7f96.

Marshall Bowers created

59b382a Revert "Accept edit predictions with `alt-tab` in addition to `tab` (#24272)"

Click to expand commit body
This reverts commit eafad7d9db9dead3561e19070ff71a93f26f602a.

Marshall Bowers created

c532d95 Revert "Fix panic when deleting an empty line after a deleted hunk (cherry-pick #24255) (#24282)"

Click to expand commit body
This reverts commit 79714fca98124d85b4f759196c4f5e8c75bcd4ca.

Marshall Bowers created

55720ff Revert "Implement character index for point (cherry-pick #23989) (#24284)"

Click to expand commit body
This reverts commit 8ed71b2dd0f1b595b235f56f0e720bbffc02e20d.

Marshall Bowers created

e893c32 Revert "edit prediction: Improve UX around `disabled_globs` and `show_inline_completions` (#24207)"

Click to expand commit body
This reverts commit 68b4f9ee1d8b8800b5adb885844d6111e387bc3b.

Marshall Bowers created

904c395 Revert "Revert recent anti-aliasing improvements (cherry-pick #24289) (#24291)"

Click to expand commit body
This reverts commit af0f36de7b5eeb2f7a068c9343efb3cb5fa9931a.

Marshall Bowers created

c00a1fb Revert "edit prediction: Fix license detection error logging + check for different spellings (#24281)"

Click to expand commit body
This reverts commit 9f825ca3cfd15a84f4aaae3a4153f650d1a991fa.

Marshall Bowers created

a9c33f3 Revert "Fix the worktree's repository_for_path (cherry-pick #24279) (#24292)"

Click to expand commit body
This reverts commit 0542019e2572a15b23fe5ad40586525ee04b423f.

Marshall Bowers created

91e99b3 Revert "zed 0.173.2"

Click to expand commit body
This reverts commit d54f6f97a760e2cf8a4880daa1145c3b5941c21e.

Marshall Bowers created

e280f96 Revert "gpui: Render SVGs at 2x size when rendered in an `img` (cherry-pick #24332) (#24336)"

Click to expand commit body
This reverts commit 58834b4e3a3543206edf9c55713521a6eb49e3e2.

Marshall Bowers created