yzhang-gh / vscode-dic-completion

Dictionary completion
https://marketplace.visualstudio.com/items?itemName=yzhang.dictionary-completion
MIT License
52 stars 13 forks source link

Future request: Allows to add words that start with a non-alphabetic symbol #35

Open Yarakashi-Kikohshi opened 2 years ago

Yarakashi-Kikohshi commented 2 years ago

Allows to add words that start with a non-alphabetic symbol

Note: This may be an edge case.

I have some words like @gmail.com that I want to start with something other than the alphabet. But, such words are not called by intellisense in the first place. I want these to be called by intellisense.

Words starting with @ are expected to be called from the alphabet in which @ is skipped. Like this:

Type gmail
  ↓ (Choose from intellisense)
Type @gmail.com

I don't know what kind of symbols I want to skip, but I think it would be good to skip the following symbols.

@ ( [ " ' : * .

Of course, you can do the same by creating a snippet like following. However, it is tedious to create snippets one by one for such words, so I'd like to complete it with this extension if possible.

  "Gmail domain": {
      "prefix": "gmail",
      "body": "@gmail.com",
      "description": "Gmail domain",
  },

This extension is very useful when I can't remember the spelling of a word. It is also very useful when typing a specific word. Thank you:smile:

yzhang-gh commented 2 years ago

Thank you for the suggestion.

That is an interesting feature. And I agree it is an edge case as we don't even have gmail in the dictionary 🤣.

However, it is tedious to create snippets one by one for such words

Do you have more examples of these "words"? I don't know but maybe we will reconsider this functionality in the future.

Yarakashi-Kikohshi commented 2 years ago

I'm using this extension in Markdown and LaTeX.

I wanted to set the following words.

yzhang-gh commented 2 years ago

Thanks.