Antonio Scandurra
d18efa7edc
Bind cmd-e to deploy FindBar without focusing it
2022-01-30 16:11:48 +01:00
Antonio Scandurra
b7d56b7e45
Propagate Cancel when editor is not in full mode
...
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.
2022-01-30 16:01:53 +01:00
Antonio Scandurra
1446f1833e
Populate query with text under selection when hitting cmd-f
2022-01-30 16:01:05 +01:00
Antonio Scandurra
c3e55b3222
Bind enter and shift-enter in FindBar
2022-01-30 15:20:57 +01:00
Antonio Scandurra
428c43d420
Show a message when no matches were found
2022-01-29 18:23:14 +01:00
Antonio Scandurra
de774e2371
Fix panic when no matches were found
2022-01-29 18:21:19 +01:00
Antonio Scandurra
e79e439ff7
Determine active match index correctly when cursor is after last match
2022-01-29 16:44:26 +01:00
Antonio Scandurra
6c636619c2
Select next/prev find match based on whether we intersect active match
...
Also, capture the next/prev selection logic in a unit test.
2022-01-29 16:16:48 +01:00
Antonio Scandurra
c022c3826a
Display active match and allow going to next or previous match
...
We still need to write a unit test for this, as well as add a keybinding.
2022-01-29 14:38:58 +01:00
Max Brunsfeld
7c33d0dfd4
WIP - Navigate to prev/next search result
2022-01-28 14:00:00 -08:00
Max Brunsfeld
981f00da33
Add a simple unit test for find bar
2022-01-28 13:05:29 -08:00
79f59ac40f
Optimize search when regex doesn't contain newlines
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-01-28 17:26:08 +01:00
Antonio Scandurra and Nathan Sobo
7aec06cffe
Implement regex search with multiline support
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-28 16:15:18 +01:00
Antonio Scandurra and Nathan Sobo
3adb1789b3
Maintain search results as query and active editor changes
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-28 15:19:58 +01:00
Antonio Scandurra
eab37caea0
Move finding results in the background
2022-01-28 12:15:55 +01:00
Antonio Scandurra
ccda42e148
Optimize some common operations when MultiBuffer is a singleton
2022-01-28 11:50:13 +01:00
Antonio Scandurra
67ac4b0bc2
Implement whole word mode
2022-01-28 11:48:04 +01:00
Nathan Sobo
7e792dd77f
A bit more progress styling find
...
Fix the pinwheel when hovering mode buttons.
2022-01-27 18:59:44 -07:00
Max Brunsfeld
d523c20027
WIP
2022-01-27 16:16:51 -08:00
Max Brunsfeld
9fb2c2cda2
Avoid panic when closing the last tab in a pane, due to calling activate_item
2022-01-27 15:38:10 -08:00
Max Brunsfeld and Nathan Sobo
ee65e56216
Highlight find matches
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 15:19:52 -08:00
Max Brunsfeld and Nathan Sobo
421cb954af
Add highlighted_ranges API to editor
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 15:19:28 -08:00
Max Brunsfeld and Nathan Sobo
f2c58f61ba
WIP - Run substring search when typing in find bar
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 13:00:51 -08:00
Max Brunsfeld and Nathan Sobo
77ac1c92f0
Inform toolbars when active item changes
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 13:00:23 -08:00
b76c7f9aab
Deploy FindBar when hitting cmd-f
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-01-27 17:56:50 +01:00
b485554e64
Take an Into<AnyViewHandle> in ChildView::new
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-01-27 17:54:45 +01:00
Antonio Scandurra
4182060386
Merge pull request #375 from zed-industries/more-project-diagnostics-styling
...
Last touches on project diagnostics for now
2022-01-27 16:47:05 +01:00
Antonio Scandurra
3bc01b54b5
Merge pull request #374 from zed-industries/fix-editor-panic
...
Fix editor panic when ending transaction that wasn't started by the same editor
2022-01-27 16:36:49 +01:00
Antonio Scandurra and Nathan Sobo
c8c3f77580
Pause cursor blinking only when editor is focused
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 16:33:47 +01:00
Antonio Scandurra and Nathan Sobo
df51f7ae0a
Show non-disk-based diagnostics in project diagnostics
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 16:23:50 +01:00
Antonio Scandurra and Nathan Sobo
9cd3e5eeac
Fix warning
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 15:55:48 +01:00
Antonio Scandurra and Nathan Sobo
2b2bf99359
Don't panic when ending transaction that wasn't started by the same editor
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 15:53:44 +01:00
Antonio Scandurra and Nathan Sobo
e8ea29213f
Avoid grouping transactions created by different editors
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-27 15:51:46 +01:00
Antonio Scandurra
34f4346530
Style empty project diagnostics state
2022-01-27 10:21:26 +01:00
Antonio Scandurra
1b21fae7fc
Merge pull request #373 from zed-industries/empty-diagnostic-message
...
Filter out supporting diagnostics that contain no messages
2022-01-27 10:12:13 +01:00
Antonio Scandurra
603ddcb7f1
Filter out supporting diagnostics that contain no messages
2022-01-27 09:51:15 +01:00
Antonio Scandurra
888f3f3a02
Merge pull request #371 from zed-industries/metal-debug
...
Add script to debug Metal frames
2022-01-27 08:56:05 +01:00
Antonio Scandurra
f1bac331b0
Add script to debug Metal frames
2022-01-27 08:51:55 +01:00
Max Brunsfeld
2630e28454
Use latest rust docker image
2022-01-26 12:54:51 -08:00
Max Brunsfeld and Nathan Sobo
505289aceb
Use new feature resolver
...
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 >
2022-01-26 12:51:29 -08:00
Max Brunsfeld and Nathan Sobo
4b081bd128
Use Rust 2021 edition in all crates
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-26 12:50:31 -08:00
Max Brunsfeld
53779b46ff
Avoid stripping newlines before opening backticks in error messages
2022-01-26 11:51:12 -08:00
Max Brunsfeld
9f2d80c4fd
Dial back opacity of border.1 in dark themes
2022-01-26 11:27:00 -08:00
Max Brunsfeld
3588e8276c
Increase diagnostic editor's vertical scroll margin
...
This way, the first path header will always be fully visible when
you move your cursor to the beginning of the multibuffer.
2022-01-26 10:23:41 -08:00
Max Brunsfeld
c165f42f71
Avoid showing selection strip on top of diagnostic headers
2022-01-26 10:23:40 -08:00
Antonio Scandurra and Max Brunsfeld
3506c564d9
Alpha-blend borders with backgrounds in quad SDF
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-01-26 19:16:26 +01:00
Antonio Scandurra and Nathan Sobo
c93762e78c
Bump the protocol version
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-26 17:42:04 +01:00
Nathan Sobo and Antonio Scandurra
42adc2cd15
Add retries to rescan test that uses the real file system
...
We could potentially use a fake file system, but this should avoid flaky tests in the short run.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-01-26 09:25:06 -07:00
Nathan Sobo
5e66481518
Merge pull request #366 from zed-industries/style-project-diagnostics
...
Style project diagnostics
2022-01-26 09:18:20 -07:00
Antonio Scandurra and Nathan Sobo
d673418d74
Style diagnostic header's border in light and dark theme
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-26 17:08:24 +01:00