Antonio Scandurra and Max Brunsfeld
f1aa471d38
WIP
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-10-07 19:09:14 +02:00
Antonio Scandurra and Nathan Sobo
0d6f728b81
Introduce a Tab action to indent line or insert soft tabs
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-07 17:31:58 +02:00
Antonio Scandurra and Nathan Sobo
b4337b0c2f
Don't push empty transactions onto the undo stack
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-07 16:06:55 +02:00
Max Brunsfeld
a21a1b483b
Add more rust indent nodes
2021-10-06 22:16:30 -07:00
Max Brunsfeld
9a954bc1d6
Generalize strategy for processing indentation ranges
...
* Take into account the ranges' start and end columns, not just the rows
* Generalize the approach to dedenting
2021-10-06 22:16:18 -07:00
Max Brunsfeld and Nathan Sobo
4525cbc448
Start work on a Buffer API for requesting autoindent on the next parse
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-06 16:09:30 -07:00
Max Brunsfeld
aeb6d79ecf
Merge pull request #203 from zed-industries/autoclose-pairs
...
Autoclose pairs
2021-10-06 11:17:41 -07:00
10f07a81a7
Skip autoclosed pairs
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-10-06 19:04:55 +02:00
Antonio Scandurra and Nathan Sobo
0acdd804f8
Start on autoclosing pairs
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-06 16:34:57 +02:00
Max Brunsfeld
22eeeb4690
Make the fields of buffer::Language private
2021-10-05 14:19:33 -07:00
Max Brunsfeld
5c8d1d1fb6
Add Cargo.toml features to fix compilation of individual crates
2021-10-05 14:18:04 -07:00
Max Brunsfeld
a9a32bcb23
Merge pull request #202 from zed-industries/crates
...
Break project into crates to improve incremental compilation time
2021-10-05 10:54:15 -07:00
Max Brunsfeld
9232abbaf4
Fix path to zed crate in script/bundle
2021-10-05 10:46:59 -07:00
14e9b03c52
Flip the dependency between editor and theme
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-10-05 19:21:13 +02:00
Antonio Scandurra
f3583120de
Use the same test::run_test function for async gpui::tests
2021-10-05 18:04:22 +02:00
Antonio Scandurra and Nathan Sobo
5aeb48a234
Minimize code generation for synchronous gpui::test macro
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-05 17:47:46 +02:00
Antonio Scandurra
00683212b1
Avoid loading Rust grammar in zed tests
2021-10-05 15:43:57 +02:00
Antonio Scandurra
43bb8d28aa
Extract theme_selector into its own crate
2021-10-05 15:38:25 +02:00
Antonio Scandurra
ce077ebc8e
Extract people_panel into its own crate
2021-10-05 14:36:38 +02:00
Antonio Scandurra
ac46768302
Extract file_finder into its own crate
2021-10-05 14:30:56 +02:00
Antonio Scandurra
436c408433
Extract chat_panel into its own crate
2021-10-05 14:23:45 +02:00
Antonio Scandurra
2db30f40ba
Extract project_panel into its own crate
2021-10-05 14:19:57 +02:00
Antonio Scandurra
3dc173cf40
Move workspace module into its own crate
2021-10-05 13:49:10 +02:00
Antonio Scandurra
a70a4edcaa
Extract theme into its own crate
2021-10-05 11:14:30 +02:00
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