trgkanki / remaining_time

GNU Affero General Public License v3.0
18 stars 3 forks source link

Unable to use Hint Hotkeys Addon with Remaining Time plugin #2

Closed AnkiCollabUTMC closed 4 years ago

AnkiCollabUTMC commented 4 years ago

Hint hotkeys is an addon used with with the anking medical school anki deck [https://ankiweb.net/shared/info/1844908621]

H reveals one hint and G reveals all hints.

Unfortunately the hotkey to reset progress/remaining time is also H on your addon.

Could you add a way to change the hotkey for resetting the remaining time?

phu54321 commented 4 years ago

Update: Will check at 04/05 (I'm kinda busy now...)

phu54321 commented 4 years ago

This is an issue of hint hotkeys addon. Anyway here's a temporary fix. You can modify RemainingTime.py in the addons folder.

        barEl.html("{message} &nbsp; <a href=# onclick=\\"pycmd('_rt_pgreset');return false;\\" title='Reset progress bar for this deck'>[⥻]</a>")

        barEl.html("{message} &nbsp; <a href=#akjsfdhkafhasdjfh onclick=\\"pycmd('_rt_pgreset');return false;\\" title='Reset progress bar for this deck'>[⥻]</a>")

Note the href part. The file can be found here:

image

hkhiem commented 4 years ago

Hi. I'm having the exact same problem but I can't find RemainingTime.py to modify it.

I can't even find barEl.html("{message}   <a href=# onclick=\"pycmd('_rt_pgreset');return false;\" title='Reset progress bar for this deck'>[⥻]")

Only thing I was able to find with "onclick" was in the Button.py.

Would appreciate your help. I don't know anything about coding so this is very foreign to me already.

phu54321 commented 4 years ago

Due to transition to typescript, the fix seems to have disappeared. Fix will be issued today. 👍