Commit log
ce52704
Propagate `Cancel` when editor is not in full mode
Click to expand commit body
This is consistent with what VS Code and Sublime Text do and allows the user to
perform only one keybinding to e.g. dismiss the find bar when the query is
(partially) selected.
Antonio Scandurra
created
4 years ago
c53b6b9
Populate query with text under selection when hitting `cmd-f`
Antonio Scandurra
created
4 years ago
2a1b1ad
Bind `enter` and `shift-enter` in `FindBar`
Antonio Scandurra
created
4 years ago
e8105c9
Show a message when no matches were found
Antonio Scandurra
created
4 years ago
c16bd98
Fix panic when no matches were found
Antonio Scandurra
created
4 years ago
969d81b
Determine active match index correctly when cursor is after last match
Antonio Scandurra
created
4 years ago
df4cc45
Select next/prev find match based on whether we intersect active match
Click to expand commit body
Also, capture the next/prev selection logic in a unit test.
Antonio Scandurra
created
4 years ago
1d55872
Display active match and allow going to next or previous match
Click to expand commit body
We still need to write a unit test for this, as well as add a keybinding.
Antonio Scandurra
created
4 years ago
5ebd24d
:memo: Improve assertion comment
Antonio Scandurra
created
4 years ago
a284e71
Always return valid locations when refreshing anchors
Click to expand commit body
Specifically, with this commit:
- We will now refresh the anchor if it escapes the boundaries of the excerpt by
using the `Excerpt::contains` method. This was not the case before, as we were
just checking if the excerpt id and buffer id of the anchors matched the ones
stored on the excerpt.
- We fixed a bug that was causing the anchor to be outside of the excerpt when
resetting it to one of the excerpt's endpoints after we couldn't keep its
position. This would happen because we were using `anchor_at`, which resolved
the anchor to an offset first and then converted it back into an anchor with
the given bias, which is a lossy operation. We now use `Anchor::bias` to
achieve the same goal: note that this could still lead to the anchor escaping
the excerpt's boundary when the bias doesn't match the endpoint's bias, so we
take extra care to avoid that and `min`/`max` the newly-produced anchor with
the other endpoint.
Antonio Scandurra
created
4 years ago
2d6e348
Prevent anchors from escaping their excerpt's range when resolving them
Click to expand commit body
This could happen if an anchor was created on an excerpt with a larger range.
Then, if the excerpt was removed and added back at the same position and with
the same buffer but a smaller range, resolving the anchor could overshoot
the excerpt's boundaries.
Antonio Scandurra
created
4 years ago
5c7cea5
WIP - Navigate to prev/next search result
Max Brunsfeld
created
4 years ago
7e02d66
Add a simple unit test for find bar
Max Brunsfeld
created
4 years ago
bfaeefc
Merge pull request #376 from zed-industries/bump-rust-analyzer
Click to expand commit body
Bump rust-analyzer to the 2022-01-24 release
Max Brunsfeld
created
4 years ago
be7f534
Adjust hover assertion in lsp test after bumping rust-analyzer
Max Brunsfeld
created
4 years ago
e1c12ff
Bump rust-analyzer to the 2022-01-24 release
Antonio Scandurra
created
4 years ago
d2a64f2
Optimize search when regex doesn't contain newlines
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
4 years ago
5b9d791
Implement regex search with multiline support
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
5c862bf
Maintain search results as query and active editor changes
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
860e37d
Move finding results in the background
Antonio Scandurra
created
4 years ago
b2ded5b
Optimize some common operations when `MultiBuffer` is a singleton
Antonio Scandurra
created
4 years ago
b980b11
Implement whole word mode
Antonio Scandurra
created
4 years ago
df1810a
A bit more progress styling find
Click to expand commit body
Fix the pinwheel when hovering mode buttons.
Nathan Sobo
created
4 years ago
Max Brunsfeld
created
4 years ago
4f0ffdc
Avoid panic when closing the last tab in a pane, due to calling `activate_item`
Max Brunsfeld
created
4 years ago
3abd7bc
Highlight find matches
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
34ed734
Add highlighted_ranges API to editor
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
d8e4464
WIP - Run substring search when typing in find bar
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
05e20ca
Inform toolbars when active item changes
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
bebde78
Deploy `FindBar` when hitting `cmd-f`
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
4 years ago
e7d4c38
Take an `Into<AnyViewHandle>` in `ChildView::new`
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
4 years ago
dbf48d2
Merge pull request #375 from zed-industries/more-project-diagnostics-styling
Click to expand commit body
Last touches on project diagnostics for now
Antonio Scandurra
created
4 years ago
24d1d2a
Merge pull request #374 from zed-industries/fix-editor-panic
Click to expand commit body
Fix editor panic when ending transaction that wasn't started by the same editor
Antonio Scandurra
created
4 years ago
3853826
Pause cursor blinking only when editor is focused
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
37032f5
Show non-disk-based diagnostics in project diagnostics
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
41ec464
Don't panic when ending transaction that wasn't started by the same editor
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
f055053
Avoid grouping transactions created by different editors
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
4 years ago
4d9cdd4
Style empty project diagnostics state
Antonio Scandurra
created
4 years ago
adf00fa
Merge pull request #373 from zed-industries/empty-diagnostic-message
Click to expand commit body
Filter out supporting diagnostics that contain no messages
Antonio Scandurra
created
4 years ago
3e4fe09
Filter out supporting diagnostics that contain no messages
Antonio Scandurra
created
4 years ago
dc95cd9
Merge pull request #371 from zed-industries/metal-debug
Click to expand commit body
Add script to debug Metal frames
Antonio Scandurra
created
4 years ago
7b2f55f
Add script to debug Metal frames
Antonio Scandurra
created
4 years ago
2749001
Use latest rust docker image
Max Brunsfeld
created
4 years ago
c054e4c
Use new feature resolver
Click to expand commit body
This fixes a build failure on linux because gpui was being spuriously
included as a dependency of zed-server, due to its presence as an
optional dependency in the rpc crate.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
0e55f0c
Use Rust 2021 edition in all crates
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
4 years ago
509d362
Avoid stripping newlines before opening backticks in error messages
Max Brunsfeld
created
4 years ago
f1d6211
Dial back opacity of border.1 in dark themes
Max Brunsfeld
created
4 years ago
76bbd10
Increase diagnostic editor's vertical scroll margin
Click to expand commit body
This way, the first path header will always be fully visible when
you move your cursor to the beginning of the multibuffer.
Max Brunsfeld
created
4 years ago
9b9fcf6
Avoid showing selection strip on top of diagnostic headers
Max Brunsfeld
created
4 years ago
Page 7 of 59