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

Doesn't expand triggers when there is text after #38

Closed
beethovn1204 opened this issue Dec 8, 2024 · 3 comments
Closed

Doesn't expand triggers when there is text after #38

beethovn1204 opened this issue Dec 8, 2024 · 3 comments

Comments

@beethovn1204
Copy link

beethovn1204 commented Dec 8, 2024

Device: Pixel 4a running Android 13
Version: V6.9.1 and onwards

Hi! The app is amazing! Here are the bugs I'm facing:

  1. When I type a trigger between two words, it won't replace it.
    I think it may be due to Unintended expansion when editing or pasting text. #22 - only the last word of the line being replaced (and it matches the version in which it was implemented).

For example:
"something something" -> "something fù something", on version 6.4 to 6.9 would expand to "something \frac{}{} something", but on 6.9.1 and 7.0.0 it won't expand unless I type fù at the end of the line : "something fù something " + "fù " will expand to "something \frac{}{} something \frac{}{} ".
If I type "something fù something sù " it will expand to "something fù something \sum_{}^{} " as expected (doesn't change the fù as it is already typed)

  1. In AnkiDroid, when I type a trigger, the cursor is sent to the end of the line.
    Since I use the app to type latex faster, it's a bit repetitive to have to place the cursor back to where it was when I change something in the middle of the formula. (I know I can define custom operators in latex but it doesn't work with my use case).
    Btw Anki recently updated to 24.11 (one of the biggest updates ever) and devs have said there is going to be no big changes in the near future so now is a good time to make the app compatible with it!

Thank you again for this wonderful app, as a fellow science student it allows me to type my flashcards a lot faster!
Have a good day

@DeMoN100
Copy link

Just to confirm I tried to replicate & I have the same results. Using the trigger word inbetween two words will not replace the trigger word.

@lochidev
Copy link
Owner

Great catch! I'll try to fix it. Sorry for the late response, was very very busy.

@lochidev
Copy link
Owner

Let me know if v7.1.0 fixes this!

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

3 participants