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

Cursor position have strange behavior in browsers #17

Open
Masacroso opened this issue May 23, 2024 · 4 comments
Open

Cursor position have strange behavior in browsers #17

Masacroso opened this issue May 23, 2024 · 4 comments

Comments

@Masacroso
Copy link

Importing a .yml file of espanso I see that the cursor position works badly in internet browsers. The behavior that I had seen is the following: suppose that from espanso I have the substitution defined by

- trigger: sñ
  replace: \sum_{$|$}

It mean that when I type it must be replaced by the text \sum_{} with the cursor inside the brackets. However it write it as \sum_{$|$} and leave the cursor at the right of the expression. If I repeat the trigger, that is, if I write again after the first one then it repeat the same behavior but the cursor select the text $|$ of the first expression. This seems some kind of delayed recognition of the string $|$.

@lochidev
Copy link
Owner

Hey can you tell me what internet browser this is? I'll look into it soon. Sorry for the delayed response.

@Masacroso
Copy link
Author

Hey can you tell me what internet browser this is? I'll look into it soon. Sorry for the delayed response.

No problem. I tested various browsers, as I remember at least I tested some based in firefox and some others based in chrome, some names that I remember are "monocles" and "free browser", but I tested at least some other two that I doens't remember the name now.

lochidev added a commit that referenced this issue Jun 2, 2024
@lochidev
Copy link
Owner

lochidev commented Jun 2, 2024

Hi, I tested and fixed some bugs on browsers. Unfortunately firefox cannot be fixed. After the partial fix I made goes live, In chrome and brave -> search bars, a double tap would be needed for expansions to work, should work normally in the HTML body/websites, double tap required only for search bar. Samsung internet and Kiwi browsers should work perfectly. I'll publish an update tomorrow

@lochidev
Copy link
Owner

lochidev commented Jun 3, 2024

v6.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants