Commit Graph
25009 Commits
Author SHA1 Message Date
Conrad Irwin 3a1846689c Fix infinite loop in select all 2023-10-23 16:08:12 +02:00
Nate ButlerandMikayla Maki 2433297d52 Start scaffolding out the Copilot Modal UI
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-10-23 10:00:02 -04:00
Nathan Sobo 0b389e04d3 Position drag handle relative to cursor 2023-10-23 15:20:33 +02:00
Nathan Sobo 5c72f549e6 Checkpoint 2023-10-23 15:14:10 +02:00
Nathan Sobo e82f55e7b3 Show red box when dragging 2023-10-23 15:09:22 +02:00
Max Brunsfeld ef5933c480 Add chat mentions and a notifications panel (#3121)
### Todo

* Displaying notifications
    * [x] show them in panel
    * [x] indicate read/unread status
    * [x] allow requesting more by scrolling down
    * [ ] style the panel
    * [x] style the status bar icon
* Chat mentions
    * [x] highlight mentions when editing message
    * [x] persist mentions
    * [x] highlight mentions when rendering saved messages
* Creating notifications
    * [x] contact request received
    * [x] contact request accepted
    * [x] channel invitation received
    * [x] mentioned in a chat message
* [x] Indicate responses to notifications
* Mark notifications as read
* [x] when viewing a contact request acceptance in the notification
panel
    * [x] responding to contact invite
    * [x] responding to channel invite
    * [x] viewing a channel message mention
* [x] Replace previous notifications with auto-dismissing,
non-interactive toasts

### Release Notes:

- Added a notification panel, which displays notifications about contact
requests and channel invitations.
- Added the ability to `@`-mention users in the chat, so that they will
be notified of your message.
2023-10-23 15:05:05 +02:00
Antonio Scandurra d7bc36d2a1 WIP 2023-10-23 14:59:57 +02:00
Max BrunsfeldandPiotr 826aa2f4ad Tweak styling of notifications
Co-authored-by: Piotr <piotr@zed.dev>
2023-10-23 14:58:03 +02:00
Max BrunsfeldandPiotr 1330f0fc60 Format timestamps more tersely in the notification panel
Co-authored-by: Piotr <piotr@zed.dev>
2023-10-23 14:34:38 +02:00
Nathan Sobo cb3ab05748 Checkpoint 2023-10-23 14:15:12 +02:00
KCaverly ccb1022bd9 move embedding truncation to base model 2023-10-23 14:07:45 +02:00
Max BrunsfeldandPiotr d0cc5bf0ac Avoid flickering toast when mentioned in already-visible chat channel
Co-authored-by: Piotr <piotr@zed.dev>
2023-10-23 13:48:49 +02:00
Piotr OsiewiczandMax 88e617c9d5 Account for markdown styling in mentions offset calculation.
This also means that we can support smart punctuation.

Co-authored-by: Max <max@zed.dev>
2023-10-23 12:50:57 +02:00
Antonio Scandurra 5034a5bf7f WIP 2023-10-23 12:16:33 +02:00
Antonio Scandurra 7861f1f936 WIP 2023-10-23 11:53:24 +02:00
Antonio Scandurra 83413aad6f WIP 2023-10-23 11:43:08 +02:00
Nathan Sobo c0d03f5f69 Fix runtime errors 2023-10-23 11:34:35 +02:00
Antonio Scandurra 1ee7402744 Checkpoint 2023-10-23 11:06:58 +02:00
Antonio Scandurra 72103622e7 Checkpoint 2023-10-23 10:59:29 +02:00
Conrad Irwin 3227c45af6 Fix neovim tests with angle brackets 2023-10-22 22:24:35 -06:00
Conrad Irwin 70441d86fe Add | as a bracket and a motion
Although vim/nvim doesn't have | as brackets, it's common in langauges like Rust
and Ruby, and I expect it to work.
2023-10-22 22:17:34 -06:00
Conrad Irwin 92e91e5b45 Fix some bugs with vim objects
- softwrap interaction
- correct selection if cursor is on opening marker
2023-10-22 21:44:34 -06:00
Antonio Scandurra 2a0c083d00 WIP 2023-10-22 19:56:25 +02:00
Antonio Scandurra 467494834f Checkpoint 2023-10-22 18:56:11 +02:00
Antonio Scandurra 35d9105e48 Checkpoint 2023-10-22 18:34:45 +02:00
Antonio Scandurra 96f7b2233f Checkpoint 2023-10-22 18:25:24 +02:00
Antonio Scandurra af4ee5b79a WIP 2023-10-22 18:01:00 +02:00
Max Brunsfeld e37f00c6cd Avoid duplicate acks for messages with mentions 2023-10-22 18:00:02 +02:00
Max Brunsfeld ab38098989 Load more notifications when scrolling down 2023-10-22 17:10:21 +02:00
Antonio Scandurra 8b9a00e097 WIP 2023-10-22 16:53:59 +02:00
Antonio Scandurra 2948362b60 WIP 2023-10-22 16:49:14 +02:00
Antonio Scandurra 91e0f554e1 WIP 2023-10-22 16:36:29 +02:00
Antonio Scandurra b973234da7 WIP 2023-10-22 16:33:59 +02:00
Antonio Scandurra f121e83c1f WIP 2023-10-22 16:27:23 +02:00
Max Brunsfeld 03b25e2d27 Start styling notification panel 2023-10-22 16:03:33 +02:00
Max Brunsfeld 7f4b328bac Inherit PATH in zed-local script 2023-10-22 16:03:13 +02:00
KCaverly 356ae09456 add base model to EmbeddingProvider, not yet leveraged for truncation 2023-10-22 15:00:09 +02:00
KCaverly 9a5d426c8d move OpenAIEmbeddings to OpenAIEmbeddingProvider in providers folder 2023-10-22 14:46:22 +02:00
KCaverly ca16c6d7d1 replace OpenAIRequest with more generalized Box<dyn CompletionRequest> 2023-10-22 14:33:19 +02:00
KCaverly c90c5279f9 move OpenAICompletionProvider to providers location 2023-10-22 13:57:13 +02:00
KCaverly 49009911fe move OpenAILanguageModel to providers folder 2023-10-22 13:47:28 +02:00
KCaverly 6d25d70456 rename templates to prompts in ai crate 2023-10-22 13:46:49 +02:00
KCaverly f15fb983ea cleaned up truncate vs truncate start 2023-10-22 13:34:22 +02:00
Antonio Scandurra 7b0d053363 WIP 2023-10-22 13:15:29 +02:00
Max Brunsfeld 5d1e917401 Merge branch 'main' into notifications 2023-10-22 12:25:30 +02:00
Max Brunsfeld e879c28daf Mark contact acceptance notifications as read automatically 2023-10-22 12:22:47 +02:00
Antonio Scandurra b18b19a846 WIP 2023-10-22 12:21:28 +02:00
Max Brunsfeld cee43e1a60 Mark chat mention notifications as read when viewing the message 2023-10-22 11:57:10 +02:00
Nathan Sobo dc2b48010a Checkpoint 2023-10-21 19:07:59 +02:00
Nathan Sobo 32d4076180 Checkpoint 2023-10-21 18:48:30 +02:00