AnkiHub Updated Today "New Note" Error

When I click the “New Note” option it pops up the windows to select the note type which I don’t think is the intended behavior. This is what it enters into the search bar “ankihub_id:_* ankihub_updated:1 ankihub_new_note:” (without me selecting any note type)

image

:arrow_down:

This window is coming from the BetterSearch add-on. Maybe there’s a conflict here.

I can reproduce it. I suggest reporting the issue to the author: Browser Search Box: Quick Insert Tag, Deck, Notetype [Official thread] - Add-ons - Anki Forums

The issue is simply triggered by typing 'new_note:" in the search bar. It appears to be a feature of the add-on, but it’s also getting triggered by “ankihub_new_note:”, which is causing the issue here.

1 Like

I was able to stop the pop-up by going into the BetterSearch add-on options and switching “modify_note”: from true to false.

Now if "note: " is typed into the search bar the window will not open. Same goes for the other modify fields. Let me know if this helps @shmuelsash

1 Like

I made the addon bettersearch.

my addon causes the problem because when I made it in 2020 I didn’t anticipate this use case. The solution proposed by ms1100 should fix this problem but then “note:” will never trigger my selection window.

I just made some small changes to my addon that should fix the problem by more precisely matching search operators like “note:”. Maybe someone here could test the attached new version before I upload it for everyone on ankiweb.

this forum does not allow me to upload “.ankiaddon” files. So I changed the extension to “.zip”. So after downloading this file you must undo this change, i.e. change the name of the extension back to “.ankiaddon”. Then you should be able to drag&drop the new addon version onto the addons window or just double click it to install it.

BetterSearch__2024-02-03.zip (79.6 KB)

Yup it works!

Thank you so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.