zaaack / vscode-markdown-editor

A vscode extension to make your vscode become a full-featured WYSIWYG markdown editor
https://marketplace.visualstudio.com/items?itemName=zaaack.markdown-editor
MIT License
361 stars 48 forks source link

Snippets get auto-expanded when they shouldn't #62

Open augustebaum opened 2 years ago

augustebaum commented 2 years ago

Hi,

Thanks very much for this plugin, it makes editing in markdown really fun! Nonetheless I have a problem with it that is kind of a deal-breaker.

On MacOS (and I assume on other OSes) you can define snippets to write long words or expressions more quickly (for example min could get expanded to minute). Again on MacOS, in many apps this feature is not active (e.g. in the terminal), and when it is (e.g. in the native Notes or Email client apps) the expansion only happens when the snippet is followed by a word boundary, like a space or a newline.

However, when editing a markdown file with this plugin, the snippets get expanded even when they are followed by a letter. So for example, if you typed the characters forming the word minimum, you would end up with the word minutesimum, which is super annoying. This doesn't happen when editing a markdown file in basic VSCodium.

Unfortunately I have a bunch of these snippets, and they are mapped to fairly frequent character sequences. This makes the plugin close to unusable, as every other word I type gets jumbled this way.

I hope this was clear enough. Is there anything I can do to help?

Thanks for your attention.