Bennet Bo Fenner
b5c41eeb98
Future-proof indent guides settings for panels ( #19878 )
...
This PR ensures that we do not have to break the indent guides settings
for the project/outline panel. In the future we might want to have a
more granular way to control when to show indent guides, or control
other indent guide properties, like its width.
Release Notes:
- N/A
2024-10-29 09:52:36 +01:00
Mikayla Maki
80f89059aa
Fix mouse clicks on remote-open-folder UI ( #19851 )
...
Also change Zed's standard style to use
`.track_focus(&self.focus_handle(cx))`, instead of
`.track_focus(&self.focus_handle)`, to catch these kinds of errors more
easily in the future.
Release Notes:
- N/A
---------
Co-authored-by: Conrad <conrad@zed.dev>
2024-10-28 12:55:55 -07:00
Kirill Bulatov
2e32f1c8a1
Restore horizontal scrollbar checks ( #19767 )
...
CI / Check Postgres and Protobuf migrations, mergability (push) Waiting to run
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Linux) Build Remote Server (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Closes https://github.com/zed-industries/zed/issues/19637
Follow-up of https://github.com/zed-industries/zed/pull/18927 , restores
the condition that removed the horizontal scrollbar when panel's items
are not long enough.
Release Notes:
- Fixed horizontal scrollbar not being hidden
([#19637 ](https://github.com/zed-industries/zed/issues/19637 ))
2024-10-26 21:57:22 +03:00
Piotr Osiewicz
5769065f27
project panel: Persist full filename when renaming auto-folded entries ( #19728 )
...
This fixes a debug-only panic when processing filenames. The underflow
that happens in Preview/Stable shouldn't cause any issues (other than
maybe unmarking an entry in the project panel).
/cc @notpeter
Closes #ISSUE
Release Notes:
- N/A
2024-10-25 13:47:01 +02:00
Piotr Osiewicz
3617873431
project panel: Fix interactions with auto-folded directories ( #19723 )
...
Closes https://github.com/zed-industries/zed/issues/19566
Release Notes:
- N/A
---------
Co-authored-by: Peter Tripp <peter@zed.dev>
2024-10-25 12:13:21 +02:00
Mikayla Maki
02718284ef
Remove dev servers ( #19638 )
...
TODO:
- [ ] Check that workspace migration worked
- [ ] Add server migrations and make sure SeaORM files are in sync
(maybe?)
Release Notes:
- N/A
---------
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2024-10-24 12:14:03 -06:00
Bennet Bo Fenner
4214ed927f
project panel: Add indent guides ( #18260 )
...
See #12673
https://github.com/user-attachments/assets/94079afc-a851-4206-9c9b-4fad3542334e
TODO:
- [x] Make active indent guides work for autofolded directories
- [x] Figure out which theme colors to use
- [x] Fix horizontal scrolling
- [x] Make indent guides easier to click
- [x] Fix selected background flashing when hovering over entry/indent
guide
- [x] Docs
Release Notes:
- Added indent guides to the project panel
2024-10-24 13:07:20 +02:00
Zhang
e040b200bc
project_panel: Make up/down in file rename editor not select items ( #19670 )
...
Closes #19017
Release Notes:
- Fixed project panel bug when renaming files where up/down keys could
select other files.
2024-10-24 12:15:42 +02:00
Mikayla Maki
d0bc84eb33
Fix remoting things ( #19587 )
...
- Fixes modal closing when using the remote modal folder
- Fixes a bug with local terminals where they could open in / instead of
~
- Fixes a bug where SSH connections would continue running after their
window is closed
- Hides SSH Terminal process details from Zed UI
- Implement `cmd-o` for remote projects
- Implement LanguageServerPromptRequest for remote LSPs
Release Notes:
- N/A
2024-10-23 00:14:43 -07:00
Kirill Bulatov
7a6550c1d1
Do not allow drag and drop of FS entries into the remote projects ( #19565 )
...
Release Notes:
- N/A
2024-10-22 22:34:54 +03:00
Kirill Bulatov
1ae30f5813
Show project panel symlink icons for remote clients ( #19464 )
CI / Check Postgres and Protobuf migrations, mergability (push) Waiting to run
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Linux) Build Remote Server (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
2024-10-19 19:44:47 +03:00
CharlesChen0823
f5124c21d1
scrollbar: Fix horizontal scrollbar display overflow last item ( #19403 )
...
currently, the laste item display is overflow by scrollbar, cause it
cannot clickable.
So remain one item height for display horizontal scrollbar,.
![Screenshot 2024-10-18
192352](https://github.com/user-attachments/assets/d686f0e8-93f8-426e-8816-6f00ed17a599 )
Release Notes:
- N/A
2024-10-18 14:07:50 +02:00
Piotr Osiewicz
109ebc5f27
ui: Add Scrollbar component ( #18927 )
...
Closes #ISSUE
Release Notes:
- N/A
2024-10-16 13:57:28 +02:00
Mikayla Maki
f944ebc4cb
Add settings to remote servers, use XDG paths on remote, and enable node LSPs ( #19176 )
...
Supersedes https://github.com/zed-industries/zed/pull/19166
TODO:
- [x] Update basic zed paths
- [x] update create_state_directory
- [x] Use this with `NodeRuntime`
- [x] Add server settings
- [x] Add an 'open server settings command'
- [x] Make sure it all works
Release Notes:
- Updated the actions `zed::OpenLocalSettings` and `zed::OpenLocalTasks`
to `zed::OpenProjectSettings` and `zed::OpenProjectTasks`.
---------
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Richard <richard@zed.dev>
2024-10-15 23:32:44 -07:00
Kirill Bulatov
79ed217e42
Properly compute depth and path for project panel entries ( #19068 )
...
Closes https://github.com/zed-industries/zed/issues/18939
This fixes incorrect width estimates and horizontal scrollbar glitches
Release Notes:
- Fixes horizontal scrollbar not scrolling enough for certain paths
([#18939 ](https://github.com/zed-industries/zed/issues/18939 ))
Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
2024-10-11 15:38:12 +03:00
Thorsten Ball
b75532fad7
ssh remote: Handle disconnect on project and show overlay ( #19014 )
...
Demo:
https://github.com/user-attachments/assets/e5edf8f3-8c15-482e-a792-6eb619f83de4
Release Notes:
- N/A
---------
Co-authored-by: Bennet <bennet@zed.dev>
2024-10-10 12:59:09 +02:00
Piotr Osiewicz
f6f5ad138d
project panel: Make intermediate folded directories clickable ( #18956 )
...
- Closes: https://github.com/zed-industries/zed/issues/18770
Release Notes:
- Intermediate auto-folded project panel entries are now clickable.
2024-10-10 11:15:46 +02:00
Kirill Bulatov
051627c449
Project panel horizontal scrollbar ( #18513 )
...
<img width="389" alt="image"
src="https://github.com/user-attachments/assets/c6718c6e-0fe1-40ed-b3db-7d576c4d98c8 ">
https://github.com/user-attachments/assets/734f1f52-70d9-4308-b1fc-36c7cfd4dd76
Closes https://github.com/zed-industries/zed/issues/7001
Closes https://github.com/zed-industries/zed/issues/4427
Part of https://github.com/zed-industries/zed/issues/15324
Part of https://github.com/zed-industries/zed/issues/14551
* Adjusts a `UniformList` to have a horizontal sizing behavior: the old
mode forced all items to have the size of the list exactly.
A new mode (with corresponding `ListItems` having `overflow_x` enabled)
lays out the uniform list elements with width of its widest element,
setting the same width to the list itself too.
* Using the new behavior, adds a new scrollbar into the project panel
and enhances its file name editor to scroll it during editing of long
file names
* Also restyles the scrollbar a bit, making it narrower and removing its
background
* Changes the project_panel.scrollbar.show settings to accept `null` and
be `null` by default, to inherit `editor`'s scrollbar settings. All
editor scrollbar settings are supported now.
Release Notes:
- Added a horizontal scrollbar to project panel
([#7001 ](https://github.com/zed-industries/zed/issues/7001 ))
([#4427 ](https://github.com/zed-industries/zed/issues/4427 ))
---------
Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
2024-10-01 18:32:16 +03:00
Conrad Irwin
d33600525e
ssh remoting: Fix cmd-o ( #18308 )
...
Release Notes:
- ssh-remoting: Cmd-O now correctly opens files on the remote host
---------
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-09-24 16:23:08 -06:00
Conrad Irwin
5045f984a9
Tidy up some broken menu items ( #18306 )
...
Release Notes:
- ssh-remoting: Don't show "reveal in finder" in menu
2024-09-24 14:37:09 -07:00
Danilo Leal
96a5daaf3f
Refine symbolic link project tooltip ( #17869 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
This PR uses the tooltip with meta to display the info that a project
panel item is actually a symbolic link.
| Before | After |
|--------|--------|
| <img width="826" alt="Screenshot 2024-09-16 at 11 20 15 AM"
src="https://github.com/user-attachments/assets/7823f1f2-ed92-4b9a-b95e-c0777cb32387 ">
| <img width="638" alt="Screenshot 2024-09-16 at 11 19 12 AM"
src="https://github.com/user-attachments/assets/5d441ba5-6741-482c-bf2a-ec7e172953df ">
|
Release Notes:
- N/A
2024-09-16 08:12:24 -03:00
Richard Feldman
91ffa02e2c
/auto ( #16696 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Add `/auto` behind a feature flag that's disabled for now, even for
staff.
We've decided on a different design for context inference, but there are
parts of /auto that will be useful for that, so we want them in the code
base even if they're unused for now.
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-13 13:17:49 -04:00
Conrad Irwin
4d26f83d23
Revert "settings: Remove auxiliary Content types where possible ( #16744 )" ( #17768 )
...
This breaks setting `{"scrollbar": {"show":"never"}}`
Release Notes:
- N/A
2024-09-12 14:46:08 -04:00
Piotr Osiewicz
ccf6f27b8f
settings: Remove auxiliary Content types where possible ( #16744 )
...
Release Notes:
- N/A
2024-09-10 22:59:10 -04:00
KorigamiK
ae3880e71a
Add ability to open files with system default application ( #17231 )
2024-09-10 14:36:36 -04:00
Piotr Osiewicz
929eff815c
project panel: Get rid of unwrap in autofolding code ( #17641 )
...
@WeetHet spotted a crash in recently-introduced project panel
autofolding that relates to unwrapping.
Release Notes:
- N/A
2024-09-10 08:50:23 -04:00
Piotr Osiewicz
56bc3c36ad
project search: make sorting comparator comply with Ord preconditions ( #17604 )
...
Closes #17493
/cc @SomeoneToIgnore /cc @ConradIrwin
Release Notes:
- N/A
2024-09-10 06:55:46 -04:00
Piotr Osiewicz
dd257b8412
project panel: Do not allow collapsing auto-folded directory past the list of ancestors ( #17594 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Closes #ISSUE
Release Notes:
- N/A
2024-09-09 09:14:07 -04:00
Piotr Osiewicz
66ef318823
project panel: select autofolded entries ( #17520 )
...
Closes #17252
Release Notes:
- Intermediate auto-folded project entries can now be selected and acted
upon (removed, renamed, cut, pasted).
2024-09-09 07:22:16 -04:00
Piotr Osiewicz
e6c1c51b37
chore: Fix several style lints ( #17488 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
It's not comprehensive enough to start linting on `style` group, but
hey, it's a start.
Release Notes:
- N/A
2024-09-06 11:58:39 +02:00
Piotr Osiewicz
b6cf576d66
project panel: Always show paste in context menu (and grey it out when it's disabled) ( #17262 )
...
![image](https://github.com/user-attachments/assets/df471567-bdb9-494b-96a5-84d1da47583f )
Release Notes:
- "Paste" is now always shown in project panel context menu.
2024-09-02 13:44:21 +02:00
CharlesChen0823
a5b82b2bf3
project_panel: Add support for copy/paste between different worktrees ( #15396 )
...
Closes https://github.com/zed-industries/zed/issues/5362
Release Notes:
- Added a way to copy/cut-paste between different worktrees ([#5362 ](https://github.com/zed-industries/zed/issues/5362 ))
2024-08-28 11:35:18 +03:00
TheCub3
2f08a0a28c
Fix fifo files hanging the project wide search ( #16039 )
...
Release Notes:
- Fixed the issue related to the project wide search being stuck when
project contains .fifo files
- Might potentially solve the following issue
https://github.com/zed-industries/zed/issues/7360
2024-08-26 10:40:20 -06:00
Conrad Irwin
0fd5030297
Rename is_local to is_local_or_ssh ( #16717 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Release Notes:
- N/A
2024-08-22 21:32:51 -06:00
Kajus
b7a66e4491
project_panel: Allow copying the paths of multiple selected files at once ( #16558 )
...
Closes #16555
Release Notes:
- Improved the "Copy Path" and "Copy Relative Path" actions in the
project panel's context menu when selecting multiple files. All selected
files' paths will now be copied, separated by newlines.
2024-08-22 16:05:01 +02:00
Eli Perkins
a1438a49df
project_panel: Set scrollbar track background from theme ( #16546 )
...
This was previously using the value for the scrollbar border, instead of
the background.
I noticed this while trying out a new Zed theme.
Release Notes:
- Updated project panel scrollbar to respect the
`scrollbar.track.background` from the theme.
| Before | After |
| --- | ---- |
| <img width="281" alt="Screenshot 2024-08-20 at 2 46 23 PM"
src="https://github.com/user-attachments/assets/46d48e75-f472-4060-bcd7-9c2f7d97963d ">
| <img width="280" alt="Screenshot 2024-08-20 at 2 46 37 PM"
src="https://github.com/user-attachments/assets/081038a4-4337-4c9f-9a95-93497003fb56 ">
|
2024-08-20 17:11:07 -04:00
Mikayla Maki
271e774713
Fix a bug where directories were not matching in the fuzzy matcher, when query contains the worktree root name ( #16242 )
...
Release Notes:
- N/A
Co-authored-by: Max <max@zed.dev>
2024-08-14 12:43:00 -07:00
Richard Feldman
b1a581e81b
Copy/paste images into editors (Mac only) ( #15782 )
...
For future reference: WIP branch of copy/pasting a mixture of images and
text: https://github.com/zed-industries/zed/tree/copy-paste-images -
we'll come back to that one after landing this one.
Release Notes:
- You can now paste images into the Assistant Panel to include them as
context. Currently works only on Mac, and with Anthropic models. Future
support is planned for more models, operating systems, and image
clipboard operations.
---------
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Jason <jason@zed.dev>
Co-authored-by: Kyle <kylek@zed.dev>
2024-08-13 13:18:25 -04:00
Marshall Bowers
7b613cb169
Revert "Remove extra empty space for files when file icons are turned off ( #16142 ) ( #16167 )
...
This PR reverts #16142 , as it isn't what we want from a design
standpoint.
Having the file names misaligned from the folder names is not the
desired behavior:
<img width="243" alt="Screenshot 2024-08-13 at 11 16 53 AM"
src="https://github.com/user-attachments/assets/12914e89-2641-4932-96c2-00e89e56d6d7 ">
We can revisit when we have design bandwidth.
This reverts commit ee6a40137f
.
Release Notes:
- Reverted #16142 .
- @JosephTLyons @notpeter for release notes curation
2024-08-13 11:37:29 -04:00
Uladzislau Kaminski
ee6a40137f
Remove extra empty space for files when file icons are turned off ( #16142 )
...
Closes #16073
<img width="269" alt="image" src="https://github.com/user-attachments/assets/88b7ff9f-17ec-4764-b37a-c218d7ad14ec ">
Release Notes:
- Removed extra empty space for files when file icons are turned off ([#16073 ](https://github.com/zed-industries/zed/issues/16073 ))
2024-08-13 12:09:13 +03:00
Danilo Leal
a6f73c10d1
Fix symlink icon in the project panel ( #15537 )
...
Closes https://github.com/zed-industries/zed/issues/15481
---
Release Notes:
- N/A
2024-07-31 18:58:07 -03:00
Suhun Han
f124ca6474
project_panel: Double-click on blank space in project panel to create a new file ( #15353 )
...
Similar feature implemented in VSCode.
https://github.com/user-attachments/assets/ae250b5f-283c-4211-8947-d5d5703eb2d0
Release Notes:
- Added double-click to create a new file when clicking on blank space
in the project panel.
2024-07-29 18:33:13 +03:00
Piotr Osiewicz
c97d035eea
chore: Clean up allocs around project panel ( #15422 )
...
A drive-by I did when looking at something else.
Release Notes:
- N/A
2024-07-29 14:21:41 +02:00
Kirill Bulatov
243fb3562c
Auto fold directories in the project panel by default ( #15273 )
2024-07-26 15:26:20 +03:00
Marshall Bowers
298ca5ff1b
Prefer .map
for conditionals with else
conditions ( #15118 )
...
This PR updates instances where we were using `.when_else` and
`.when_else_some` to use `.map` with a conditional inside.
This allows us to avoid reinventing Rust's syntax for conditionals and
(IMO) makes the code easier to read.
Release Notes:
- N/A
2024-07-24 17:09:07 -04:00
Marshall Bowers
0297a42735
Use US English spelling of "behavior" and "customize" ( #15117 )
...
This PR fixes some instances that weren't using US English spellings of
"behavior" and "customize".
Release Notes:
- N/A
2024-07-24 16:36:01 -04:00
Max Brunsfeld
38e3182bef
Handle buffer diff base updates and file renames properly for SSH projects ( #14989 )
...
Release Notes:
- N/A
---------
Co-authored-by: Conrad <conrad@zed.dev>
2024-07-23 11:32:37 -07:00
Bennet Bo Fenner
d0f52e90e6
assistant: Overhaul provider infrastructure ( #14929 )
...
<img width="624" alt="image"
src="https://github.com/user-attachments/assets/f492b0bd-14c3-49e2-b2ff-dc78e52b0815 ">
- [x] Correctly set custom model token count
- [x] How to count tokens for Gemini models?
- [x] Feature flag zed.dev provider
- [x] Figure out how to configure custom models
- [ ] Update docs
Release Notes:
- Added support for quickly switching between multiple language model
providers in the assistant panel
---------
Co-authored-by: Antonio <antonio@zed.dev>
2024-07-23 19:48:41 +02:00
CharlesChen0823
bac4a0428d
project_panel: Select the newly created file when copy/pasting a file ( #14705 )
...
Closes : #14361
Release Notes:
- Improved project panel to select newly created file on copy/paste ([#14361 ](https://github.com/zed-industries/zed/issues/14361 ))
2024-07-18 17:26:33 +03:00
Conrad Irwin
62ab6e1a11
remoting: Allow Add/Remove remote folder ( #14532 )
...
Release Notes:
- remoting (alpha only): Allow add/remove folders to projects
---------
Co-authored-by: Max <max@zed.dev>
2024-07-16 12:01:59 -06:00