Nathan Sobo
|
19dd12e1c6
|
Associate collaborator avatars with "ribbons" corresponding to their cursor color
|
2021-11-28 13:25:05 -07:00 |
|
Nathan Sobo
|
ca3e7ff87f
|
Implement cmd-k cmd-d to replace selection with next
|
2021-11-25 13:39:08 -07:00 |
|
Nathan Sobo
|
ee129edc89
|
Improve range-based selection queries to only resolve the requested selections
|
2021-11-25 13:19:49 -07:00 |
|
 Antonio ScandurraandNathan Sobo
|
e66e9eac0d
|
Return Selections from Editor::selections_in_range
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-25 16:45:06 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
8d6a2c0b33
|
Autoscroll vertically to the newest selection on SelectNext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-25 16:02:39 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
5dca1085a8
|
Implement SelectNext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-25 15:44:06 +01:00 |
|
Nathan Sobo
|
13c4cc06f6
|
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
|
7e0245f2fc
|
Highlight the selected line when typing in the go to line dialog
|
2021-11-24 15:23:45 -07:00 |
|
Antonio Scandurra
|
70d58a658d
|
Allow centering selections when requesting autoscroll
We use this new capability in the "go to line" modal.
|
2021-11-24 19:50:47 +01:00 |
|
Antonio Scandurra
|
ee817d5518
|
WIP: Start on go to line
|
2021-11-24 18:45:36 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
69531cd8bf
|
Invert dependency between editor and workspace
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-24 17:07:16 +01:00 |
|
Antonio Scandurra
|
a11408997a
|
Introduce "entry openers" but still register editors in workspace
|
2021-11-24 15:18:15 +01:00 |
|
Antonio Scandurra
|
e2ae3ca9cf
|
Skip over block lines when building columnar selections
|
2021-11-24 10:40:06 +01:00 |
|
Antonio Scandurra
|
00cfdaf5f3
|
Reverse columnar selections when head moves before tail's column
|
2021-11-24 10:37:35 +01:00 |
|
Antonio Scandurra
|
cd92190b62
|
Calculate an overshoot when mousing to build columnar selections
|
2021-11-24 10:28:32 +01:00 |
|
Nathan Sobo
|
87fcf9b9bc
|
WIP
|
2021-11-24 09:18:41 +01:00 |
|
Nathan Sobo
|
5dec861a22
|
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 |
|
Max Brunsfeld
|
3ff3de4493
|
Add outdent command, fix indent bugs
|
2021-11-23 16:44:05 -08:00 |
|
Nathan Sobo
|
6a7f39051a
|
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
|
cc9baaab67
|
Use alt modifier instead of cmd to add selections
|
2021-11-23 16:23:30 -07:00 |
|
Nathan Sobo
|
5b660c2da7
|
Simplify handling of shift-click to extend selections
|
2021-11-23 16:03:21 -07:00 |
|
Nathan Sobo
|
010e0116e4
|
Implement shift-click to extend the newest selection
|
2021-11-23 15:42:21 -07:00 |
|
Max Brunsfeld
|
468004c958
|
Implement toggle-comments
|
2021-11-23 14:13:28 -08:00 |
|
Antonio Scandurra
|
1c364d393e
|
Simulate line-wise selection when clicking on the gutter
|
2021-11-23 19:14:39 +01:00 |
|
Antonio Scandurra
|
34aa97fcd7
|
Implement line-wise selection
|
2021-11-23 19:10:15 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
3dd485e48e
|
Implement word-wise mouse selection
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-23 18:50:17 +01:00 |
|
Antonio Scandurra
|
1ce80a3c9e
|
WIP: Start integrating SelectMode and movement::surrounding_word
|
2021-11-23 17:04:58 +01:00 |
|
Antonio Scandurra
|
7abc3325c7
|
Add a new movement::surrounding_word function
|
2021-11-23 17:04:37 +01:00 |
|
Antonio Scandurra
|
27c1f29654
|
Retry flaky test_soft_wraps 5 times before giving up
We have other tests that rely on loading fonts that intermittently
fail on CI and for which we used the same mitigation.
|
2021-11-23 11:25:04 +01:00 |
|
Max Brunsfeld
|
ff0a922449
|
Merge pull request #233 from zed-industries/fix-split-selection-into-lines
Place the cursor at end of first line when splitting selections into lines
|
2021-11-22 16:25:19 -08:00 |
|
Max Brunsfeld
|
51b7715981
|
Adjust assertion in test for split_selection_into_lines
|
2021-11-22 16:19:24 -08:00 |
|
Nathan Sobo
|
ddd1eefce0
|
Place the cursor at end of first line when splitting selections into lines
|
2021-11-22 15:53:37 -07:00 |
|
Nathan Sobo
|
d14fc2f6d9
|
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 |
|
 Max BrunsfeldandNathan Sobo
|
8b6165b3b9
|
Fix selection set id mismatch when rendering guest selections
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-22 14:10:17 -08:00 |
|
Antonio Scandurra
|
952a8f0cfd
|
Use anchor_after in randomized tests to match BlockMap
|
2021-11-19 18:04:31 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
5068282ba1
|
Invalidate active diagnostic when its primary range collapses
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-19 16:46:54 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
46da03d234
|
Ignore diagnostics with empty ranges
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-19 16:30:26 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
26738c1978
|
Remove unused group_range field
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-19 16:17:50 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
4ab45dcc7b
|
Invalidate active diagnostics when they are removed
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-19 16:15:22 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
182d011b21
|
Make BlockMap::sync private
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-19 15:44:19 +01:00 |
|
Antonio Scandurra
|
de5bfc09f2
|
WIP
|
2021-11-19 15:31:33 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
d9fb628e13
|
Allow styling of invalid diagnostics
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-19 14:35:00 +01:00 |
|
Antonio Scandurra
|
e02b20a0dd
|
Allow styling of the gutter for block lines
|
2021-11-19 11:30:01 +01:00 |
|
Max Brunsfeld
|
0f3378a80a
|
Start work on allowing blocks to be styled
|
2021-11-18 18:16:35 -08:00 |
|
Max Brunsfeld
|
1844b77d67
|
Bind ShowNextDiagnostic to f8
|
2021-11-18 14:24:03 -08:00 |
|
Max Brunsfeld
|
27986e528e
|
Fix switched input + output rows in BlockSnapshot::buffer_rows
|
2021-11-18 12:41:58 -08:00 |
|
 
|
24ecbfd046
|
Align block text with the anchor's column
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-18 12:17:22 -08:00 |
|
 Antonio ScandurraandNathan Sobo
|
e3cbc669f4
|
Color diagnostic messages based on their severity
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-18 17:47:10 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
259b7c146e
|
Dismiss active diagnostics when hitting escape
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-18 16:57:05 +01:00 |
|
 Antonio ScandurraandNathan Sobo
|
216f3a9751
|
Enhance keyboard navigation when showing next diagnostic
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-11-18 16:55:18 +01:00 |
|