29bc2db
Fix journal format strings
Nathan Sobo created
29bc2db
Fix journal format strings
Nathan Sobo created
34edbc7
Merge pull request #287 from zed-industries/journal
Add a simple journaling feature
Nathan Sobo created
0a37d40
Pad single-digit months, days, and minutes with a leading zero
Nathan Sobo created
ab5db0b
Fix warnings and tests
Nathan Sobo created
e4f1894
Insert a time heading when creating a journal entry
Nathan Sobo created
9e8ef31
Return item handles when opening items
This will support interacting with the opened item. Although I think I should probably return the ItemView rather than the Item. Next commit.
Nathan Sobo created
ca0d7e5
Add journal crate and move supporting logic into workspace crate
I needed to interact with the workspace to open a file from the journal crate, so I moved a bunch of logic out of main related to opening new workspaces and paths.
Nathan Sobo created
cd65031
Halt keystroke dispatch immediately when we call a global action handler
Someday, we may want to define a global action context that allows us to propagate the action, but this isn't currently supported. Previous to this commit, we were invoking the same global action handler multiple times, once for each view in the responder chain.
Nathan Sobo created
bd6e972
Merge pull request #281 from zed-industries/fix-release-asset-redirects
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
703e8e6
Merge pull request #276 from zed-industries/markdown
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
Use 16-bit float to store path windings
Antonio Scandurra created
45d1690
Use 16-bit float to store path windings
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
3426d46
Clear pending keystrokes after dispatching an action
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
bd573e0
Merge pull request #273 from zed-industries/flexible-blocks
Render blocks as arbitrary elements
Max Brunsfeld created
5ae4670
Fix alignment of blocks adjacent to other blocks
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
ee693a8
Get all tests passing with new blocks API
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
512a10b
Use new BlockMap API to render diagnostics
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
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
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
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
3b536f1
Introduce `text::Buffer::subscribe`
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
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
Use `&'a Snapshot` directly instead of `impl Into<Content<'a>>`
Max Brunsfeld created
924e157
Use `&Snapshot` directly instead of `impl Into<Content<'a>>`
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
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
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
748b1ba
Fix warning
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
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
Avoid building up pending edits when soft wrapping is disabled
Nathan Sobo created
0ed488d
Avoid building up pending edits when soft wrapping is disabled
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
fcbd7f9
Merge pull request #266 from zed-industries/fix-go-to-line
Use display coordinates for the highlighted row in "go to line"
Antonio Scandurra created
2449834
Use display coordinates for the highlighted row in "go to line"
Antonio Scandurra created
cb942a0
Merge pull request #265 from zed-industries/fix-collaborators-test
Fix flaky contacts test
Nathan Sobo created
a141216
Fix randomized test failures by waiting for client_b to be added to worktree_a
We perform an async fetch of client_b's user data on worktree_a, which ends up holding a handle that prevents worktree_a from being released later in the test. By waiting for this fetch to finish before proceeding, we can be sure worktree_a actually gets released. A more comprehensive fix would be some way to ensure we actually perform a release if an entity is fully dropped outside of an update cycle, but this fixes the issue for now. Co-Authored-By: Max Brunsfeld <max@zed.dev>
Nathan Sobo and Max Brunsfeld created
1a91aa8
Introduce a collections crate w/ deterministic hashmap, hashset in tests
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
5ec0035
Consolidate pending effects logic into MutableAppContext::update
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
4cc1556
Introduce weak_handle methods on ModelContext and ViewContext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
29b616f
Merge pull request #263 from zed-industries/fix-highlighting-when-x-scrolled
Paint highlighted lines correctly when horizontally scrolled
Max Brunsfeld created
88e0fe6
Paint highlighted lines correctly when horizontally scrolled
Max Brunsfeld created
7537c3b
Merge pull request #261 from zed-industries/setting-overrides
Override soft-wrap settings for Markdown and Plain Text
Max Brunsfeld created
1803bd7
Fix test assertions
Antonio Scandurra created
9d7039e
Embed a plain text grammar and override settings for that too
Antonio Scandurra created