Commit log
4b8805b
Add `DisplayMap::highlighted_chunks_at(row)`
Click to expand commit body
Note that this API doesn't take a DisplayPoint: it could but it
makes things a bit harder on the implementation side and we don't
really need it anyway, as text is laid out on a line-by-line basis
anyway.
Antonio Scandurra
created
4 years ago
4ddf109
Introduce `fold_map::HighlightedChunks`
Antonio Scandurra
created
4 years ago
491932b
Rename `HighlightedChunksIter` to `HighlightedChunks`
Antonio Scandurra
created
4 years ago
4ada5e0
Rename `rope::ChunksIter` to `rope::Chunks`
Click to expand commit body
This is consistent with how we name the other chunk iterators.
Antonio Scandurra
created
4 years ago
6e791ed
Don't acquire the buffer mutably in `highlighted_text_for_range`
Antonio Scandurra
created
4 years ago
23b2530
Start on a basic implementation of `HighlightedChunksIter`
Antonio Scandurra
created
4 years ago
Max Brunsfeld
created
4 years ago
b0859d4
Extract a `Buffer::syntax_tree` to sync the syntax tree with the buffer
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
c1b4cca
Delete commented-out diff code
Antonio Scandurra
created
4 years ago
3a576f0
Don't clone `visible_text` for splicing edits into the parse tree
Antonio Scandurra
created
4 years ago
64b1113
Restructure parsing to use `edits_since`
Antonio Scandurra
created
4 years ago
9836f1f
Reparse buffer on undo, redo and after applying a remote operation
Antonio Scandurra
created
4 years ago
fe8dc9f
Add a unit test for reparsing a buffer
Max Brunsfeld
created
4 years ago
46e6b2c
Start maintaining a syntax tree on buffers
Max Brunsfeld
created
4 years ago
4e74a87
Bump context-predicate grammar to the latest Tree-sitter
Max Brunsfeld
created
4 years ago
2f378be
Introduce LanguageRegistry object
Click to expand commit body
* Include it, along with settings in `OpenParams` grouped under a new struct called `AppState`
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
,
Antonio Scandurra
, and
Nathan Sobo
created
4 years ago
eb345e7
Merge pull request #71 from zed-industries/simplify-text-layout
Click to expand commit body
Pass scalar lengths and include colors when specifying styling runs during text layout
Nathan Sobo
created
4 years ago
5d614e7
Fix test assertions
Nathan Sobo
created
4 years ago
Nathan Sobo
created
4 years ago
b075b01
Clarify variable name
Nathan Sobo
created
4 years ago
92ff7f4
Accept colors in styling runs passed to layout_str
Click to expand commit body
Also move from the runs being expressed as ranges to the runs being expressed as a sequence of contiguous scalar lengths.
Nathan Sobo
created
4 years ago
b42f514
Rename `rightmost_{row,chars}` to `longest_{row,chars}`
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
86199c5
Merge pull request #70 from zed-industries/optimizations
Click to expand commit body
Structure buffer APIs in terms of strings and byte counts instead of chars and character counts
Antonio Scandurra
created
4 years ago
6a0757e
Don't store rightmost row/char-column as a Point
Antonio Scandurra
created
4 years ago
995b80f
Index into `prefix` or `path` depending on where the match was found
Click to expand commit body
This fixes a couple of tests that were panicking due to an out-of-bound
access.
Antonio Scandurra
created
4 years ago
ed57ffe
Replace `rightmost_point` with `righmost_row`
Antonio Scandurra
created
4 years ago
9653835
Express rightmost_point in terms of chars as opposed to bytes
Antonio Scandurra
created
4 years ago
608336c
Complete unit test for Label highlights
Antonio Scandurra
created
4 years ago
558ce41
WIP - Adjust Label element to expect highlights as byte offsets
Max Brunsfeld
created
4 years ago
4bc1b0f
Convert fuzzy match positions to byte offsets
Max Brunsfeld
created
4 years ago
92b938f
Adjust `layout_str` to use byte coordinates
Click to expand commit body
* Interpret ranges as byte ranges for incoming runs
* Return glyphs whose indices are byte offsets
Max Brunsfeld
created
4 years ago
a2c36fc
Fix bugs and add tests for move_{up,down}
Max Brunsfeld
created
4 years ago
510f204
Get cursor movement working with byte columns
Click to expand commit body
Introduce `clip_point` and `clip_offset` methods on `Rope`, `Buffer`, and `FoldMap`.
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld
and
Antonio Scandurra
created
4 years ago
f3db0dc
Start work on making row/columnwise movement work w/ byte columns
Max Brunsfeld
created
4 years ago
6621b9b
Expand tabs correctly with multibyte characters
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
c62a679
Use chunk-wise DisplayMap iteration when laying out lines
Max Brunsfeld
created
4 years ago
a9583d0
Introduce FoldMapSnapshot::chunks_at, use it in FoldMap::text
Click to expand commit body
Get the FoldMap randomized tests passing. This also required adding
a test-only FoldMap::prev_char_boundary method.
Max Brunsfeld
created
4 years ago
b3d2a70
Don't return Results from position methods in FoldMap and DisplayMap
Max Brunsfeld
created
4 years ago
72b98ad
Get buffer tests passing after switching to byte coordinates
Max Brunsfeld
created
4 years ago
f7691fc
WIP: Switch to byte-oriented indexing
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
529a42e
Introduce `Rope::chunks_in_range`
Antonio Scandurra
created
4 years ago
a1f95fa
Merge pull request #69 from zed-industries/fix-flaky-test
Click to expand commit body
Try fixing flaky tests
Antonio Scandurra
created
4 years ago
1517ccf
Always flush historical events in `fsevent` tests
Antonio Scandurra
created
4 years ago
64d361f
Don't use `condition` to wait for `spawn_search` to complete
Click to expand commit body
Instead, return a `Task` from `spawn_search` that can either be
awaited or detached.
Antonio Scandurra
created
4 years ago
d7f5587
Revert "Temporary: ensure CI env variable is being set"
Click to expand commit body
This reverts commit 074dc55ab7e6eb3c1e9b29c2f634d3d811230349.
Antonio Scandurra
created
4 years ago
074dc55
Temporary: ensure CI env variable is being set
Antonio Scandurra
created
4 years ago
1cf5413
Increase timeout to 2s for fsevents tests
Antonio Scandurra
created
4 years ago
65cf9b7
Remove `condition_with_duration` for `ModelHandle`
Click to expand commit body
Also, use a 2s timeout on CI for both `ModelHandle::condition` and
`ViewHandle::condition`.
Antonio Scandurra
created
4 years ago
830fc38
Increase `condition` timeout on CI and remove `condition_with_duration`
Click to expand commit body
`condition_with_duration` wasn't really being used, as the default
timeout was `500ms` and the only places that did use it specified
`500ms` as well.
Antonio Scandurra
created
4 years ago
8615046
Enable backtrace for tests on CI
Antonio Scandurra
created
4 years ago
Page 56 of 68