07ef0d4
Bind `add_selection_{above,below}` to `cmd-alt-{up,down}`
Antonio Scandurra created
07ef0d4
Bind `add_selection_{above,below}` to `cmd-alt-{up,down}`
Antonio Scandurra created
17258d4
Add test for `add_selection_above` and `add_selection_below`
Antonio Scandurra created
6f5e47d
Add test for `BufferView::cancel`
Antonio Scandurra created
0622722
Split multi-line selection when starting a new columnar selection
Antonio Scandurra created
951aa0e
Keep only one selection when starting to add selections above/below
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
3fe6440
Rename `add_cursor_{above,below}` to `add_selection_{above, below}`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
b6449b3
Support undo of adding cursor above by adding cursor below and viceversa
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
acbda91
Empty last selection on cancel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
143c50f
Implement `cancel` for buffer
Antonio Scandurra created
0baff0c
Implement `add_cursor_above` and `add_cursor_below` for buffer
Antonio Scandurra created
af6ab27
Merge pull request #47 from zed-industries/macos-10-compat
Ensure that the bundle runs on macOS versions < 11.0
Max Brunsfeld created
f2b009e
Ensure that the bundle runs on macOS versions < 11.0
Max Brunsfeld created
76d9a40
Merge pull request #40 from zed-industries/close-window
Correctly handle closing windows and removing entities
Nathan Sobo created
2c74d75
Fix double borrow error in Window::on_close callbacks when quitting app
The simplest solution I could come up with was to make quitting the app asynchronous. Calling mac::Platform::quit enqueues a request to quit the app and then allows the call stack to fully return. This ensures we aren't holding a borrow when we quit and invoke all the Window::on_close callbacks. Seems like it should be fine to be async on quitting.
Nathan Sobo created
f3d7aa5
Merge pull request #46 from zed-industries/keyup-keystrokes
Ignore events for held-down keys after a key combo is partially released
Max Brunsfeld created
9dbda45
Ignore events for held-down keys after a key combo is partially released
Max Brunsfeld created
b292baf
Remove logging of retained views
Max Brunsfeld created
3120906
Merge branch 'master' into close-window
Max Brunsfeld created
83a844f
Fix the Clone impl for AnyViewHandle
Max Brunsfeld created
318e8ab
Avoid redundant entity refcount operations
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo , Max Brunsfeld , and Antonio Scandurra created
d8d36a3
Add emacs key bindings for up/down/left/right
Max Brunsfeld created
1c50059
Merge pull request #38 from zed-industries/new-file
Allow creating untitled buffers and saving them to new files
Nathan Sobo created
4b0bd6b
Clean up Workspace::open_entry
Max Brunsfeld created
e32b6bc
Merge branch 'master' into new-file
Max Brunsfeld created
29d44c8
Go back to using upstream core-foundation-rs
Max Brunsfeld created
3c3cf3b
Keep weak handles to workspace items
Max Brunsfeld created
98c4dc4
Merge pull request #43 from zed-industries/select-line
Implement `select_line` and `split_selection_into_lines`
Antonio Scandurra created
c7c8ec9
Merge pull request #44 from zed-industries/emit-symbols-in-release
Include debug symbols in release mode
Antonio Scandurra created
806c09b
Autoscroll when folding an arbitrary range
Antonio Scandurra created
b5f1f31
Fix focus test
Call on_focus on the root view when the window is originally created. Test dropping a focused view. Simplify test to avoid relying on emitting events. Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo and Antonio Scandurra created
8bbaa0b
Handle reversed selections correctly in `split_selection_into_lines`
Antonio Scandurra created
f85669c
Include debug symbols in release mode
Antonio Scandurra created
5f1d0b8
:lipstick:
Antonio Scandurra created
4797ccf
Implement `split_selection_into_lines` for buffer
Antonio Scandurra created
1c2f549
Don't report folds that touch the endpoints of the given range
Fold ranges are exclusive, exactly like the query ranges. So if the end of a fold coincides with the start of the query range, we shouldn't report that fold. Analogously, if the start of a fold coincides with the end of the query range, that fold shouldn't be reported.
Antonio Scandurra created
06fb4e8
Implement `select_line` for buffer
Antonio Scandurra created
cfb7c87
Merge pull request #41 from zed-industries/faster-fold-querying
Optimize querying folds
Antonio Scandurra created
6a2fe38
Verify `FoldMap::unfold` in randomized test
Antonio Scandurra created
e6323f0
Fix handling of new files with new buffer/file structure
Max Brunsfeld created
35e0eaa
Refocus root view if focused view is removed
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
5e08a02
Don't retain entities after EntityTasks are dropped
This allows us to spawn long-running tasks without leaking entities, but it also ensures that if we *do* hold on to a task, that the entity exists until the future or stream complete so that the task doesn't need to return an Option type. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
4eac765
Replace zed::watch with postage::watch for settings
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
ab10e27
Create a pending view handle before creating a view
This way, if we create and drop a handle during the creation of a view, we don't drop the view before we have a chance to increment its initial reference count. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
f408521
Gracefully handle a view being updated and removed in the same tick
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
008f2b9
Hold a WeakViewHandle in BufferElement
Otherwise, the element never goes away because the view never goes away because the element is holding a strong reference. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
290fcb4
In handle ::condition, re-poll on events as well as notifications
Max Brunsfeld created
6890a3d
Batch fold insertion
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
2c1e4ca
Merge `FoldRange` into `Fold`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
e8179f7
Always provide a context to sum tree's methods
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
65e92ac
Ignore empty folds in `FoldMap::fold`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created