Antonio Scandurra
cd9d8a3ff8
Move settings::test helper into zed::test
2021-10-05 11:00:46 +02:00
Antonio Scandurra
6cdcb4fa79
Move sidebar-specific code out of Workspace
2021-10-05 10:59:20 +02:00
Antonio Scandurra
1af342e569
Use edition = 2018 instead of 2021 for the editor crate
2021-10-05 10:16:13 +02:00
Max Brunsfeld and Nathan Sobo
06a44e9171
Move ChannelList, UserStore into client crate
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-04 17:30:11 -07:00
Max Brunsfeld and Nathan Sobo
95c15b11b1
Rename rpc_client -> client
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-04 17:14:21 -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
Max Brunsfeld and Nathan Sobo
c71950769d
Improve logging when avatar request fails
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-04 15:47:18 -07:00
Max Brunsfeld and Nathan Sobo
bf7b277038
List path dependencies first in all Cargo.toml files
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-04 15:36:52 -07:00
Max Brunsfeld and Nathan Sobo
4e31762075
Move editor into its own crate
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-04 15:23:10 -07:00
Nathan Sobo and Max Brunsfeld
8e0cb6bec3
Rename zrpc to rpc
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:28:00 -06: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
Nathan Sobo and Max Brunsfeld
391460e2fb
Clean commented dependencies
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:15:45 -06:00
Nathan Sobo and Max Brunsfeld
2ebd2723de
Extract worktree, rpc_client, and util crates
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:07:35 -06:00
cc87ba7829
Move LanguageRegistry into buffer
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-10-04 19:59:03 +02:00
Antonio Scandurra
c91d096528
Pull out buffer into its own crate
2021-10-04 16:50:12 +02:00
Antonio Scandurra
50a6fc5648
Extract a clock subcrate for logical clocks
2021-10-04 14:34:02 +02:00
Nathan Sobo
2cc25216ae
💄
2021-10-02 19:46:07 -06:00
Nathan Sobo
5822c4cf40
Introduce ProjectPath and ProjectEntry structs
...
These replace tuples of (usize, Arc<Path>) and (usize, usize) respectively.
2021-10-02 19:39:04 -06:00
Nathan Sobo
8df24cc1fe
Introduce a File trait object to buffer
...
This will remove the dependency of buffer on `worktree::File`
2021-10-02 19:01:29 -06:00
Nathan Sobo and Max Brunsfeld
ab06ed1c55
Remove File::select_language
...
We want to make File a trait object defined in the buffer crate to decouple buffer from worktree, and this method is in the way.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:56:28 -07:00
Nathan Sobo and Max Brunsfeld
b3089e9f5b
Select the language in Editor::save_as instead of Buffer::did_save
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 17:38:08 -06:00
Nathan Sobo and Max Brunsfeld
ea4b9f7f0a
Move Buffer::save_as to Editor
...
This removes buffer's dependency on Worktree, preparing the path for us to pull it into its own crate.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 17:32:22 -06:00
Nathan Sobo and Max Brunsfeld
76bd0d590c
Extract fuzzy module to its own crate
...
We still have a fuzzy module in the zed crate with some app-specific logic.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 17:08:19 -06:00
Nathan Sobo and Max Brunsfeld
f93b0b1035
Fix warnings
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:45:24 -06:00
Nathan Sobo and Max Brunsfeld
565f64b931
Move fuzzy::match_paths to Project::match_paths
...
This prepares the way to extract the rest of fuzzy to its own crate.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:44:08 -06:00
Nathan Sobo and Max Brunsfeld
1e59e9f3a8
Extract sum_tree to its own crate
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 15:55:21 -06:00
Nathan Sobo
755c9b307a
Merge pull request #194 from zed-industries/investigate-compile-time
...
Explore some ways to reduce Zed's compile time
2021-10-01 15:35:51 -06:00
Nathan Sobo and Max Brunsfeld
1e2a34c549
Reduce generic instantiations in read/update_view/model
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 15:23:35 -06:00
Max Brunsfeld and Nathan Sobo
0d09298c6a
Avoid spawn_local instantiations due to different scheduling closure
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-01 12:00:37 -07:00
Max Brunsfeld and Nathan Sobo
d2f5a02a72
Box future outputs before passing them to async_task
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-01 11:13:17 -07:00
Max Brunsfeld and Nathan Sobo
7553ff3051
Box futures before passing them to async_task APIs
...
This reduces the number of copies of each async_task function that get compiled.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-01 10:07:27 -07:00
Max Brunsfeld
a43f1c815b
Remove type parameters from Cursor::seek_internal
...
Instead, use trait objects for the target dimension and aggregation
2021-09-30 17:17:33 -07:00
Max Brunsfeld
3ee228d2e8
Use published prost crates
...
The previous version of prost didn't build on nightly rust.
2021-09-30 15:37:04 -07:00
Max Brunsfeld
9558800bde
Merge pull request #193 from zed-industries/project-browser
...
Add the project panel
2021-09-30 15:35:47 -07:00
Max Brunsfeld
0547b1ce76
Add key bindings to toggle the project panel
...
- Use `cmd-1` to open the project panel and toggle focus between it and the workspace center.
- Use `cmd-shift-1` to open or close the project panel.
2021-09-30 15:26:14 -07:00
Max Brunsfeld
0b317ee201
Fix ProjectPanel test failure
2021-09-30 15:02:27 -07:00
Max Brunsfeld and Nathan Sobo
8e88c33ba7
Style the active entry in the project panel
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 14:16:28 -07:00
Max Brunsfeld and Nathan Sobo
6a40f71d7b
Avoid duplicate notifications for the same entity in the same effect cycle
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 14:06:09 -07:00
Max Brunsfeld and Nathan Sobo
da9dd739af
Don't autoscroll the project panel when worktree changes
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 13:44:07 -07:00
Max Brunsfeld and Nathan Sobo
a093f461bc
Vertically align root folder in project panel with tabs and sidebar icons
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 13:30:24 -07:00
Max Brunsfeld and Nathan Sobo
34bdf808e5
Add 'overlay' property to border
...
For containers, this causes the border to be drawn on top of the child element.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 13:29:26 -07:00
Max Brunsfeld and Nathan Sobo
9cd5c8a3d1
Avoid rendering artifacts when label text is shaped with a non-integer width
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 13:28:45 -07:00
Max Brunsfeld and Nathan Sobo
a159ce76e4
Add disclosure arrows to the project panel
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-09-30 10:24:52 -07:00
Nathan Sobo
5a8e4b172c
Scope the left and right bindings in the project panel
2021-09-30 10:50:58 -06:00
Antonio Scandurra
8cda3e49ba
Open buffer when trying to expand a file
2021-09-30 16:19:24 +02:00
Antonio Scandurra
ca5340c48b
💄
2021-09-30 16:00:01 +02:00
Antonio Scandurra
c5b68cae90
Rename active entry to selected entry
2021-09-30 14:41:12 +02:00
Antonio Scandurra
b1a5268b9e
Allow expanding/collapsing active entry using the keyboard
2021-09-30 14:38:21 +02:00
Antonio Scandurra
c94ba110f6
Allow selecting prev and next entries via the keyboard
2021-09-30 14:13:07 +02:00
Antonio Scandurra
7d130a1787
Fix panic when rendering multiple worktrees in project panel
2021-09-30 10:39:15 +02:00