Skip to content
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

The candidate input method is being replaced while typing, not after typing. #1968

Open
1 task
allrobot opened this issue May 16, 2024 · 5 comments
Open
1 task
Labels
bug Something isn't working question Further information is requested

Comments

@allrobot
Copy link

Description

  - trigger: ":kbd"
    replace: "<kbd>$|$</kbd>"  

chrome_qztdvC2emz

Steps to reproduce

  1. windows10 language install chinese(china)
  2. input

Expected behavior

I want the pop-up candidate input interface, espanso won't recognize the substitution, it will wait for the input method to confirm the selected word (waiting for the candidate input method to disappear) before espanso replaces it.

Screenshots

No response

Logs

espanso.log

Your environment

  • Operating system and version (e.g., Ubuntu 20.04.2 LTS): Win10 Enterprise 21H2
  • Espanso version (e.g., 2.1.4-beta): espanso 2.1.5-beta

Self-service

  • I'd be willing to fix this bug myself.
@allrobot allrobot added the bug Something isn't working label May 16, 2024
@smeech
Copy link
Collaborator

smeech commented Jun 4, 2024

It appears Espanso is injecting the correct characters but not in the right order, and it is failing to fully delete the trigger, leaving the colon prefix.

I suggest upgrading Espanso to the current version - a lot of work has gone into making changes, and it is possible the problem has been resolved.

However, it may be necessary to try the different injection methods. I suggest trying different force_mode: settings - see Injection mechanism and https://pastebin.com/WffWaqSn.

@smeech smeech added the question Further information is requested label Jun 4, 2024
@allrobot
Copy link
Author

allrobot commented Jun 5, 2024

It appears Espanso is injecting the correct characters but not in the right order, and it is failing to fully delete the trigger, leaving the colon prefix.

I suggest upgrading Espanso to the current version - a lot of work has gone into making changes, and it is possible the problem has been resolved.

However, it may be necessary to try the different injection methods. I suggest trying different force_mode: settings - see Injection mechanism and https://pastebin.com/WffWaqSn.

Installed the latest version 2.2.1, the issue persists, but the problem was successfully resolved using the solution you provided.

Just need to add text to C:\Users\xxxxx\AppData\Roaming\espanso\config\default.yml

backend: Clipboard

It works perfectly.

chrome_rVLZ8KuErH

@allrobot allrobot closed this as completed Jun 5, 2024
@smeech
Copy link
Collaborator

smeech commented Jun 5, 2024

It works for me generally, too, although I have needed a couple of exceptions.

@allrobot
Copy link
Author

allrobot commented Jun 9, 2024

It works for me generally, too, although I have needed a couple of exceptions.

Hi, I meet new issue(It is the original problem):

notepad++_QT58Ctnuj8

or

notepad++_lqYTmfjyHB

Is there a way to make espanso not recognize the text in the input candidate area, but instead wait until the input is complete before replacing it?

Expected to achieve: While typing, it displays c'log, but once the input is complete, c'log changes to clog, and then it is replaced with console.log().

@allrobot allrobot reopened this Jun 9, 2024
@joh6nn
Copy link
Collaborator

joh6nn commented Jun 9, 2024

Unfortunately no, the current implementation of Espanso doesn't allow for that.

Having Espanso work well with all Input Methods is important, so we'll definitely see what can be done to make this work better in the future. But for the moment your only option is to name triggers in a way that makes these kinds of conflicts less likely 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants