Commit log

6a44a74 Consolidate Edit types in editor crate

Max Brunsfeld created

fa37988 Give more specific names to all snapshot and text iterator types

Max Brunsfeld created

bd6e972 Merge pull request #281 from zed-industries/fix-release-asset-redirects

Click to expand commit body
Don't pass GH auth header when following redirects for release assets

Max Brunsfeld created

6d9bf80 Don't pass GH auth header when following redirects for release assets

Max Brunsfeld created

ad33111 Fix assertion in excerpt unit test after fixing edits

Max Brunsfeld created

39cc0ca Fix Subscription re-export after moving it into its own module

Max Brunsfeld created

102926d Implement and randomized test excerpt list point translation and clipping

Max Brunsfeld created

09c0c3a :art: excerpt_list::Chunks::next

Max Brunsfeld created

416033a Get random excerpts test passing w/ text in range, edits

Max Brunsfeld created

02f42f2 WIP

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

88e3d87 Get randomized test passing on basic excerpt list features

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

4578938 Implement ExcerptList::subscribe

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

a02a299 Get the basic ExcerptList unit test passing again

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

6965117 Allow patches to be composed with edit iterators in addition to other Patches

Click to expand commit body
This can avoid an extra allocation in some cases.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

cff610e Rename FragmentList to ExcerptList

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

42eba72 Introduce `Buffer::edits_since_in_range`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created

e37908c Start on a simple randomized test for `FragmentList`

Antonio Scandurra created

8354d15 :art:

Antonio Scandurra created

45d6f5a Start on maintaining edits in `FragmentList`

Antonio Scandurra created

8f90d42 Merge branch 'main' into project-diagnostics

Antonio Scandurra created

703e8e6 Merge pull request #276 from zed-industries/markdown

Click to expand commit body
Add basic markdown highlighting

Antonio Scandurra created

b1ed9c8 Add tree-sitter-markdown, set up simple markdown higlighting

Max Brunsfeld created

026c347 Upgrade tree-sitter to 0.20.1

Max Brunsfeld created

a13e251 Merge pull request #275 from zed-industries/fix-selection-artifacts

Click to expand commit body
Use 16-bit float to store path windings

Antonio Scandurra created

45d1690 Use 16-bit float to store path windings

Click to expand commit body
Previously, we were using a normalized 8-bit unsigned integer which forced us
to represent each increment of the winding number as a fraction of the max
value (1 / 255) which we would then add up using additive alpha blending.

This had three major drawbacks:

- The max winding number could not be greater than 255.
- Adding up (1 / 255) several times could result in a loss of precision.
- Due to also computing anti-aliasing as a fractional winding number, we had to
  reduce the max winding number to 32. This was still not good enough because
  we would multiply a fractional value with `1 / 32`, thus introducing more and
  more loss of precision.

This commit changes the texture type to an `f16` which doesn't require the
division by 255 and enables greater precision in the computation of the
anti-aliased parts of a curve. Note how this also removes the limitation of 255
windings at most per curve. The tradeoff is paying twice as much memory for
storing the texture, but that seems totally valid to achieve rendering accuracy.

Note that this kind of texture should be compatible with WebGL2 once we start
working on a web version of Zed.

Antonio Scandurra created

0be897d WIP: Edit one of the excerpted buffers and add an assertion

Click to expand commit body
We'll need to detect edits on the child buffers and understand their impact on the tree.

Nathan Sobo created

8116966 Start on a new FragmentList

Click to expand commit body
Here I'm exploring a new approach to the project-wide diagnostics view that can exactly mirror the contents of cargo check. The `FragmentList` composes an arbitrary list of fragments from other buffers and presents them as if they were a single buffer.

Nathan Sobo created

3426d46 Clear pending keystrokes after dispatching an action

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

0e93bc4 In `add_option_view`, avoid bumping view's ref counts if view is None

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

bd573e0 Merge pull request #273 from zed-industries/flexible-blocks

Click to expand commit body
Render blocks as arbitrary elements

Max Brunsfeld created

5ae4670 Fix alignment of blocks adjacent to other blocks

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

ee693a8 Get all tests passing with new blocks API

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

512a10b Use new BlockMap API to render diagnostics

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

0c71421 Start work on generalizing the BlockMap to allow arbitrary elements

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

e668ff8 Avoid allocating a `Patch` just to check if there are no edits

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

853b636 Merge pull request #272 from zed-industries/fold-map-edits

Click to expand commit body
Don't rely on `Buffer::edits_since` to keep `FoldMap` up-to-date

Antonio Scandurra created

733e0cb Use the new buffer subscription API to keep `DisplayMap` in sync

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

3b536f1 Introduce `text::Buffer::subscribe`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

47c467d Bump FoldMap's version in `FoldMap::sync` (and not in `DisplayMap`)

Antonio Scandurra created

b841b3e Don't produce invalid intermediate edits in `Patch::compose`

Antonio Scandurra created

faba276 WIP - maintain foldmap with Buffer::edits_since

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

2463077 Merge pull request #269 from zed-industries/simplify-buffer-content

Click to expand commit body
Use `&'a Snapshot` directly instead of `impl Into<Content<'a>>`

Max Brunsfeld created

924e157 Use `&Snapshot` directly instead of `impl Into<Content<'a>>`

Click to expand commit body
The text::Buffer and its snapshot already used the same representation
for their content, so we can just make Buffer deref to a Snapshot.

Max Brunsfeld created

3654646 Merge pull request #268 from zed-industries/improve-file-navigation

Click to expand commit body
Improve file navigation by naming the root of every crate after the crate itself

Max Brunsfeld created

1445ce1 Name the root file of every crate after the crate to ease navigation

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

748b1ba Fix warning

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

d3f2816 Rename buffer crate to text and name its entrypoint after the crate

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

eacd2a4 Bump versions in preparation for release

Nathan Sobo created

df1804b Merge pull request #267 from zed-industries/fix-soft-wrap-disabled

Click to expand commit body
Avoid building up pending edits when soft wrapping is disabled

Nathan Sobo created

0ed488d Avoid building up pending edits when soft wrapping is disabled

Click to expand commit body
This was causing us to get slower over time as we stacked up hundreds of thousands of pending edits whenever soft wrap was disabled.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Nathan Sobo and Antonio Scandurra created