Antonio Scandurra
0db9e702b8
Support assistant: quote selection on multibuffers
2023-07-05 11:41:24 +02:00
Antonio Scandurra
4b58f2b8dd
Restore focus to previously focused view when dismissing a modal
2023-07-05 09:40:26 +02:00
Antonio Scandurra
194bf772be
Add Modal::has_focus and introduce a ModalHandle trait object
2023-07-05 09:39:56 +02:00
Antonio Scandurra
1d1a52dea4
Introduce a WindowContext::focus method that implies the window id
2023-07-05 09:39:04 +02:00
Nate Butler
00e0cfc80a
Update collaboration sounds, add sounds to screensharing
2023-07-04 16:18:42 -04:00
KCaverly
58bbbefc75
updated vector_store to reindex on save after timed delay
2023-07-04 14:42:12 -04:00
Kirill Bulatov and Mikayla Maki
7b2aaa20d8
Accept null as a valid action, to disable a keystroke
...
co-authored-by: Mikayla Maki <mikayla@zed.dev >
2023-07-04 21:11:28 +03:00
KCaverly
0355d0230d
WIP: initial reindexing logic worked out
2023-07-04 11:46:09 -04:00
Piotr Osiewicz
c4de04454f
Remove PickerEvent::Dismiss emission from picker header
2023-07-04 16:30:17 +02:00
Piotr Osiewicz
833ed41fa8
Fix click behaviour of vcs/project dropdowns
2023-07-04 16:00:59 +02:00
Conrad Irwin
373c6bd9be
vim: Further improve ~ handling
...
Now works with Visual{line} mode, collapses selections like nvim,
and doesn't fall off the end of the line.
2023-07-03 23:58:09 -06:00
Nate Butler
5d7f524850
Remove unused color_scheme field in the theme
...
I totally didn't mean to commit this right to main T_T
2023-07-04 00:44:12 -04:00
Nate Butler
3cba06098b
Revert "Remove unused color_scheme field in the theme"
...
This reverts commit c10e08d014 .
2023-07-04 00:41:13 -04:00
Nate Butler
c10e08d014
Remove unused color_scheme field in the theme
2023-07-04 00:40:01 -04:00
Conrad Irwin
97d1701e1c
Remove editor::Cancel binding from vim
...
When you hit <escape> in the command palette, it first editor::Cancel
because the command palette is also a focused editor; this binding was
catching before the `menu::Cancel` that you probably want.
From looking at the uses of editor::Cancel it seems like the only way to
trigger this is with <escape> in an editor. Rather than trying to hook
into the existing editor cancel and add vim-specific behaviour, we'll
instead take responsibility for binding directly to <escape> when
necessary.
Fixes : zed-industries/community#1347
2023-07-03 15:26:39 -06:00
Mikayla Maki
40a79d8eb6
Add sound effects to calls ( #2673 )
...
This PR adds joined, leaving, mute, and unmute sound effects to Zed.
Release Notes:
- Added joined, leaving, mute, and unmute sound effects (preview-only)
2023-07-03 13:55:48 -07:00
Mikayla Maki
dbe2e418eb
Guard against uninstantiated globals in tests
2023-07-03 13:48:17 -07:00
Mikayla Maki
beb97e49c7
Add joined sound effect when new participants join the room
2023-07-03 13:36:03 -07:00
Mikayla Maki
0710451b93
Add first-pass sound support to Zed
2023-07-03 13:30:04 -07:00
Piotr Osiewicz
c8f902715c
branch list: dismiss correct window on PickerEvent.
...
Query proper window
2023-07-03 19:22:43 +02:00
Piotr Osiewicz
a66ff10080
Merge branch 'main' into git-menu
2023-07-03 16:25:36 +02:00
Kirill Bulatov and Julia Risley
8f34330c6d
Do not perform OnTypeFormating after pair brace insert
...
Co-Authored-By: Julia Risley <julia@zed.dev >
2023-07-03 17:21:44 +03:00
Piotr Osiewicz
665e95c55f
Remove flex from underneath the pickers
2023-07-03 16:16:14 +02:00
Kirill Bulatov
a66f2a8be9
Do not add extra spaces to hints
2023-07-03 11:17:12 +03:00
Conrad Irwin
f11eaf983c
Fix % when on the last character of the line
...
Contributes: zed-industries/community#682
2023-07-01 13:51:11 -06:00
Piotr Osiewicz
9580f67e6e
Dismiss dropdowns on click out
2023-07-01 01:49:00 +02:00
Piotr Osiewicz
dfe2ec31bf
Render match count next to branch label
2023-07-01 01:38:36 +02:00
Mikayla Maki
99894d922c
Add basic sound handling infrastructure
2023-06-30 16:10:49 -07:00
KCaverly and maxbrunsfeld
5c0ef44a23
moved semantic search model to dev and preview only.
...
moved db update tasks to long lived persistent task.
Co-authored-by: maxbrunsfeld <max@zed.dev >
2023-06-30 18:41:19 -04:00
KCaverly and maxbrunsfeld
6c5bad6a13
updated file compare in the semantic indexing engine, to work off of modified system times as opposed to file hashes
...
Co-authored-by: maxbrunsfeld <max@zed.dev >
2023-06-30 16:53:23 -04:00
KCaverly and maxbrunsfeld
551809b8f1
updated vector store indexing to only use languages with an embedding.scm treesitter query
...
Co-authored-by: maxbrunsfeld <max@zed.dev >
2023-06-30 16:14:11 -04:00
Kirill Bulatov
1a5f3c1991
Remove excessive hint update queries
...
* Filter out queries for outdated buffers just before hint tasks spawn:
multicared edits might empit standalone events simultaneously
* Only spawn inlay update tasks for visible buffers with corresponding
language
* Do not spawn tasks for local projects' buffers without LSP servers
2023-06-30 22:03:21 +03:00
Max Brunsfeld
c57609f656
Fix regression in handling git FS events ( #2670 )
...
As part of an optimization in
https://github.com/zed-industries/zed/pull/2663 , I changed the way that
the worktree ignores FS events within unloaded directories. But this
accidentally prevented us from detecting some events that occur inside
of `.git` directories.
In this PR, I've made further tweaks to which FS events we can ignore.
We now explicitly opt *in* to scanning `.git` (shallowly) directories
(even though they are ignored). Note that we still don't recursively
scan the git directory (including all of the files inside `objects`
etc). This seems like the correct amount of work to do, and from my
testing (and our unit tests that use the real FS and real git
repositories), it seems to work correctly.
Release Notes:
- Fixed a bug where Zed would not detect some git repository changes
(preview only).
2023-06-30 11:40:49 -07:00
Max Brunsfeld
a7fc19a618
Fix accidental ignoring of git FS events
2023-06-30 11:20:50 -07:00
Piotr Osiewicz
c96d7dd8b9
Add missing rust-side definitions
2023-06-30 20:09:30 +02:00
Piotr Osiewicz
49fe2dffd2
Add styles for project name/git menu
2023-06-30 20:07:44 +02:00
Piotr Osiewicz
fc0b3af10c
Focus dropdowns on open
2023-06-30 19:48:28 +02:00
KCaverly
a37e404c1d
implemented file deletes on project indexing
2023-06-30 11:01:35 -04:00
Piotr Osiewicz
748d966b9d
Improve styling of git menu
2023-06-30 16:38:38 +02:00
Piotr Osiewicz
afa9eeb3c5
Add styles to git menu
2023-06-30 16:23:27 +02:00
KCaverly
c0ba76babf
removed sleep from directory scanning as fixes upstream appear to be scanning correctly
2023-06-30 10:17:31 -04:00
KCaverly
c57fb5fd33
Merge branch 'main' of github.com:zed-industries/zed into vector_store
2023-06-30 09:58:13 -04:00
Piotr Osiewicz
77f595d98c
Switch branches within spawn()
2023-06-30 14:05:55 +02:00
Piotr Osiewicz
b53e9e2e4e
Add missing call to cx.notify
2023-06-30 14:05:55 +02:00
Piotr Osiewicz and Mikayla
d38a93bbb5
Do not query db on foreground thread.
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-06-30 14:05:55 +02:00
Piotr Osiewicz
d33d6377e0
Make project dropdown exclusive wrt git menu
2023-06-30 14:05:55 +02:00
Piotr Osiewicz
de2a7c34d7
Project dropdown menu
2023-06-30 14:05:55 +02:00
Piotr Osiewicz
9a20f6ac23
Fix warning about unused variable
2023-06-30 14:05:55 +02:00
Piotr Osiewicz
45b6a798f3
Update toast for checkout failure
2023-06-30 14:05:55 +02:00
Piotr Osiewicz
3dcb6ee47f
Trail off project/branch name
2023-06-30 14:05:55 +02:00