34edbc7
Merge pull request #287 from zed-industries/journal
Click to expand commit body
Add a simple journaling feature
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
c41b958
WIP - start restructuring collaboration around entire projects
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
88d663a
Allow saving of all buffers contained in project diagnostics editor
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
f0fe346
Gracefully degrade `diagnostics_in_range`, `diagnostic_group` and `file`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
6685d5a
Implement `MultiBuffer::save`
This is still not integrated with `workspace::ItemView`.
Antonio Scandurra created
7d2b74a
Implement `MultiBuffer::{is_dirty,has_conflict}`
Antonio Scandurra created
5f819b6
Implement `MultiBuffer::enclosing_bracket_ranges`
Antonio Scandurra created
c9cbc2f
Implement `MultiBuffer::range_for_syntax_ancestor`
Antonio Scandurra created
a2ee38f
Make `MultiBuffer::is_parsing` a test-only method
Antonio Scandurra created
3914d1d
Display filename on the first excerpt's header for a group
Antonio Scandurra created
63f1712
Enhance diagnostic unit test and correctly display primary diagnostic
That is, if the diagnostic has more than one line we will display the first line in the header and all the other message lines at the error location.
Antonio Scandurra created
528d64d
WIP - Improve project diagnostic context rendering
Max Brunsfeld created
fb492a9
Correctly incorporate editor settings into diagnostic header rendering
Max Brunsfeld created
ae147a3
Don't terminate on an empty input chunk in `ExcerptChunks`
Max Brunsfeld created
31eeffa
Autoscroll after inserting blocks
Max Brunsfeld created
9cd4e5b
Transfer focus from ProjectDiagnostics view to its editor
Max Brunsfeld created
6444fcd
Integrate MultiBuffer::buffer_rows into the display map
Max Brunsfeld created
db33e49
Implement MultiBuffer::buffer_rows
Max Brunsfeld created
a293e9c
Suppress unused field warnings
Max Brunsfeld created
38df091
Fix up/down movement across excerpt headers
Implement these movements in terms of clipping, instead of with explicit loops
Max Brunsfeld created
dcd05ef
Resolve Anchor::min and ::max to valid positions
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld and Antonio Scandurra created
80f3173
Always panic if invalid point is passed to {prev,next}_row_boundary
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
Max Brunsfeld and Antonio Scandurra created
0fc2db6
Account for folds when inserting/removing block decorations
Antonio Scandurra created
7660159
Test blocks in display map randomized tests
This highlighted some errors in the implementation.
Antonio Scandurra created
de679ca
Re-enable creating multiple blocks at once in `BlockMap` tests
Antonio Scandurra created
abf96e6
Fix movement tests in `DisplayMap`
Antonio Scandurra created
64e2f6d
Ensure `BlockMap::clip_point` always yield a valid buffer location
Antonio Scandurra created
ec39c9d
Allow specifying `MAX_EXCERPTS` via an env variable in random tests
Antonio Scandurra created
3e2f684
Fix prev_row_boundary when a wrap follows a fold
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
4c22774
Always clip buffer points when clipping display points
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
f898dc6
Guard against inverted ranges when building edits in unfold
The multibuffer lets you refer to offsets inside of headers, so it's possible to create a fold that appears non-empty, but which spans zero characters in the underlying buffers. Fold ranges are biased inward: the start is biased right, and the end is biased left. Because of these two things, it's possible to create a fold that becomes "inverted" when you insert text at that position.
Max Brunsfeld created
e8570b5
Allow multibuffer to clip to the ends of excerpts, before trailing newlines
Max Brunsfeld created
f8ef605
Update all MultiBuffer unit tests, removing expected trailing newline
Max Brunsfeld created
f4115dd
:art: point_to_display_point & display_point_to_point
Max Brunsfeld created
368b444
Clip buffer points in DisplayMap::{prev,next}_row_boundary
Max Brunsfeld created
2930ea8
Fix handling of excerpts surrounded by edits in MultiBuffer::edit
Max Brunsfeld created
4bea16e
Ensure muiltibuffer anchors are contained within their excerpt ranges
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld , Nathan Sobo , and Antonio Scandurra created
cec0c59
Create multiple excerpts in random BlockMap test
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
80abd84
Create MultiBuffers with more than one fragment in more randomized tests
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created
1bdaeda
Remove disk diagnostics that were invalidated by a buffer edit
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created
4ab307f
Re-enable multi-byte random character generation
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
5118f27
Overhaul `MultiBuffer::chunks`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
bcdb4ff
Allow edits at the end of `MultiBuffer`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
7bbaa1d
Don't insert a newline after the last excerpt of a `MultiBuffer`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created