Support emoji shortcodes in chat (#8455)

Completes: https://github.com/zed-industries/zed/issues/7299

Suggestions


https://github.com/zed-industries/zed/assets/53836821/2a81ba89-4634-4d94-8370-6f76ff3e9403

Automatically replacing shortcodes without using the completions (only
enabled when `message_editor` > `auto_replace_emoji_shortcode` is
enabled in the settings):


https://github.com/zed-industries/zed/assets/53836821/10ef2b4b-c67b-4202-b958-332a37dc088e






Release Notes:

- Added autocompletion for emojis in chat when typing emoji shortcodes
([#7299](https://github.com/zed-industries/zed/issues/7299)).
- Added support for automatically replacing emoji shortcodes in chat
(e.g. typing "👋" will be converted to "👋")

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Bennet Bo Fenner 2024-03-07 03:18:29 +01:00 committed by GitHub
parent c0edb5bd6c
commit 8be4b4d75d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 338 additions and 30 deletions

11
Cargo.lock generated
View file

@ -2301,6 +2301,7 @@ dependencies = [
"collections",
"db",
"editor",
"emojis",
"extensions_ui",
"feedback",
"futures 0.3.28",
@ -3281,6 +3282,7 @@ dependencies = [
"copilot",
"ctor",
"db",
"emojis",
"env_logger",
"futures 0.3.28",
"fuzzy",
@ -3349,6 +3351,15 @@ dependencies = [
"zeroize",
]
[[package]]
name = "emojis"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ee61eb945bff65ee7d19d157d39c67c33290ff0742907413fd5eefd29edc979"
dependencies = [
"phf",
]
[[package]]
name = "encode_unicode"
version = "0.3.6"