Commit Graph
39175 Commits
Author SHA1 Message Date
Nathan SoboandMax Brunsfeld 054bbd6fc3 Implement BlockMapWriter::remove
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-11-15 17:09:26 -07:00
Nathan SoboandMax Brunsfeld 47ac3f7980 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 SoboandMax Brunsfeld 3977339140 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
Max Brunsfeld 9bc90e396e wip 2021-11-15 15:04:53 -08:00
Max BrunsfeldandNathan Sobo 05a18f3bde Remove bias parameter when converting display points to buffer points
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 14:36:03 -08:00
Max BrunsfeldandNathan Sobo 604e6499ae Remove bias parameter from to_display_point
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 14:21:55 -08:00
Max BrunsfeldandNathan Sobo c965e1da25 Fix group_ids assertions in diagnostics test
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 14:18:58 -08:00
Max BrunsfeldandNathan Sobo f64a7be24c Fix infinite loop in BlockMap::highlighted_chunks
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 14:18:45 -08:00
Max BrunsfeldandNathan Sobo fdf4e93ded Propagate wrap edits to block map when folding / unfolding
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 14:18:24 -08:00
Max BrunsfeldandNathan Sobo 65efb47665 Get BlockMap randomized test passing w/o soft wraps
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 13:36:40 -08:00
Max Brunsfeld 2ed75c4060 Get BlockMap unit test passing 2021-11-15 12:39:40 -08:00
Antonio Scandurra c123d032e0 WIP 2021-11-15 19:52:48 +01:00
Antonio Scandurra 05581db8a4 WIP 2021-11-15 19:38:06 +01:00
Antonio Scandurra fea72288a7 WIP 2021-11-15 18:01:30 +01:00
Antonio Scandurra b9c460a3a0 WIP 2021-11-15 17:54:28 +01:00
Antonio Scandurra 11d4b815cc WIP 2021-11-15 17:15:30 +01:00
Antonio ScandurraandNathan Sobo 70278e995d Make BlockMap randomized test pass in low-complexity cases
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 16:47:30 +01:00
Antonio ScandurraandNathan Sobo 123d103d9e Make BlockMap unit test pass with 2d coordinates
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-15 16:30:58 +01:00
Nathan Sobo 3755612f17 WIP 2021-11-14 16:24:40 -07:00
Nathan Sobo 97ba91ad61 WIP: Start moving BlockMap to a 2d indexing scheme 2021-11-14 08:29:41 -07:00
Nathan Sobo 1dca403f89 Hack: Synthesize a newline before blocks below the last line of the buffer 2021-11-14 07:43:35 -07:00
Nathan Sobo 4370447e98 Account for trailing below blocks in BlockSnapshot::max_point 2021-11-13 19:50:42 -07:00
Nathan Sobo 279e11b0a1 Fix BlockMap unit test by skipping below blocks when advancing transforms 2021-11-13 18:19:21 -07:00
Nathan Sobo ca47e73743 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
Max Brunsfeld d714bf4fa0 wip - wiring up blockmap into displaymap 2021-11-12 17:29:09 -08:00
Max BrunsfeldandNathan Sobo fe771eb5f9 Make block insertion work in simple cases
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-12 16:40:01 -08:00
Max Brunsfeld d33cd94256 Fix compile errors 2021-11-12 13:55:47 -08:00
Nathan SoboandMax Brunsfeld cf88c4d226 Sketch an initial implementation for block_map::HighlightedChunks
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-11-12 14:51:25 -07:00
Max Brunsfeld 8bc352e0b7 wip 2021-11-12 12:09:35 -08:00
Max Brunsfeld c876cd43bd BlockMap WIP 2021-11-12 11:49:48 -08:00
Antonio ScandurraandMax Brunsfeld dbe4a6af87 Start on a randomized test for BlockMap
This is currently passing and ensures we maintain the input coordinate
space correctly.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-11-12 19:01:39 +01:00
Antonio Scandurra 5ed7738bdd Remove redundant code path in Patch::compose 2021-11-12 17:24:25 +01:00
Antonio Scandurra 709a392063 Maintain row edits since last sync in WrapMap 2021-11-12 17:05:49 +01:00
Antonio Scandurra 512280bfeb Add text manipulation facilities to Rope for test purposes 2021-11-12 17:02:51 +01:00
Antonio Scandurra 0dab92d2f6 Init env_logger in the editor crate for tests only 2021-11-12 17:01:57 +01:00
Antonio Scandurra aa98f147ba Use log::info instead of println in patch randomized tests 2021-11-12 17:00:44 +01:00
Antonio Scandurra ed6d3561fb 🎨 2021-11-12 16:31:01 +01:00
Antonio Scandurra c0fd8eba6e Make Patch::compose work 2021-11-12 15:07:28 +01:00
Antonio Scandurra b01e3e0f74 Avoid composing edits together for now 2021-11-12 09:01:15 +01:00
Nathan Sobo 4f758e8f45 WIP 2021-11-12 00:20:39 -07:00
Nathan Sobo e3ca98dab3 wip 2021-11-12 00:03:47 -07:00
Nathan Sobo ab48ed0852 WIP 2021-11-11 23:28:45 -07:00
Max Brunsfeld 56cd64ee24 Simplify assertions in randomized patch test, fix some patch bugs 2021-11-11 18:28:07 -08:00
Max BrunsfeldandNathan Sobo 75a7d052ee Add patch unit tests, get composition working for ops <= 3
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 17:36:30 -08:00
Antonio Scandurra 790bbcd2a4 WIP 2021-11-11 19:49:01 +01:00
Antonio Scandurra ce6602a8f6 WIP 2021-11-11 19:42:55 +01:00
Antonio Scandurra 48312c0dee WIP 2021-11-11 18:13:35 +01:00
Antonio ScandurraandNathan Sobo f22d9a3de4 WIP
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 16:52:14 +01:00
Antonio ScandurraandNathan Sobo b943003490 WIP
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 16:00:52 +01:00
Antonio ScandurraandNathan Sobo ada905a9d0 WIP: Start on BlockMap
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-11 15:04:39 +01:00