VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.77k stars 1.31k forks source link

Alfred snippet expansion not working #2845

Open wayne-huang-14 opened 6 years ago

wayne-huang-14 commented 6 years ago

Describe the bug I use the Alfred app's snippets expansion feature where if I type a search key combination, the snippet would replace the key combination typed. This works globally in any application except for VSCode with the Vim plugin enabled.

I've tried disabling the plugin and it works fine.

To Reproduce Steps to reproduce the behavior:

  1. In any line, type in the Alfred snippet keyword combination
  2. The snippet will appear but it does not appear correctly where it should completely override the key combination.
  3. For example when I type j;cl it should replace it and display console.log() but instead displays j;clconsole.lo

Screen shot of the Alfred snippet expansion feature screen shot 2018-07-16 at 11 55 27 am

Expected behavior Typing in the keyword should expand my snippet. In my example above I should get console.log() but instead I keep getting j;clconsole.lo

Environment (please complete the following information):

Additional info There is another plugin that seems to listen for key combinations and may provide more info. There is a bug listed there that is similar: https://github.com/neilsustc/vscode-markdown/issues/200#issuecomment-405007057

benhourigan commented 6 years ago

Also being discussed in https://github.com/VSCodeVim/Vim/issues/2818

ryanblock commented 5 years ago

I have also experienced this issue, and was successfully able to work around it by opening Alfred Preferences > Snippets > Auto Expansion Options > Tweaking and setting Simulated key event speed to 4/5 (the level below Faster). Still, would be nice if this was fixed!

dnszero commented 5 years ago

I have also experienced this issue, and was successfully able to work around it by opening Alfred Preferences > Snippets > Auto Expansion Options > Tweaking and setting Simulated key event speed to 4/5 (the level below Faster). Still, would be nice if this was fixed!

This workaround also worked for me. Thanks!

niksosf commented 5 years ago

@ryanblock thanks! I had to put it to slowest to work

eyanq commented 1 month ago

I have also experienced this issue, and was successfully able to work around it by opening Alfred Preferences > Snippets > Auto Expansion Options > Tweaking and setting Simulated key event speed to 4/5 (the level below Faster). Still, would be nice if this was fixed!

And your my friend is the true hero! Your solution still works in 2024.