Skip to content

Commit

Permalink
chat: fix autocompletion for usernames with dash (zed-industries#7514)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bennetbo and RemcoSmitsDev authored Feb 7, 2024
1 parent c1ada08 commit 6b598a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/zed/src/languages/markdown/config.toml
Original file line number Diff line number Diff line change
@@ -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 },
Expand Down

0 comments on commit 6b598a0

Please sign in to comment.