From 6b598a07d95ed65e88bd55e586977a5cac058d29 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:48:33 +0100 Subject: [PATCH] chat: fix autocompletion for usernames with dash (#7514) Github usernames are allowed to contain `-`, but the autocompletion was not working correctly. We added `-` as an allowed character for markdown files. We are not aware of any completions for markdown files, so this should be fine to add. Before: ![image](https://github.com/zed-industries/zed/assets/53836821/5b456ed6-3098-48e8-90db-f5f42b4aa535) After: ![image](https://github.com/zed-industries/zed/assets/53836821/a544f465-0b68-46f5-9a15-83b4c755c3c0) Release Notes: - Fixed autocompletion for usernames with dash character in the chat message editor Co-authored-by: Remco Smits <62463826+RemcoSmitsDev@users.noreply.github.com> --- crates/zed/src/languages/markdown/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/zed/src/languages/markdown/config.toml b/crates/zed/src/languages/markdown/config.toml index 2fa3ff3cf2aba297517494cbd1f2e0608daaa402..98691a4ef73a4329a34fa745d40d0f56ebeb060e 100644 --- a/crates/zed/src/languages/markdown/config.toml +++ b/crates/zed/src/languages/markdown/config.toml @@ -1,5 +1,6 @@ name = "Markdown" path_suffixes = ["md", "mdx"] +word_characters = ["-"] brackets = [ { start = "{", end = "}", close = true, newline = true }, { start = "[", end = "]", close = true, newline = true },