Commit Graph
39175 Commits
Author SHA1 Message Date
Antonio Scandurra ee817d5518 WIP: Start on go to line 2021-11-24 18:45:36 +01:00
Antonio Scandurra 80798fdebb Merge pull request #249 from zed-industries/invert-workspace-editor-dependency
Invert dependency between workspace and editor
2021-11-24 17:54:28 +01:00
Antonio Scandurra 91cde5b838 Move integration test up into the zed crate 2021-11-24 17:39:15 +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 dc5035cccc Merge pull request #248 from zed-industries/columnar-selection
Allow creation of columnar selections with the mouse when holding `alt-shift`
2021-11-24 16:18:48 +01:00
Antonio ScandurraandNathan Sobo ae1a990088 🔥
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-24 16:17:41 +01:00
Antonio Scandurra 30929b2d76 Pull up diagnostic and cursor position status bar items creation 2021-11-24 16:04:24 +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 686523581e Merge pull request #243 from zed-industries/outdent
Add outdent command, fix indent bugs
2021-11-23 16:56:54 -08: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
Max Brunsfeld aabd744f70 Merge pull request #241 from zed-industries/toggle-comments
Implement toggle-comments
2021-11-23 15:15:28 -08: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
Max Brunsfeld ff40e7008e Merge pull request #238 from zed-industries/maximize-window
Maximize new windows
2021-11-23 10:37:18 -08:00
Max Brunsfeld 7a751b3910 Maximize new windows 2021-11-23 10:24:31 -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
Max Brunsfeld c90e6b3a8e Remove cargo-bundle from dev-dependencies
The cargo-bundle crate is installed separately in the
'bundle' script via 'cargo install'.
2021-11-23 09:25:22 -08: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 47b63ef012 Expose a count field on Event::LeftMouseDown 2021-11-23 16:18:17 +01:00
Antonio Scandurra 18a872754e Merge pull request #236 from zed-industries/soft-wrap-flaky-test
Retry flaky `test_soft_wraps` 5 times before giving up
2021-11-23 11:46: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
Antonio Scandurra e97161dca8 Merge pull request #235 from zed-industries/handle-screen-scale-factor-change
Fix incorrect rendering when window moves between displays with different scale factors
2021-11-23 11:15:18 +01:00
Max Brunsfeld 3514ee2935 Clear sprite cache when scale factor changes 2021-11-22 16:47:51 -08:00
Max Brunsfeld 09fe838226 Include scale factor in glyph cache keys 2021-11-22 16:37:01 -08: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 ddaf4926b0 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 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 2eb364f8d6 Fix the bias of deserialized selection sets
Fixes #224

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-22 14:14:48 -08: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
Max Brunsfeld 3ac29749ed 0.8.0 2021-11-22 13:33:54 -08:00
Max Brunsfeld d25628d91e Bump RPC protocol version 2021-11-22 13:33:05 -08:00
Max Brunsfeld 5fe9197ce1 Merge pull request #228 from zed-industries/faster-clock-global
Switch to a dense representation for `clock::Global`
2021-11-22 13:31:27 -08:00
Max Brunsfeld 7ce9d68e8c Merge pull request #230 from zed-industries/rpc-write-timeout
Avoid server deadlocks
2021-11-22 13:31:08 -08:00
Max BrunsfeldandNathan Sobo 0fa00589cb Impose a timeout on writing RPC messages
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-22 13:23:55 -08:00
Antonio ScandurraandNathan Sobo 9b8b645b39 Switch to a dense representation for clock::Global
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-22 17:20:43 +01:00
Max Brunsfeld bccfaf645e Merge pull request #226 from zed-industries/1d-block-map
Allow full diagnostic messages to be displayed in the editor
2021-11-19 09:16:49 -08:00
Antonio Scandurra 952a8f0cfd Use anchor_after in randomized tests to match BlockMap 2021-11-19 18:04:31 +01:00