anking-vip / anki-field-autocomplete Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
With Beta 9 of Anki 2.1.50 being shipped, it would be nice to have this add-on updated for 2.1.50. Thanks.
I just typed "" at one field and this error happens. If I close the window of the "error", just keeps it fine. Yesterday the same happened with the " symbol.
Not a real problem.
Please replace the space inside the brackets with an x if the following items apply:
2.1.47
If you've received an error message, please copy and paste it between the backticks below:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.47 (dc156f34) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2021-09-07 00:54:01
Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 41, in cmd
File "aqt\webview.py", line 142, in _onCmd
File "aqt\webview.py", line 589, in onBridgeCmd
File "aqt\hooks_gen.py", line 4000, in call
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 26, in handle_bridge_commands
if handle_autocomplete(cmd, editor):
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 65, in handle_autocomplete
nids = col.find_notes(query)
File "anki\collection.py", line 503, in find_notes
File "anki_backend\generated.py", line 762, in search_notes
File "anki_backend_init.py", line 131, in _run_command
anki.errors.SearchError:
Invalid search: the escape sequence \
is not defined. If you want to search for a literal backslash </code>, prepend another one:
\
.
Hi! First of all, thanks for the addon! It is veeery useful!
When toggling on/off in the browser, the icon doesn't react however and remains black. Toggling works fine though and the problem only exists in the browser view, while adding a card, the icon reacts normally.
Any suggestions how to fix this?
2.1.54
Please replace the space inside the brackets with an x if the following items apply:
2.1.57 (5cdfa7a6)
None received
Happened again, even after update.
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.47 (dc156f34) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2021-09-07 00:54:01
Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 41, in cmd
File "aqt\webview.py", line 142, in _onCmd
File "aqt\webview.py", line 589, in onBridgeCmd
File "aqt\hooks_gen.py", line 4000, in call
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 26, in handle_bridge_commands
if handle_autocomplete(cmd, editor):
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 65, in handle_autocomplete
nids = col.find_notes(query)
File "anki\collection.py", line 503, in find_notes
File "anki_backend\generated.py", line 762, in search_notes
File "anki_backend_init.py", line 131, in _run_command
anki.errors.SearchError:
Invalid search: an opening double quote "
was found, but there was no second one to close it. If you want to search for a literal "
, prepend a backslash: "
.
I tested it with all addons disabled... This time, the symbol was ' and ". You can reproduce if you type ';" (single quote and after a double quote).
Also, the add-on really stop working, now it's a real bug
Originally posted by @gustavosmendes in #3 (comment)
First off, thanks for the great plugin! ❤️
Sadly, it seems that it no longer works on Anki 23.12.1. I don't get any errors on start-up, but the "A" button no longer appears for fields, nor does F4 work.
23.12.1
None
Would it be possible for you to enhance this add-on so that it can use as a source fields from multiple note types or predefined list from some configuration file?
Current situation is:
"These values will be only from the exact note type and field that you're typing into."
Maybe for someone is an advantage but for other users it might be a limitation. User if wants to use this in another note type needs to first create some notes and add some values so that they can be searched for after that. Otherwise it finds nothing. With predefined values in configuration, it wouldn't be a problem anymore.
Besides when database is big it works slowly on slow computers. That is the biggest drawback.
This Idea can be done as a separate add-on if you don't want to mess with the code of this add-on.
This issue was discussed here:
https://www.reddit.com/r/Anki/comments/c4pvaf/addon_request_predefined_field_values_to_choose/
And here is the mentioned in above discussion pull request:
glutanimate/anki-addons-misc#102
Obviously, the idea of using a list in some configuration file is just a proposal. What is important for me is the end effect, which is unifying all these names used in "part of speech" field so that they are the same across different note types and decks.
Actually I can use find and replace to unify already made notes to one standard but anyway, such functionality seems to me useful.
For the record - already reported here
sartak/anki-editor-autocomplete#3
Is there any possibilty that the items that show up upon clicking the field displays the last used items first?
It don't see a specific order actually, or maybe this feature is available but overlooked the activating button?
thanks
2.1.60 (Qt5) on macOS Monterey (12.6.3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.