New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Espanso issue with Visual Studio Code #544
Comments
Hey @ramonsmits, Thank you for the feedback! What OS are you using? - trigger: ":regards"
force_clipboard: true
replace: |
Regards,
Ramon Smits
Solution Architect at Particular Software Cheers :) |
I have the same issue with VS Code on Mac OS 11.1. Looks like VS Code does something weird with the input, hm? |
@bitboxer yes, VS Code is probably doing a lot under the hoods. As far as my experimentation goes, the clipboard approach is the only robust one at this point |
@federico-terzi can you make the clipboard way the default if you detect a vscode window? Adding the config to all replacements might look like overkill to me right now. |
@bitboxer Yes, you can setup an app specific configuration for VS Code, including also this line:
Cheers :) |
I tried this:
filter_title: "Visual Studio Code"
backend: Clipboard That, unfortunately, doesn't work. |
@ramonsmits That's unfortunate! Most likely, that's due to a small misconfiguration. A couple of questions:
Cheers :) |
I'm also working on a refactor to automatically include a patch when appropriate, though it will take a while |
@federico-terzi I first had it in ok, now I have:
filter_exec : Code.exe
backend: Clipboard The above is everything I have in that file. This is not working. |
@federico-terzi I'm sorry about that! I've tested the previous configuration and it's working for me. Perhaps, we need to slow down the backspace injection a bit. Could you please try changing the vscode.yml file as: name: vscode
filter_exec: "Code.exe"
backend: Clipboard
backspace_delay: 10 Also trying to experiment with the value of Let me know if that helps! |
@federico-terzi That sort of works, the value FYI, my current config name: vscode
filter_exec: "Code.exe"
backend: Clipboard
backspace_delay: 12 |
Can confirm, 12 is also working for me on my mac. Thanks for the fast reaction here ❤️ |
@ramonsmits @ramonsmits Thank you guys! I'll make sure to include this patch automatically as part of #310 |
@federico-terzi unfortunately I still cannot make esperanso work with VSCode on MacOS. My config looks like: name: vscode
filter_title: VSCode
backend: Clipboard
backspace_delay: 12
matches:
- trigger: ":sth"
replace: "random string" and when I type in I use Vim mode in VSCode, but after turning it off there were also similar issues (the output could be a slightly different though). |
Hey @jaklan, Thank you for experimenting with that solution! If having very high values of
If even this one does not work, you might need to find a good filter following this section (under "Finding the right filters"): https://espanso.org/docs/configuration/#application-specific-configurations Cheers :) |
@federico-terzi I can experiment with that a bit more, but in general - the filter seems to work, because the |
I see, yes, filters might be working correctly then... |
I would like to highlight that I also have this issue, on MacOS 11.3.1, using VSCodium.
The behaviour is erratic; when typing ":sth" sometimes I get the correct strings other times not really. I've played a bit with filter_title as well, without major changes. I've tried backend "Inject", and it got worst. I really appreciate any help anyone can provide. |
@doctorboyMP @jaklan Thank you guys, I've moved it to a separate discussion: #675 |
I have this issue and none of the solutions worked for me. My config files are synced (on G Drive) and Espanso reads the base config file correctly. But I also created a
Tried using different identifiers such as I followed your advice to type
|
Replacements do not seem to work well with Visual Studio Code.
Config:
The text was updated successfully, but these errors were encountered: