Nathan Sobo
fbc307cd5e
Associate collaborator avatars with "ribbons" corresponding to their cursor color
2021-11-28 13:25:05 -07:00
Nathan Sobo
a5039cad65
Tweak avatar sizes in titlebar
2021-11-28 12:41:46 -07:00
Nathan Sobo
6ce76ca13e
Render active worktree collaborator avatars in the titlebar
2021-11-28 12:28:10 -07:00
Nathan Sobo
4bd43e67ef
Introduce a TestClient and associate it with a PeerId
...
This makes it easier to integration test peer interactions because now we know their PeerIds.
2021-11-27 12:33:25 -07:00
Nathan Sobo
b307a7e91d
Populate the user data of worktree collaborators
...
This will make it possible for us to render their avatars. Previously we only had the user ids. During rendering, everything needs to be available synchronously. So now, whenever collaborators are added, we perform the async I/O to fetch their user data prior to adding them to the worktree.
2021-11-26 20:35:50 -07:00
Nathan Sobo
9930e92412
WIP: Give worktrees a reference to the UserStore
...
This will allow them to fetch user data when peers are added or removed. Still work to do though.
2021-11-26 19:12:12 -07:00
21aba54dc3
Introduce a worktree::Collaborator struct that holds the user_id
...
We can use this to render avatars.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-11-26 11:28:30 -07:00
Nathan Sobo and Antonio Scandurra
d78d5712be
Rename PeoplePanel to ContactsPanel
...
Yeah, it's true they're people, but this is a more specific way in which they're people.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-11-26 11:13:05 -07:00
Nathan Sobo and Antonio Scandurra
c8ad5b68e0
Rename collaborator_logins to authorized_logins
...
Again, this is about reserving the concept of a "collaborator" for actual collaborators on a worktree.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-11-26 11:08:34 -07:00
Nathan Sobo and Antonio Scandurra
cd2c3c3606
Rename Collaborators to Contacts
...
This will allow us to use the word "collaborator" to describe users that are actively collaborating on a worktree.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-11-26 10:59:41 -07:00
Nathan Sobo
9f29eeda03
Associate Peers with a user_id
...
This will help us render the collaborator avatars for the active worktree when we know its peers.
2021-11-26 10:22:34 -07:00
Nathan Sobo
f453928b44
Associate the project with an active worktree
...
This is similar to the active entry, but it can remain assigned even if there is no active entry and we can potentially manipulate it in other scenarios such as interaction with the project browser. This prepares the ground to show the collaborators for the active worktree.
2021-11-26 10:21:56 -07:00
Nathan Sobo
74cdd32c58
Merge pull request #257 from zed-industries/go-to-line-plus-mouse
...
Preserve selection when clicking on editor dismisses go-to-line dialog
2021-11-25 14:17:29 -07:00
Nathan Sobo
f8cf534812
Merge pull request #256 from zed-industries/select-next
...
Implement select next (cmd-d) and replace selection with next (cmd-k cmd-d)
2021-11-25 14:10:54 -07:00
Nathan Sobo
ad26362a82
Preserve selection when clicking on editor dismisses go-to-line dialog
2021-11-25 14:10:43 -07:00
Nathan Sobo
fc2ae42f4b
Implement cmd-k cmd-d to replace selection with next
2021-11-25 13:39:08 -07:00
Nathan Sobo
d249618ee6
Improve range-based selection queries to only resolve the requested selections
2021-11-25 13:19:49 -07:00
Nathan Sobo
c47855424f
Merge pull request #250 from zed-industries/go-to-line
...
Implement go-to-line interface
2021-11-24 17:15:52 -07:00
Nathan Sobo
f7532c785e
Render the current line, column, and line count in go to line dialog
2021-11-24 16:52:18 -07:00
Nathan Sobo
a07fe3aa58
Improve styling of the go to line modal
2021-11-24 16:16:29 -07:00
Nathan Sobo
1e49b56626
Restore scroll position and selections when cancelling go-to-line
...
But preserve the line when confirming.
2021-11-24 15:43:48 -07:00
Nathan Sobo
8c0541b455
Fix warnings
2021-11-24 15:24:27 -07:00
Nathan Sobo
0854976691
Highlight the selected line when typing in the go to line dialog
2021-11-24 15:23:45 -07:00
Nathan Sobo
2b9db911c7
WIP
2021-11-24 09:18:41 +01:00
Nathan Sobo
e0bf5337ca
Merge pull request #244 from zed-industries/mouse-selections
...
Improve support for selecting text via the mouse
2021-11-23 18:11:04 -07:00
Nathan Sobo
bfecdb7bc0
Remove newest selection when adding a selection with a click count > 1
...
This prevents selections added in earlier clicks from being rendered under the pending selection.
2021-11-23 16:30:33 -07:00
Nathan Sobo
73afb29b04
Use alt modifier instead of cmd to add selections
2021-11-23 16:23:30 -07:00
Nathan Sobo
9e651ee127
Simplify handling of shift-click to extend selections
2021-11-23 16:03:21 -07:00
Nathan Sobo
d969f38850
Implement shift-click to extend the newest selection
2021-11-23 15:42:21 -07:00
Nathan Sobo
843972ceca
Merge pull request #232 from zed-industries/uniform-bias
...
Use uniform biases in AnchorMap, AnchorRangeMap
2021-11-22 15:55:03 -07:00
Nathan Sobo
68223bdb67
Place the cursor at end of first line when splitting selections into lines
2021-11-22 15:53:37 -07:00
Nathan Sobo
2f39dee28b
Use uniform biases in AnchorMap, AnchorRangeMap
...
Specifying a different bias for every point makes the interface feel pretty unwieldy and we don't really use it.
2021-11-22 15:30:46 -07:00
Nathan Sobo and Max Brunsfeld
213aa36e1c
WIP: Track down bugs with longest_row on wrap map
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-17 19:45:56 -07:00
Nathan Sobo and Max Brunsfeld
c5956a0363
Start at the end of the last transform when catching up to edits during wrapping
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-17 19:44:17 -07:00
Nathan Sobo and Max Brunsfeld
18354c5e04
Hack in show next diagnostic command
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-16 16:51:38 -08:00
Nathan Sobo and Max Brunsfeld
52a4c15c14
Eliminate non-highlighted chunks APIs
...
Now we only have a single code path for chunks across all layers, but highlighting is optional and controlled by a flag.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-16 16:51:38 -08:00
Nathan Sobo
7dd9b9539e
WIP
2021-11-16 13:19:04 -07:00
Nathan Sobo and Max Brunsfeld
092689ed56
WIP
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-16 13:10:06 -07:00
880b3f087f
Insert empty isomorphic transforms on empty lines
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-11-16 12:14:00 -07:00
Nathan Sobo and Max Brunsfeld
7d1ba6455b
Implement BlockMapWriter::remove
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-15 17:09:26 -07:00
Nathan Sobo and Max Brunsfeld
7b12c1c9e0
Enable soft wrap in randomized test of BlockMap
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-15 16:59:02 -07:00
Nathan Sobo and Max Brunsfeld
862b988d56
Position blocks above/below buffer lines, even when the anchored line is soft-wrapped
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-15 16:45:51 -07:00
Nathan Sobo
3154ccbafe
WIP
2021-11-14 16:24:40 -07:00
Nathan Sobo
e644c0876e
WIP: Start moving BlockMap to a 2d indexing scheme
2021-11-14 08:29:41 -07:00
Nathan Sobo
5832153712
Hack: Synthesize a newline before blocks below the last line of the buffer
2021-11-14 07:43:35 -07:00
Nathan Sobo
b6e6dafca7
Account for trailing below blocks in BlockSnapshot::max_point
2021-11-13 19:50:42 -07:00
Nathan Sobo
d6bc05cad0
Fix BlockMap unit test by skipping below blocks when advancing transforms
2021-11-13 18:19:21 -07:00
Nathan Sobo
c9cbeafc05
Start on BlockSnapshot::clip_point
...
Not sure it works yet. Ran into another failure in the unit tests.
2021-11-13 17:44:09 -07:00
Nathan Sobo and Max Brunsfeld
e605a5ead2
Sketch an initial implementation for block_map::HighlightedChunks
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-12 14:51:25 -07:00
Nathan Sobo
068aa1adb3
WIP
2021-11-12 00:20:39 -07:00
Nathan Sobo
47ad9baebc
wip
2021-11-12 00:03:47 -07:00
Nathan Sobo
84d789b8ac
WIP
2021-11-11 23:28:45 -07:00
Nathan Sobo
118f137f18
WIP: Rework injection map to be focused solely on block injections
2021-11-10 20:49:06 -07:00
Nathan Sobo
0fff7d9166
WIP: Probably the wrong direction
2021-11-10 17:44:56 -07:00
Nathan Sobo
62ec105bff
WIP
2021-11-10 14:00:51 -07:00
Nathan Sobo
c2b44537aa
Fix path to templates that's used when minifying tailwind CSS
2021-11-07 07:32:26 -07:00
Nathan Sobo
f33d30cb9d
Upgrade builder image to Rust 1.56
2021-11-06 22:10:27 -06:00
Nathan Sobo
0ff87e603f
Give the MouseEventHandlers for each tab bar their own id
...
This fixes a beachball where we oscillate back and forth between hovered and unhovered due to confusing two different tab bars as the same tab bar.
2021-11-03 19:15:55 -06:00
Nathan Sobo
2d6285a6e1
Start on a test for grouped diagnostics
2021-11-03 18:47:18 -06:00
Nathan Sobo and Max Brunsfeld
44e0a00734
Only show the first line of diagnostic messages in the status bar
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-03 16:52:32 -06:00
Nathan Sobo
595dbd44ae
Merge pull request #221 from zed-industries/status-bar-errors
...
Add a status bar that shows the cursor position and the error under the cursor
2021-11-03 15:46:33 -06:00
2c57703ad6
Explicitly shut down language servers when quitting the app
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-11-02 13:16:25 -06:00
Nathan Sobo
3228a55329
Fix test-support feature propagation for editor and workspace
2021-10-30 07:40:20 -06:00
Nathan Sobo and Max Brunsfeld
9977248926
Adjust disk-based diagnostics based on edits since the last save
...
Still need to add tests... not sure if this is right yet.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-27 18:58:07 -06:00
Nathan Sobo
1a92a19954
Remove Anchor from protocol
2021-10-26 12:04:04 -06:00
Nathan Sobo
ab4f90a20a
Get language and project compiling
2021-10-25 09:26:36 -06:00
Nathan Sobo
60a8e74430
Get buffer compiling with new SelectionSets based on AnchorRangeMap
...
One test is failing however.
2021-10-22 14:12:16 -06:00
Nathan Sobo
6ba4af3e26
WIP: Start converting SelectionSet to use AnchorRangeMap
2021-10-22 13:19:19 -06:00
Nathan Sobo
3ae5ba09fd
Implement TryFrom<proto::SelectionSet> on SelectionSet
...
More prep work for changing the selection set representation.
2021-10-22 12:46:02 -06:00
Nathan Sobo
401bdf0ba1
Simplify protocol messages related to selection sets
...
This prepares the way to switch to using AnchorRangeMaps to store and transmit selection sets.
2021-10-22 12:35:29 -06:00
Nathan Sobo
087ff28d0d
Move SelectionSet and Into impl to selection module
2021-10-22 09:56:47 +02:00
Nathan Sobo
76774d6a3c
Merge pull request #205 from zed-industries/autoindent
...
Autoindent
2021-10-19 14:23:04 +02:00
5558d553bb
Insert an extra newline between brackets
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-19 13:17:16 +02:00
Nathan Sobo
561857fdf2
Restore all active selections when undoing/redoing autoindent
...
In the unlikely event that we're handling autoindent requests from multiple editors, we undo/redo selections from both editors. This is somewhat imperfect but probably good enough and easier than performing auto-indents on a per-editor basis.
2021-10-11 17:22:18 -06:00
Nathan Sobo
6531df2368
Improve auto-indenting of inserted lines
...
Still not working totally correctly with our new approach, but getting closer.
2021-10-08 22:07:01 -06:00
Nathan Sobo and Antonio Scandurra
b85ae89b7e
Extend Rust where clauses past their final newline for indentation
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-10-08 10:32:15 -06:00
Nathan Sobo and Antonio Scandurra
810315e04c
Don't request auto-indent if there is no language assigned on the buffer
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-10-08 10:25:16 -06:00
Nathan Sobo and Antonio Scandurra
b4680144c5
Unconditionally preserve indentation when inserting newlines
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-10-08 10:25:00 -06:00
Nathan Sobo and Max Brunsfeld
d5b60ad124
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
fdfed3d7db
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
d768224182
Clean commented dependencies
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:15:45 -06:00
Nathan Sobo and Max Brunsfeld
c236b0828c
Extract worktree, rpc_client, and util crates
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:07:35 -06:00
Nathan Sobo
5b75fcd0aa
💄
2021-10-02 19:46:07 -06:00
Nathan Sobo
6239b5ec60
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
f00045544f
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
7728467790
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
90cc01a50a
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
fcf6a9d58a
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
74a47a1384
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
626fd2a2aa
Fix warnings
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:45:24 -06:00
Nathan Sobo and Max Brunsfeld
706925b781
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
cf270b4dff
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
bd2d71a582
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
514d1b66c3
Reduce generic instantiations in read/update_view/model
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 15:23:35 -06:00
Nathan Sobo
18a379f20c
Scope the left and right bindings in the project panel
2021-09-30 10:50:58 -06:00
Nathan Sobo
99003ef2d1
Merge pull request #185 from zed-industries/site-v2
...
Update zed.dev to version 0.2.0
2021-09-28 16:00:48 -06:00
Nathan Sobo
5536bf6dcc
Merge branch 'main' into site-v2
2021-09-28 15:33:44 -06:00
Nathan Sobo and Max Brunsfeld
bd7bf82d18
Load .gitignore files from the Fs object so we can test this with a FakeFs
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 13:21:19 -06:00
Nathan Sobo and Max Brunsfeld
dde782a006
Remove top/bottom padding from project panel
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 12:26:26 -06:00
Nathan Sobo and Max Brunsfeld
14bc2c6857
Fix scrolling of project panel
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 12:26:15 -06:00