lochidev / TextToolsPro

Text expander for android - with espanso config import/export
Other
105 stars 6 forks source link

Cursor position have strange behavior in browsers #17

Open Masacroso opened 1 month ago

Masacroso commented 1 month ago

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 commented 1 month ago

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

Masacroso commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

v6.9