cee9509
Fix `delete_line` test
Antonio Scandurra created
cee9509
Fix `delete_line` test
Antonio Scandurra created
ccd244b
WIP: start on a test for `delete_line`
Discovered a bug that's highlighted by the test that causes selections to not be in the right order.
Antonio Scandurra created
834602e
Implement `delete_line` for buffer
This still needs unit tests.
Antonio Scandurra created
21442bd
Don't propagate action when selecting up/down in single-line editors
Antonio Scandurra created
c524cc4
Implement `select_to_beginning` and `select_to_end` for buffer
Antonio Scandurra created
45452bb
Implement `move_to_beginning` and `move_to_end` for buffer
Antonio Scandurra created
b7c30eb
Implemente `delete` for buffer
Antonio Scandurra created
324a6ff
Implement `select_all` for buffer
Antonio Scandurra created
88b88a8
Start work on opening files
Max Brunsfeld created
3d6336b
Merge pull request #29 from zed-industries/traverse-symlinks
Traverse symlinks when populating directories
Nathan Sobo created
e423a49
Traverse symlinks when populating directories
Nathan Sobo created
6b357a6
Fix tests
I didn't realize a previous change had broken stuff. We need to always call `remove_dropped_entities` and `update_windows` in `flush_effects`, even if there aren't any effects. To achieve this, I use a `loop` to ensure we call these methods at least once before breaking.
Nathan Sobo created
95fae8e
Always run all crates' tests in CI
Max Brunsfeld created
21cfb75
Flush redundant fs events in worktree test
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld and Antonio Scandurra created
9277529
Merge pull request #28 from zed-industries/close-tabs
Add tab close buttons
Nathan Sobo created
53013b3
Merge remote-tracking branch 'origin/master' into close-tabs
Nathan Sobo created
1cb3fdb
Synthesize a mouse moved event in the previous position after painting a scene
This ensures that we correctly update the hover state of elements whose position has changed relative to the mouse cursor even though the mouse hasn't actually moved. Co-Authored-By: Antonio Scandurra <me@as-cii.com> Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo , Antonio Scandurra , and Max Brunsfeld created
b5463dc
Close tabs when X is clicked
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo and Antonio Scandurra created
bc1f758
Lighten tab close button when clicked
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo and Antonio Scandurra created
8c51bb2
Render sprited icons at 2x resolution since we don't align to pixel grid
This provides the sampler with a bit more data when positioning sprites at subpixel positions. Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo and Antonio Scandurra created
1eba61c
Flush the fs event stream on construction
Max Brunsfeld created
69cc2b0
WIP
Nathan Sobo created
c1d35b0
Ignore 'historical' events from fs event stream
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
907b537
Fix race when fs events occur right after constructing worktree
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
58e3363
Align close tab icon cleanly with unsaved indicator
Nathan Sobo created
110dcc4
Merge pull request #26 from zed-industries/stable-file-finder-results
Improve file finder behavior when opening large directories like `~` or `/`
Max Brunsfeld created
eec8a3b
Simplify file finder update_matches logic
Max Brunsfeld created
75b8f74
Avoid redundant `sort_unstable_by` call on merged fuzzy matches
Max Brunsfeld created
a59b75c
Keep results stable when using file-finder while scanning files
Max Brunsfeld created
6882fdc
Avoid crash when running pane:activate_prev_item w/ no tabs open
Max Brunsfeld created
eca9f49
Render a close tab button on tab hover
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
bb95d58
Relay hover events to tabs
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
3d1e44c
Capture hover events on tabs
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo and Antonio Scandurra created
2a1496b
Merge pull request #24 from zed-industries/fix-autoscroll-on-paste
Autoscroll on paste
Antonio Scandurra created
b52a3b5
Autoscroll on paste
This also removes the `changed_selections` and moves the autoscroll request inside of `update_selections`. This is nicer because it'll force us to determine whether we want to autoscroll every time we update the selections, so that we don't forget this in the future.
Antonio Scandurra created
fc4b7e2
Introduce MouseEventHandler
Still need to give elements the ability to re-render their parent view. Once that is in place, I think we can implement hoverable close tab buttons.
Nathan Sobo created
a47b0b4
Add a mechanism for storing ephemeral values
I'll use this in the mouse event handler to track hover and click state.
Nathan Sobo created
d31f2de
Merge pull request #15 from zed-industries/rescan
Update Worktrees when the file system changes
Nathan Sobo created
f29f1b0
Preserve selected file finder path when Worktree changes
Nathan Sobo created
55fcc58
Cancel outstanding fuzzy-matching calls before starting a new one
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
09f5c7c
Fix scrollwheel events in uniformlist
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
733dc15
Ignore .git directories
Max Brunsfeld created
e7c5942
Fix handling of uppercase characters in fuzzy finding
Max Brunsfeld created
870925e
Rerender tabs when buffers' file handles change
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Nathan Sobo and Nathan Sobo created
9753e67
Update filehandle paths when renames occur
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
6535304
WIP: Start on updating file handles
Co-Authored-By: Max Brunsfeld <max@zed.dev> Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra , Max Brunsfeld , and Nathan Sobo created
111d98d
Keep ignore status up-to-date as events are processed
Antonio Scandurra created
f770a70
WIP: Maintain an IgnoreStack while scanning
All ignore files associated with ancestors of the directory currently being scanned are included in the stack. This allows us to compute ignore status for each entry as we initially scan it. If we encounter an ignored directory, we replace the stack with an "ignore all" variant that simply ignores every descendant of the ignored directory. This is incomplete. We still need to construct an ignore stack in an appropriate state when rescanning subtrees in response to events. It also doesn't deal with individual ignore files being added, removed, or changed. I think we could potentially use the ignore stack while reconstructing the tree for this purpose.
Nathan Sobo created
9cd1d5e
Avoid cloning entry in `Snapshot::entry_for_path`
Antonio Scandurra created
6a7308b
Avoid storing redundant copies of file paths
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created