Nathan Sobo
|
2c232d585a
|
Merge branch 'main' into unfold-on-select-match
|
2022-03-24 14:13:27 -06:00 |
|
Nathan Sobo
|
ccc276da7a
|
Merge pull request #672 from zed-industries/fix-unfollowing-on-edit
Automatically unfollow leader only for edits that originate from the follower editor
|
2022-03-24 13:26:28 -06:00 |
|
 Keith SimmonsandNathan Sobo
|
92c7b5d6ef
|
Remove result from anchor cmp functions
Co-authored-by: Nathan Sobo <nathan@zed.dev>
|
2022-03-24 11:48:31 -07:00 |
|
 
|
ab631cf6c3
|
Change language::anchor::min() to a constant
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
|
2022-03-24 10:41:33 -07:00 |
|
 
|
f6805eb802
|
Make rename highlights work across multibuffer excerpts
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
|
2022-03-24 10:22:47 -07:00 |
|
Antonio Scandurra
|
7fa7b7e507
|
Unfold range when selecting the next match
Selected matches are unfolded when in project search, buffer search and
when hitting `cmd-d` to select the next match.
|
2022-03-24 17:16:21 +01:00 |
|
Antonio Scandurra
|
78b52168fa
|
Rename Editor::unfold to Editor::unfold_lines
|
2022-03-24 17:15:40 +01:00 |
|
Antonio Scandurra
|
4f50da759a
|
Allow customizing whether FoldMap::unfold treats ranges as inclusive
|
2022-03-24 17:14:41 +01:00 |
|
Antonio Scandurra
|
9421ad04f7
|
Add a unit test for editor edit events
|
2022-03-24 09:17:56 +01:00 |
|
Antonio Scandurra
|
87981bb2ab
|
Emit an Edited event when ending, undoing or redoing a transaction
|
2022-03-24 08:56:37 +01:00 |
|
Antonio Scandurra
|
a739c362d9
|
Rename editor::Event::Edited to editor::Event::BufferEdited
This is to distinguish it from a new event we're about to add which
represent edits originating from that specific editor.
|
2022-03-24 08:55:46 +01:00 |
|
Antonio Scandurra
|
864bede8a2
|
Use Editor::transact everywhere
This is in preparation of emitting an edit event every time a transaction ends
or it is undone/redone.
|
2022-03-24 08:48:06 +01:00 |
|
 Max BrunsfeldandKeith Simmons
|
ff4bdb3114
|
Fix incorrect highlighting when an empty range is highlighted via the DisplayMap
Co-Authored-By: Keith Simmons <keith@zed.dev>
|
2022-03-23 18:20:55 -07:00 |
|
Max Brunsfeld
|
8f7966bf35
|
Merge pull request #668 from zed-industries/no-lsp-when-following
Avoid making LSP requests when moving cursor due to following
|
2022-03-23 11:54:45 -07:00 |
|
Max Brunsfeld
|
cbd4ef2ec5
|
Merge pull request #667 from zed-industries/fix-duplicate-nav-entries
Fix duplicate nav entries
|
2022-03-23 11:49:00 -07:00 |
|
Max Brunsfeld
|
f7e7d58f49
|
Avoid making LSP requests when moving cursor due to following
|
2022-03-23 11:41:20 -07:00 |
|
 Keith SimmonsandAntonio Scandurra
|
e36104f30d
|
Add navigation deduping
Co-authored-by: Antonio Scandurra <me@as-cii.com>
|
2022-03-23 11:32:25 -07:00 |
|
 Antonio ScandurraandKeith Simmons
|
255a8c5d14
|
Don't push a duplicate nav entry when changing selections via the mouse
Co-Authored-By: Keith Simmons <keith@zed.dev>
|
2022-03-23 18:45:45 +01:00 |
|
 Max BrunsfeldandNathan Sobo
|
0b3a63b843
|
Fix error in follower when leader creates pending selections
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-23 10:24:26 -07:00 |
|
Antonio Scandurra
|
10f176073d
|
Merge pull request #662 from zed-industries/fix-refresh-selections-when-mouse-selecting
Account for pending selections when calling `Editor::refresh_selections`
|
2022-03-23 15:58:28 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
b73f57d37a
|
Don't destroy pending selection on Editor::refresh_selections
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-23 15:21:11 +01:00 |
|
Antonio Scandurra
|
004f98cc6d
|
Merge pull request #661 from zed-industries/follow
Introduce basic following experience
|
2022-03-23 15:17:44 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
5ac39aa7cd
|
Don't show local cursors when editor is not focused
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-23 14:46:33 +01:00 |
|
Antonio Scandurra
|
d24bd6f19a
|
Account for pending selections when calling Editor::refresh_selections
|
2022-03-23 11:46:35 +01:00 |
|
 Max BrunsfeldandNathan Sobo
|
fa62fd968f
|
Autoscroll when leader moves cursors
instead of copying their scroll top.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-22 18:02:54 -07:00 |
|
 Max BrunsfeldandNathan Sobo
|
fad299eb3f
|
Add unit test for editor's following methods
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-22 17:39:34 -07:00 |
|
 Max BrunsfeldandNathan Sobo
|
8699dd9c56
|
Replicate fractional component of leader's scroll position
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-22 17:20:13 -07:00 |
|
Keith Simmons
|
fba6f24ab7
|
Add editor lifetime events
|
2022-03-22 16:14:32 -07:00 |
|
Keith Simmons
|
6a1c197c1b
|
Add editor selection utilities
Also improved test that was failing during above to use marker text approach as a drive by
|
2022-03-22 16:08:22 -07:00 |
|
Max Brunsfeld
|
fc811e0856
|
Don't represent editor's scroll top anchor as an option
Use Anchor::min as the special value representing a scroll top of zero
|
2022-03-22 13:32:25 -07:00 |
|
Keith Simmons
|
df751867a1
|
Remove results from movement function return values, and move editor test utilities to test file
|
2022-03-22 10:55:03 -07:00 |
|
Antonio Scandurra
|
3117554568
|
Automatically unfollow when editing, scrolling or changing selections
|
2022-03-22 09:17:01 +01:00 |
|
Max Brunsfeld
|
1728551282
|
Always mirror the leader's selections when following
|
2022-03-21 21:47:29 -07:00 |
|
 Nathan SoboandKeith Simmons
|
baeb7d27b8
|
Clarify word movement function names and improve test coverage
Co-Authored-By: Keith Simmons <keith@the-simmons.net>
|
2022-03-21 15:17:25 -06:00 |
|
 Max BrunsfeldandAntonio Scandurra
|
06cd9ac664
|
Match the leader's last selection when unfollowing
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
|
2022-03-21 14:04:55 -07:00 |
|
Antonio Scandurra
|
a2dbebd9ba
|
Hide cursor both locally and remotely when following
|
2022-03-21 15:16:56 +01:00 |
|
Antonio Scandurra
|
0e920ad5e9
|
Unset follower's scroll anchor when editor is scrolled all the way up
|
2022-03-19 10:50:23 +01:00 |
|
 Max BrunsfeldandAntonio Scandurra
|
d02ab9bd06
|
Start work on updating editors's scroll positions when following
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
|
2022-03-18 12:56:20 -07:00 |
|
Antonio Scandurra
|
f4520d4184
|
WIP
|
2022-03-18 18:07:03 +01:00 |
|
Antonio Scandurra
|
f0b7bd6e17
|
Serialize initial follow state in leader and reflect it in follower
|
2022-03-18 10:22:13 +01:00 |
|
 Antonio ScandurraandMax Brunsfeld
|
2b4738d82d
|
Avoid passing a closure to workspace::register_project_item
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2022-03-17 17:39:25 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
5d14c9abdf
|
Introduce workspace::register_project_item
This lets downstream crates like `editor` define how project items should be
opened.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-17 15:54:34 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
bff414cfbc
|
Remove Editor::find_or_create
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-17 15:13:47 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
6f9c37851c
|
Add Editor::for_multibuffer and repurpose Editor::for_buffer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-17 14:39:02 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
44d997c00c
|
Rename app_state to global in gpui
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2022-03-17 14:33:01 +01:00 |
|
Antonio Scandurra
|
6446660c88
|
Rename open_buffer_for_path to open_buffer
|
2022-03-17 11:42:13 +01:00 |
|
Antonio Scandurra
|
e6755f4115
|
Search only in active pane when using Editor::find_or_create
|
2022-03-17 11:39:39 +01:00 |
|
Antonio Scandurra
|
0efce8f70a
|
Rename ItemView to Item
|
2022-03-17 11:32:46 +01:00 |
|
Antonio Scandurra
|
aced1e2315
|
Finish refactoring of how editors are opened
|
2022-03-17 11:29:46 +01:00 |
|
 Nathan SoboandMax Brunsfeld
|
728c708150
|
WIP: Massage opening of editors
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
|
2022-03-16 17:40:09 -06:00 |
|