Kirill Bulatov and Piotr
2b844f5cb5
Sort file finder matched entries better ( #6704 )
...
* applicable history items were sorted by latest opened order, now
sorted by match score as the search matches
* adjust the match sorting to show paths in the alphanumerical order (in
case of a tie on other params)
Release Notes:
- Improved file finder entries ordering
---------
Co-authored-by: Piotr <piotr@zed.dev >
2024-01-25 15:25:33 +02:00
Kirill Bulatov
b20b1d446f
Revert search in gitignored files in file finder ( #4229 )
...
Reverts
https://github.com/zed-industries/zed/pull/3748/commits/2f56fe9129e98520ee9ffbc79c38f0d01ae4ca4d
since gitignored file indexing is inconsistent.
Release Notes:
- Removed the ability to search in gitignored files via file_finder for
now, as it's not consistent enough for good UX
2024-01-24 00:00:27 +02:00
Kirill Bulatov
e6573e9055
Revert search in gitignored files in file finder
2024-01-23 23:50:25 +02:00
Kirill Bulatov
7ec68e0227
Improve completion, action and shared project popovers' layout ( #4226 )
...
Before:
* cutoff completion labels and docs
<img width="801" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/12fe39b2-a8a7-42d8-b697-e2a4fbd836b7 ">
* too long action labels start to introduce newlines and break the
layout
<img width="716" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/a0530f1e-4200-4cc4-8e0f-9a63d04e4d5c ">
* too long completion proposals are cut off
<img width="1321" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/1ec154a1-9de5-4e47-9e9f-632b3e33f42a ">
After:
* the docs are shifted, but both completions and docs are rendered
entirely now
<img width="1351" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/ddb0baa4-88b6-45e9-b3e1-496c0d6a0d0f ">
*
<img width="750" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/102ed77c-d7d0-41d2-a4a0-a8c73285ea8a ">
* completions are not jumping in sized anymore, with all elements
aligned to occupy max elements' width and height
<img width="1459" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/483e3534-b00a-423c-a848-3c4ca1199510 ">
Release Notes:
- Improved completion and action label layouts
2024-01-23 22:49:21 +02:00
Kirill Bulatov
bf35b78380
Allow both action and completion lists to occupy max width and height of its element
2024-01-23 22:42:06 +02:00
Kirill Bulatov
513ddf1861
Change background for the max width of the completion/action elements
2024-01-23 22:12:29 +02:00
Kirill Bulatov
cad6bab48e
Fix sharing project notification size
2024-01-23 21:44:18 +02:00
Kirill Bulatov
4c039d0f02
Fix code actions being too small
2024-01-23 21:39:22 +02:00
Kirill Bulatov and Piotr
74bdb48359
Make completions menu to occupy more space
...
* make completion elements as wide as the longest element
* make completion docs scrollable
co-authored-by: Piotr <piotr@zed.dev >
2024-01-23 21:26:40 +02:00
Kirill Bulatov
4cccb4e3d0
Fix LSP shenanigans when opening and/or editing settings files ( #4212 )
...
Fixes
* LSP servers never being shut down on worktree release
* worktrees (and LSP servers) being re-created for settings files on
every opening
Also,
* removes `async` from `workspace_configuration` to simplify the code:
we only return static configurations now
Release Notes:
- Fixed excessive LSP server creation for Zed settings files
2024-01-23 13:20:00 +02:00
Kirill Bulatov and Piotr
5e0cabc394
Create a special worktree for settings files
...
To avoid LSP server restarts/leaks when those are being opened
co-authored-by: Piotr <piotr@zed.dev >
2024-01-23 13:10:30 +02:00
Kirill Bulatov
ab8585ee7e
Remove the async modifier from the workspace_configuration method
2024-01-23 11:58:17 +02:00
Kirill Bulatov
351914f4bd
Clean up LSP servers on worktree release
2024-01-23 11:34:51 +02:00
Kirill Bulatov
92c4c84730
Fix the fonts panic and completions in the settings ( #4205 )
...
* Do not add fonts' `font_family` into the font completion list, if
there's no corresponding attribute in the font data
* Remove `font_style_name` and `font_name` attribute from the completion
options, since those bring `-Italic`, `-Bold` variants that are not
family names (which we use to load the fonts, so they are useless)
Release Notes:
- Improved font family names completion in the settings
2024-01-23 00:29:36 +02:00
Kirill Bulatov and Piotr
a75fa35a08
Fix the fonts panic
...
co-authored-by: Piotr <piotr@zed.dev >
2024-01-23 00:23:48 +02:00
Kirill Bulatov
5b906e731d
Fix lightning bolt hover and git gutter mark overlapping ( #4195 )
...
Bumps `gutter_padding_factor` from 3.5 to 4.0 due git mark on the gutter
becoming much thicker than in Zed1:
Current:

Fixed:

Stable (no hover background appearing):

Release Notes:
- Fixed gutter marks overlapping with hover highlights
2024-01-22 16:12:34 +02:00
Kirill Bulatov
7aa3d9d1fb
Fix lightning bolt hover and git gutter mark overlapping
2024-01-22 16:01:32 +02:00
Kirill Bulatov
ad177a5e6c
Show channel rename keybinding in the context menu ( #4155 )
...
Deals with `Can't rename channels from keyboard` #product note.
We actually already have the action binding to rename the context menu
entries, but had no label entry to show that.
Release Notes:
- Added a channel rename keymap label on the collab panel context menu
2024-01-19 11:40:11 +02:00
Kirill Bulatov
070de14a6b
Show channel rename keybinding in the context menu
2024-01-19 11:23:05 +02:00
Kirill Bulatov
bf8e57098d
Avoid gutter resizes on line number increase/decrease
...
Reserves 4 characters for the line number in the gutter to avoid editor bounds jumping when editing small files like commit messages.
2024-01-18 23:11:05 +02:00
Kirill Bulatov
36ed5a31df
Wrap over picker's matches when reaching the end of the list
2024-01-18 16:54:35 +02:00
Kirill Bulatov
82b48a6a7a
Use a proper action when clicking navigate forward button ( #4115 )
...
Deals with https://github.com/zed-industries/community/issues/2428
Release Notes:
- Fixed navigate forward button on click navigating backwards instead
2024-01-18 11:43:03 +02:00
Kirill Bulatov
b6786d5e41
Use a proper action when clicking navigate forward button
2024-01-18 11:37:02 +02:00
Kirill Bulatov
29c81e08bb
Fix buffer search focus not working ( #4113 )
...
Follow-up of https://github.com/zed-industries/zed/pull/4100
When the Deploy action is called in the buffer with the buffer search
bar already deployed, the focus should be on the search bar.
Release Notes:
- N/A
2024-01-18 10:55:28 +02:00
Kirill Bulatov
aacb17ef38
Fix buffer search focus not working
...
When the Deploy action is called in the buffer with the buffer search bar already deployed, the focus should be on the search bar.
2024-01-18 10:51:28 +02:00
Kirill Bulatov
1e6757755e
Ignore buffer search events if it's not for the current buffer
2024-01-17 22:18:54 +02:00
Kirill Bulatov
65be909378
Implement similar workspace registration flow for project search actions
2024-01-17 22:08:40 +02:00
Kirill Bulatov and Piotr
0be2f7f328
Properly register buffer_search'es actions handlers
...
Now those handlers do not intercept events/actions when the buffer search bar is dismissed.
co-authored-by: Piotr <piotr@zed.dev >
2024-01-17 22:08:40 +02:00
Kirill Bulatov and Piotr
306e4693fa
Start adding project search listeners to workspace
...
co-authored-by: Piotr <piotr@zed.dev >
To be able to trigger them from search multibuffer excerpts.
2024-01-17 22:08:40 +02:00
Kirill Bulatov
a601e96b6c
Style collab notifications properly
2024-01-17 16:44:43 +02:00
Kirill Bulatov
3789e7ebcc
Stop using button for collab notifications ( #4085 )
...
Attempts to fix
<img width="472" alt="Screenshot 2024-01-16 at 19 41 56"
src="https://github.com/zed-industries/zed/assets/2690773/5a8d0691-eabb-4e92-9186-362ca8ef9ca6 ">
by switching from buttons to labels (so that they can wrap) and adding a
background to them, so they are more visible
<img width="446" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/bb228aae-0abc-45b4-a0f5-a928a2e64390 ">
<img width="485" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/b7fa3598-59b8-4a74-97e6-790695e37047 ">
Release Notes:
- N/A
2024-01-17 11:17:37 +02:00
Kirill Bulatov
39dff0e827
Stop using button for collab notifications
2024-01-17 11:06:46 +02:00
Kirill Bulatov
ed78f705eb
Fix previous theme not being applied on startup ( #4068 )
...
Fixes `[2024-01-16T09:21:54Z ERROR util]
crates/theme/src/settings.rs:172: theme not found: One Light` error from
the log after
https://github.com/zed-industries/zed/commit/d84785f7e8519b30e474385e5a72f5726cf4783e
Release Notes:
- N/A
2024-01-16 11:45:06 +02:00
Kirill Bulatov
074966427d
Fix previous theme not being applied on startup
2024-01-16 11:23:34 +02:00
Kirill Bulatov
ec3cfc33d6
Adds a way to select items under multiple carets ( #4067 )
...
Deals with https://github.com/zed-industries/community/issues/2374
Release Notes:
- Added a way to select items under multiple carets with
`editor::SelectNext` and `editor::SelectPrevious` commands
2024-01-16 11:08:48 +02:00
Kirill Bulatov
25abe8f981
Fix the tests
2024-01-16 10:58:27 +02:00
Kirill Bulatov
fbb363e83a
Add tests
2024-01-16 10:07:31 +02:00
Kirill Bulatov
55671eac40
Select next/previous word for multiple carets if possible
2024-01-15 23:42:36 +02:00
Kirill Bulatov
e2f08a6cca
Add LSP logs into the end of the editor, not after its caret ( #4060 )
...
Also prevent tabs from being added in readonly editors
Release Notes:
- Fixed LSP logs being inserted into the editor incorrectly
- Fixed `editor::Tab` action inserting tabs in read-only files
2024-01-15 22:22:54 +02:00
Kirill Bulatov
92add99260
Add LSP logs into the end of the editor, not after its caret
...
Also prevent tabs from being added in readonly editors
2024-01-15 22:12:52 +02:00
Kirill Bulatov
f061015609
Do not run squawk tests outside of PR builds ( #4049 )
...
Release Notes:
- N/A
2024-01-15 16:24:15 +02:00
Kirill Bulatov
346103dfb4
Do not run squawk tests outside of PR builds
2024-01-15 16:20:53 +02:00
Kirill Bulatov
fc294ce0b1
Disable copilot for feedback and lsp log editors ( #4048 )
...
LSP log editor caused recursive flood of messages, and feedback editor
is better with people writing their own feedback.
Release Notes:
- Fixed hanging due to excessive logs when browsing Copilot LSP logs
2024-01-15 15:59:27 +02:00
Kirill Bulatov
253c8dbe8e
Disable copilot for feedback and lsp log editors
...
LSP log editor caused recursive flood of messages, and feedback editor is better with people writing their own feedback.
2024-01-15 15:49:23 +02:00
Kirill Bulatov
1c1d501c97
Use auto formatter settings for Zed repo ( #4033 )
...
Some users might have a language server formatter set in their settings,
which is exclusive with prettier formatting. That causes disruptions in
the way whitespaces and other things are formatted, esp. in json and
yaml files, hence enforce one formatter settings for the entire Zed
repo.
Release Notes:
- N/A
2024-01-12 12:07:41 +02:00
Kirill Bulatov
a81f48f36b
Use auto formatter settings for Zed repo.
...
Some users might have a language server formatter set in their settings, which is exclusive with prettier formatting.
That causes disruptions in the way whitespaces and other things are formatted, esp. in json and yaml files, hence enforce one formatter settings for the entire Zed repo.
2024-01-12 12:00:18 +02:00
Kirill Bulatov
35db07fff1
Show abs path matches in file finder ( #4018 )
...
Deals with https://github.com/zed-industries/community/issues/2158
Release Notes:
- Make File finder to show matching file for the abs path queries
2024-01-11 17:57:31 +02:00
Kirill Bulatov
8b3f25648a
Fix invisible symbol colors in the editor, use zed1 one ( #4017 )
...
Release Notes:
- Improved the contrast between invisibles colors and the rest of the
text in the editor
2024-01-11 17:53:23 +02:00
Kirill Bulatov
dd6e2df2a1
Show abs path matches in file finder
2024-01-11 17:49:46 +02:00
Kirill Bulatov and Marshall Bowers
ba83623c84
Fix whitespace symbol colors in the editor, use zed1 one
...
co-authored-by: Marshall Bowers <marshall@zed.dev >
2024-01-11 17:43:49 +02:00
Kirill Bulatov
b342c92495
Restore hover action in the editor ( #4016 )
...
Deals with https://github.com/zed-industries/community/issues/2304
Deals with https://github.com/zed-industries/community/issues/2394
Release Notes:
- Fixed `editor::Hover` action (and `g h` command in Vim mode) not
working
2024-01-11 16:28:10 +02:00
Kirill Bulatov
9bb50a5ded
Restore hover action in the editor
2024-01-11 16:19:44 +02:00
Kirill Bulatov
4fe0c473ca
Do not split on only external directories being drag and dropped ( #4015 )
...
Release Notes:
- Fixed drag and dropped folders opening an empty split pane
2024-01-11 15:23:53 +02:00
Kirill Bulatov
2e36b0b72a
Do not split on only external directories being drag and dropped
2024-01-11 15:09:43 +02:00
Kirill Bulatov
348bc842ef
Enforce no dbg! and todo! in Rust code via clippy lints in the CI job ( #4005 )
...
Release Notes:
- N/A
2024-01-11 14:25:31 +02:00
Kirill Bulatov and Piotr
41bc49af36
Remove redundant install Rust steps
...
Those were not installing Rust but configuring it via rustup, and
those configurations were done on `stable` toolchain which is not what we use (see rust-toolchain.toml)
co-authored-by: Piotr <piotr@zed.dev >
2024-01-11 14:11:13 +02:00
Kirill Bulatov and Piotr
a5dd2535f1
Properly require clippy installation, try to shuffle clippy arguments
...
co-authored-by: Piotr <piotr@zed.dev >
2024-01-11 13:56:28 +02:00
Kirill Bulatov
3c1ed152ee
Remove active call data when it was accepted ( #4007 )
...
That hopefully helps with call notifications sometimes not being closed
Release Notes:
- N/A
2024-01-11 00:40:32 +02:00
Kirill Bulatov and Max
2e9c9adfbe
Remove active call data when it was accepted
...
That hopefully helps with call notifications sometimes not being closed
co-authored-by: Max <max@zed.dev >
2024-01-11 00:35:00 +02:00
Kirill Bulatov
e0dd5a5820
Debugging
2024-01-11 00:33:53 +02:00
Kirill Bulatov
7b3e7ee3cc
Enfoce no dbg! and todo! in Rust code via clippy lints in the CI job
2024-01-11 00:26:46 +02:00
Kirill Bulatov
1d000f1dcc
Fix uniform_list scrolling logic ( #3996 )
...
Release Notes:
- Fixed theme selector not showing currently selected theme on open
2024-01-10 13:58:08 +02:00
Kirill Bulatov
c197ea49ca
Simplify uniform list scrolling logic
2024-01-10 13:45:50 +02:00
Kirill Bulatov and Antonio Scandurra
f57ff1c660
Make the scroll position updated as soon as possible to the correct deferred value
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2024-01-10 12:16:06 +02:00
Kirill Bulatov
927e0db750
An attempt to defer scrolls during empty initial state
2024-01-10 11:26:23 +02:00
Kirill Bulatov
bbccf48dd2
Disable synthetic drag for drag and drop ( #3995 )
...
New drag and drop is capable of emitting fake mouse events already, no
need to fake it more.
Release Notes:
- Fixed excessive pane regions flicker on certain drag and drop state
2024-01-10 11:25:56 +02:00
Kirill Bulatov
6809b92e34
Disable synthetic drag on drag and drop
...
Otherwise, conflicting MouseMove events are generated and page regions start to flicker.
2024-01-10 11:18:45 +02:00
Kirill Bulatov
18e537abdf
Do not dismiss buffer search when any modal is present ( #3988 )
...
Release Notes:
- Fixed buffer search being dismissed not after the modals are
2024-01-09 23:36:32 +02:00
Kirill Bulatov and Piotr Osiewicz
8b71b1d07b
Do not dismiss buffer search when any modal is present
...
Co-authored-by: Piotr Osiewicz <piotr@zed.dev >
2024-01-09 23:29:05 +02:00
Kirill Bulatov
a0f9393c1f
Remove some todo!'s from the code ( #3972 )
...
Release Notes:
- N/A
2024-01-09 11:45:09 +02:00
Kirill Bulatov
625c9d8980
Remove some todo!'s
2024-01-09 11:36:36 +02:00
Kirill Bulatov
aa1d2d2f24
Remove dbg! usage from tests
2024-01-09 10:08:27 +02:00
Kirill Bulatov
a2a0628bfc
Show context menu on project panel empty space right click ( #3954 )
...
Deals with https://github.com/zed-industries/community/issues/2383
Release Notes:
- Fixed context menu not shown when right clicking empty project panel
space
2024-01-08 22:16:18 +02:00
Kirill Bulatov
35ce34c676
Show context menu on project panel empty space right click
2024-01-08 22:12:40 +02:00
Kirill Bulatov
7235b3d29f
Clean up outline selections when its modal gets closed ( #3953 )
...
Release Notes:
- Fixed outline selections not being cleared on certain modal dismiss
actions
2024-01-08 22:02:22 +02:00
Kirill Bulatov
2ca17bd03e
Clean up outline selections when its modal gets closed
2024-01-08 21:52:03 +02:00
Kirill Bulatov
eb9ddef083
Always show full command on terminal tab hover ( #3934 )
...
Deals with https://github.com/zed-industries/community/issues/1856
Release Notes:
- Fixed terminal tab tooltip being truncated
2024-01-07 13:52:56 +02:00
Kirill Bulatov
d566a0df5a
Always show full command on terminal tab hover
2024-01-07 13:46:44 +02:00
Kirill Bulatov
419b4d029c
External file drag and drop ( #3933 )
...
Deals with https://github.com/zed-industries/community/issues/1317
Deals with https://github.com/zed-industries/community/issues/486
Reworks pane drag and drop code to support
* dropping external files into main pane (supports splits same as tabs
and project entries drop) — this will open the file dropped
* dropping external files, tabs and project entries drop into the
terminal — this will add file abs path into the terminal
Release Notes:
- Added a way to drag and drop external files into Zed main & terminal
panes; support tabs and project entries drop into terminal pane
2024-01-07 13:37:49 +02:00
Kirill Bulatov
df937eaeeb
Use fs to determine if file path is a dir
2024-01-07 13:32:09 +02:00
Kirill Bulatov
4f88a50aad
On external file drop, add visible project entries for directories only
2024-01-07 03:11:28 +02:00
Kirill Bulatov
c499e1ed38
Fix panic during terminal tab drag and drop
2024-01-07 02:32:15 +02:00
Kirill Bulatov
518868a12f
Implement terminal pane drag and drop overrides
2024-01-07 02:21:43 +02:00
Kirill Bulatov
c4e306162c
Implement external file drop in pane
2024-01-07 01:18:02 +02:00
Kirill Bulatov
8ff05c6a72
Prepare for external file drop in pane
2024-01-07 01:17:49 +02:00
Kirill Bulatov
ec035724d5
Properly detect file finder label positions in paths ( #3931 )
...
Deals with https://github.com/zed-industries/community/issues/2367
Release Notes:
- Fixed file finder crashing on certain paths with multi-codepoint
characters
([#2367 ](https://github.com/zed-industries/community/issues/2367 ))
2024-01-06 23:59:34 +02:00
Kirill Bulatov
5dca1b5943
Properly detect file finder label positions in paths
2024-01-06 23:50:59 +02:00
Kirill Bulatov
db4a0b14c0
Fix low handing styling fruits on the collab panel ( #3928 )
...
Release Notes:
- N/A
2024-01-06 13:04:54 +02:00
Kirill Bulatov
d86ccb1afc
Reduce the height of the collaborators' color ribbon
2024-01-06 12:54:54 +02:00
Kirill Bulatov
ae14f7bd92
Add space between menus and player stack
2024-01-06 12:07:48 +02:00
Kirill Bulatov
ee336cb87f
Add spaces between leave call and call status icons, and call status icons and user menu
2024-01-06 11:56:01 +02:00
Kirill Bulatov
b8134518d8
Fix base keymap selector keyboard shortcuts ( #3927 )
...
Release Notes:
- Fixed base keymap selector keyboard shortcuts
2024-01-06 11:53:08 +02:00
Kirill Bulatov
0d7f3ef278
Fix base keymap selector keyboard shortcuts
2024-01-06 11:39:27 +02:00
Kirill Bulatov
621c98b886
Restore collab button tooltips, make screenshare item background of editor background's color ( #3924 )
...
Release Notes:
- Restored collab button tooltips, made screenshare item background of
editor background's color
2024-01-06 02:07:27 +02:00
Kirill Bulatov
669293e749
Screenshare item background is now of editor background's color
2024-01-06 02:01:12 +02:00
Kirill Bulatov
e549ef0ee9
Restore tooltipts for all collab buttons
2024-01-06 01:50:59 +02:00
Kirill Bulatov
94d0fe9ff0
Fix current lsp logs menu item not shown as selected ( #3916 )
...
Release Notes:
- Fixed current LSP logs menu item not shown as selected
2024-01-05 19:29:12 +02:00
Kirill Bulatov
12b5dbff68
Fix current lsp logs menu item not shown as selected
2024-01-05 19:23:15 +02:00
Kirill Bulatov
5935979a96
Set a minimum size for the search input field ( #3912 )
...
Release Notes:
- Show search input field wider for narrow panes
2024-01-05 18:46:48 +02:00
Kirill Bulatov
6cc48b97dd
Set a minimum size for the search input field
2024-01-05 18:41:40 +02:00