Mikayla Maki
32feeb8598
Improve slash commands ( #16195 )
...
This PR:
- Makes slash commands easier to compose by adding a concept,
`CompletionIntent`. When using `tab` on a completion in the assistant
panel, that completion item will be expanded but the associated command
will not be run. Using `enter` will still either run the completion item
or continue command composition as before.
- Fixes a bug where running `/diagnostics` on a project with no
diagnostics will delete the entire command, rather than rendering an
empty header.
- Improves the autocomplete rendering for files, showing when
directories are selected and re-arranging the results to have the file
name or trailing directory show first.
<img width="642" alt="Screenshot 2024-08-13 at 8 12 43 PM"
src="https://github.com/user-attachments/assets/97c96cd2-741f-4f15-ad03-7cf78129a71c ">
Release Notes:
- N/A
2024-08-13 23:06:07 -07:00
Piotr Osiewicz
84de9e8e47
chore: Bump Rust version to 1.80 ( #15186 )
...
Release Notes:
- N/A
2024-07-25 22:48:42 +02:00
Kirill Bulatov
c6b3ff9258
Introduce an outline panel ( #12637 )
...
Adds a new panel: `OutlinePanel` which looks very close to project
panel:
<img width="256" alt="Screenshot 2024-06-10 at 23 19 05"
src="https://github.com/zed-industries/zed/assets/2690773/c66e6e78-44ec-4de8-8d60-43238bb09ae9 ">
has similar settings and keymap (actions work in the `OutlinePanel`
context and are under `outline_panel::` namespace), with two notable
differences:
* no "edit" actions such as cut/copy/paste/delete/etc.
* directory auto folding is enabled by default
Empty view:
<img width="841" alt="Screenshot 2024-06-10 at 23 19 11"
src="https://github.com/zed-industries/zed/assets/2690773/dc8bf37c-5a70-4fd5-9b57-76271eb7a40c ">
When editor gets active, the panel displays all related files in a tree
(similar to what the project panel does) and all related excerpts'
outlines under each file.
Same as in the project panel, directories can be expanded or collapsed,
unfolded or folded; clicking file entries or outlines scrolls the buffer
to the corresponding excerpt; changing editor's selection reveals the
corresponding outline in the panel.
The panel is applicable to any singleton buffer:
<img width="1215" alt="Screenshot 2024-06-10 at 23 19 35"
src="https://github.com/zed-industries/zed/assets/2690773/a087631f-5c2d-4d4d-ae25-30ab9731d528 ">
<img width="1728" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/e4f8082c-d12d-4473-8500-e8fd1051285b ">
or any multi buffer:
(search multi buffer)
<img width="1728" alt="Screenshot 2024-06-10 at 23 19 41"
src="https://github.com/zed-industries/zed/assets/2690773/60f768a3-6716-4520-9b13-42da8fd15f50 ">
(diagnostics multi buffer)
<img width="1728" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/64e285bd-9530-4bf2-8f1f-10ee5596067c ">
Release Notes:
- Added an outline panel to show a "map" of the active editor
2024-06-12 23:22:52 +03:00
Marshall Bowers
ceab9f0906
Fix Clippy warnings in fuzzy crate ( #8701 )
...
This PR fixes a number of Clippy warnings in the `fuzzy` crate.
Release Notes:
- N/A
2024-03-02 01:02:34 -05:00
Thorsten Ball and bennetbo
a556a9d3d5
Fix panic in fuzzy-finder for unicode characters ( #7080 )
...
This fixes a panic in the fuzzy finder which someone ran into when
typing in a query that contained the lower-case version of a unicode
character that has more chars than its upper-case version.
It also fixes another problem which was that we didn't find a match if
both candidates and query contained upper-case characters whose
lower-case version had more chars.
Release Notes:
- Fixed a panic in fuzzy-finder that could occur when matching with
queries containing upper-case unicode characters whose lower-case
version has more chars.
Co-authored-by: bennetbo <bennetbo@gmx.de >
2024-01-30 16:10:35 +01:00
Max Brunsfeld and Mikayla
8e704c8a47
Remove 2 suffix for lsp, language, fuzzy
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 11:58:02 -08:00
Kirill Bulatov
762ef32154
Ignore history items' paths when matching search queries
2023-10-09 23:14:32 +03:00
Kirill Bulatov
d5d3830152
Preserve matching history items and their order
2023-09-28 06:55:49 -07:00
Kay Simmons
b2898f866e
remove commented line
2023-02-27 12:06:10 -08:00
Kay Simmons
a383cfbfcb
fix infinite loop in path distance for fuzzy finder
2023-02-27 11:57:21 -08:00
Kay Simmons
25a567c13a
fixup poor utility naming
2023-02-25 14:12:25 -08:00
Kay Simmons
0c2b3468b3
Add test for new sorting behavior
2023-02-25 14:06:54 -08:00
Kay Simmons
63469e3726
Sort file finder matches by distance to the active item after match score
2023-02-24 18:13:26 -08:00
Kay Simmons
9e5b4dce01
Add recent project picker
2022-12-14 15:59:50 -08:00
ForLoveOfCats and Mikayla
fbea44bc5c
One big cleanup pass of clippy lints
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2022-08-10 16:51:01 -07:00
Antonio Scandurra
dcd12f677b
Show symbols located in visible paths before ones located externally
2022-07-26 14:48:18 +02:00
Nathan Sobo and Max Brunsfeld
52cce93287
Show requests in contacts panel
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-05-09 12:48:07 -06:00
Max Brunsfeld
5cdf498001
In random collaboration test, add failing assertion for worktree convergence
2022-02-15 14:55:38 -08:00
Antonio Scandurra and Nathan Sobo
e150081fa1
Filter and sort suggestions in autocomplete
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-02-01 15:11:20 +01:00
Antonio Scandurra and Nathan Sobo
1fcf6968bc
Use StringMatchCandidate::new to construct candidates more conveniently
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-31 19:11:13 +01:00
Antonio Scandurra and Nathan Sobo
b7dccb6e5b
Associate StringMatchCandidate with an id
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-14 14:55:03 +01:00
Antonio Scandurra
e64d9c43ff
Report all matching strings in fuzzy matcher even if they're duplicates
2022-01-14 09:16:39 +01:00
Antonio Scandurra
0cb982077e
Report the candidate's index when matching strings
2022-01-13 15:09:27 +01:00
Antonio Scandurra
49f27bd2a6
Use only lowercase characters to determine if query matches a candidate
2022-01-13 15:07:48 +01:00
Nathan Sobo and Max Brunsfeld
93322a4858
Name the root file of every crate after the crate to ease navigation
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-30 12:46:39 -07:00
Max Brunsfeld and Nathan Sobo
95010ee295
Rename worktree crate to project, pull in Project
...
Also, move the high-level fuzzy mathcing functions in
zed::fuzzy into the fuzzy crate so that project can
use them.
This required defining a 'PathMatchCandidateSet' trait
to avoid a circular dependency from fuzzy to worktree.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-04 16:45:05 -07:00
Nathan Sobo and Max Brunsfeld
a1b11e8907
Move all crates to a top-level crates folder
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:22:21 -06:00