Nathan Sobo and Max Brunsfeld
f77d2efd0e
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
e0ba047955
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
fe7e0899fa
WIP
2021-11-16 13:19:04 -07:00
Nathan Sobo and Max Brunsfeld
9d6b3dc5e1
WIP
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-16 13:10:06 -07:00
9b002cf76a
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
d1b5b04883
Rework BufferRows iterator to pass the randomized tests
...
...without booleans.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-11-16 18:18:47 +01:00
Antonio Scandurra
2af2e36080
Start on a randomized test for BlockMap::buffer_rows
2021-11-16 15:35:35 +01:00
Max Brunsfeld and Nathan Sobo
b92bcb1829
Implement basic version of BlockMap::buffer_rows
...
Passed 1 simple test
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-11-15 17:41:13 -08:00
Max Brunsfeld and Nathan Sobo
e3990c61ef
Fix minor bug in BlockMap::clip_point
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-11-15 16:25:51 -08:00
Nathan Sobo and Max Brunsfeld
054bbd6fc3
Implement BlockMapWriter::remove
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-11-15 17:09:26 -07:00
Nathan Sobo and Max 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 Sobo and Max 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 Brunsfeld and Nathan 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 Brunsfeld and Nathan 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 Brunsfeld and Nathan 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 Brunsfeld and Nathan 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 Brunsfeld and Nathan 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 Brunsfeld and Nathan 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 Scandurra and Nathan 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 Scandurra and Nathan 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 Brunsfeld and Nathan 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 Sobo and Max 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 Scandurra and Max 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