7d119dc
Select first match when results are ready
Nathan Sobo created
7d119dc
Select first match when results are ready
Nathan Sobo created
7831979
Fix warning
Nathan Sobo created
64d2292
Implement navigation between project search matches
Nathan Sobo created
7ef98fb
Make versions oldest_selection and newest_selection that don't require snapshots
I thought I needed this but actually didn't, but I still kinda think it's a good change for the public interface of Editor.
Nathan Sobo created
19b5de2
Introduce ProjectSearchView constructor
We had some duplication when cloning on split, so this is to unify that before we add any more complexity to construction.
Nathan Sobo created
dabb17a
Clone editor's searchable state on split
Nathan Sobo created
136699e
Add log dependency in search crate
Nathan Sobo created
c7338eb
:lipstick:
Nathan Sobo created
039765b
Limit project search tab label to 24 characters
I'd love to fade the text out, but for now I just append an ellipsis.
Nathan Sobo created
ec31715
Rename "find" to "search"
Search is both a verb and a noun, which makes it more natural to use in situations where we need to name a thing rather than a process.
Nathan Sobo created
dd6f8d2
Remove carriage returns
Nathan Sobo created
28b71cb
Select query when focusing query editor
Also: Clear the selection when we focus the results editor because we continue to render the selection even when the editor isn't focused and it looks awkward. Another approach we could take is to not render selections for non-focused editors, either always or with an option. But considering that we select all anyways next time we return focus to the query editor, I think this is ok for now.
Nathan Sobo created
e96d0a9
Activate the *newest* existing project find view on cmd-shift-F
Nathan Sobo created
2f42776
Allow a new search to be created with cmd-enter
This replaces the `cmd-alt-shift-F` binding to open a new search. Instead, you can preserve the existing search results by entering a query and then hitting `cmd-enter` instead of `enter`. This opens a new project find view and restores the previous view to whatever query it was previously displaying. It's a bit strange, but I don't want to rely on splitting as the only way of creating multiple sets of search results.
Nathan Sobo created
ae1a46a
Render a magnifier icon and the query in project search tab
Also: Wire up events so the modified status updates correctly.
Nathan Sobo created
a78fe4e
Don't focus results editor on `cmd-shift-f` when there are no results
Antonio Scandurra created
afea5a3
:art:
Antonio Scandurra created
f6b7cbd
Always open a new project find on `alt-cmd-shift-F`
Nathan Sobo created
60710fa
Only store one nav history entry when opening excerpts
Also: Introduce the ability to disable and enable the nav history directly. This allows us to explicitly push an entry when opening excerpts and then disable all pushes as we open individual buffers.
Nathan Sobo created
7212589
Open excerpts on alt-enter
Also: Remove special handling for alt-shift-D binding in diagnostics view that opens excerpts. Rely on alt-enter in all multi-buffers instead. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
dea40c5
Don't show buffer search UI on ProjectSearchView
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
ed6c8b1
Allow actions to be propagated from nested ViewContexts
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
d5cc3fe
Implement Debug for keymap::MatchResult
Helpful when debugging issues with keystroke dispatch. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
92f411f
Extract generic forward_project_request function on server
All these methods did the same thing with different message types. Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
e822c6a
Handle project-wide search on guests
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo and Max Brunsfeld created
1278f54
Add project search RPC messages
Max Brunsfeld created
8dce91b
Upgrade time crates to silence warning on Rust 1.59
Max Brunsfeld created
9a97588
Eliminate RwLock around LanguageServer's outbound message channel
We observed a deadlock when quitting zed. The main thread was attempting to acquire a write lock to this outbound message sender. We weren't able to understand exactly how this occurred, but we removed the use of a lock there, so this shouldn't happen anymore. Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld and Antonio Scandurra created
368301f
Reuse a previous project find whenever possible
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra and Max Brunsfeld created
e278c42
Don't assume that cloning on split will reuse the same underlying model
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra and Max Brunsfeld created
7123407
Don't share query editor state after project find has been split
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
1e04411
Don't focus query editor if there are matches on tab switch
Antonio Scandurra created
b506db7
Use the new split pane's navigation history when cloning an item
Antonio Scandurra created
88bfe5a
Allow splitting project find and maintain the searches in sync
Antonio Scandurra created
29e035a
Don't report a buffer when it doesn't contain any matches
Antonio Scandurra created
2611b54
Always `sync` before clearing or removing excerpts from `MultiBuffer`
We don't have any test that proves this is needed but seems good nonetheless.
Antonio Scandurra created
ff0fa0e
Gracefully handle passing an empty set of ranges to `push_excerpts`
Antonio Scandurra created
f649074
Refine project find's UX
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
51c645f
Toggle focus between query editor and results on cmd-shift-F
Nathan Sobo created
2147db9
Open searched buffers in parallel
Antonio Scandurra created
5be9304
Focus results editor when project find matches are updated
Antonio Scandurra created
561123d
Avoid extra `smol::channel` when iterating through snapshot paths
Antonio Scandurra created
6a0cca7
Add a fast path for when the search query is empty
Antonio Scandurra created
a077210
Focus query editor when deploying project-find
Antonio Scandurra created
7aacb63
Respect field editor background, color and selection styling
Antonio Scandurra created
0bf944e
Use `Project::search` in `ProjectFind` and show search results
Antonio Scandurra created
5644336
Merge branch 'main' into project-find
Max Brunsfeld created
fb1103e
Merge pull request #482 from zed-industries/c-support
Add C support with clangd
Max Brunsfeld created
826a458
Merge pull request #492 from zed-industries/editor-settings
Provide editor styling information separately from editor settings
Max Brunsfeld created
47b6540
Provide editor styling information separately from editor settings
* Since regular editors' font sizes and families are controlled by the settings and not the theme, don't store a dummy text style in the theme. Instead, only store a font color, and synthesize the text style for regular editors using both the theme and the settings. * Style single-line and auto-height editors (now called "field editors") using a single function that takes the entire theme and selects a relevant sub-object. Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created