Liresol / anki-custom-shortcuts

Custom Keyboard Shortcuts for Anki 2.1
MIT License
60 stars 14 forks source link

Error when using custom shortcut for "editor: focus tag" #201

Open ramuench opened 1 year ago

ramuench commented 1 year ago

I set a custom shortcut for "editor: focus tag" When I use it I get the following error:

Debug info: Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0 Platform: Windows-10-10.0.22000 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2023-04-22 13:08:20

Caught exception: Traceback (most recent call last): File "aqt.editor", line 704, in onFocusTags AttributeError: 'Editor' object has no attribute 'tags'

All other addons are disabled. The shortcut I set is not enabled for any other actions.

Thank you for the helpful addon. It is an essential for me.

gavinhughes commented 1 year ago

Getting the same error. editor.py in the Anki code base is where the tags attribute would be defined, but I'm not familiar enough to know what to look for in order to fix this.

thiswillbeyourgithub commented 5 months ago

It seems that there's a shortcut now by default : ctrl+shift+t

tested on anki 24.04

related #189