Browser Search Box: Quick Insert Tag, Deck, Notetype [Official thread]

@ijgnd Thanks again for the fix with the dialog box in full screen! I do some work with the med school AnkiHub team and we’re running into a similar issue with a dialog box in our addon. Would you be able to share how you fixed it if you don’t mind? Was it a simple fix? If it’s too complicated to spell out, then forget it, just curious!

a proper solution would propbably force the qdialog ontop of the browser - no matter what happens inside the qdialog. I didn’t find such a solution so I combined two approaches. I just edited the file filter_dialog.py from the new subfolder from my addon.

A timing isssue is involved in this problem. This problem happened only for some dialogs namely ones containing lots of lines (one person who had many decks also had this problem for a search for decks:).

If my qdialog gets moved to a different window I can move it back ontop of the full screen browser by adjusting the modality setting for my qdialog like this:

self.setWindowModality(Qt.WindowModality.WindowModal)

In the worst case the user sees temporarily another view/screen which is distracting but at least my dialog ends up in the right place.

chatgpt suggested other changes like adding flags to my qdialog like this:

self.setWindowFlags(self.windowFlags() | Qt.WindowType.Sheet)

or this:

self.setWindowFlags(self.windowFlags() | Qt.WindowType.Tool)

But these didn’t help or even made the situation worse.

Also manually setting the screen like this didn’ help either:

if self.parent and self.parent.windowHandle():
    parent_screen = self.parent.windowHandle().screen()
    if self.windowHandle():
        self.windowHandle().setScreen(parent_screen)

my code for aligning the qdialog next to the browser searchedit also didn’t cause this problem.

I knew that the old version of my dialog didn’t have this problem. So I had a look at my new version of the file. I just commented out some functions to find the culprit. Turns out in my qdialog it was the method maybe_show_warning_about_hidden_tags. with this function I update the text shown for a qlabel and show or hide it depending on what the user typed into my dialog. Running this function during startup caused the movement of the dialog. So just added a workaround: I set the text of the qlabel earlier and during the opening of the dialog I don’t modify the visibility of this qiabel. That was enough so that the problem no longer occurs on the devices I (and other users here) tested it with. I guess there are still conditions where the problem might appear. That’s why I also added the line mentioned in 1.

Thanks so much!!

@ijgnd I noticed an issue while reviewing cards, the “E” keyboard shortcut no longer auto-opens the edit page for that card.

Additionally, the “edit cloze while review” add-on that allows users to hold Ctrl + Left click = edits the flash card while you’re in the review page stopped working.

I suspect this add-on to be the culprit because as soon as I disabled it and rebooted Anki, and it was immediately fixed. Hope this helps

@DocOx123 : I can’t reproduce this problem on anki 25.02. I just tested in a new profile with just two addons: my bettersearch and Edit Field During Review (Cloze). With my addon pressing “e” opens the edit page and ctrl+click allows editing a field (after I have enabled this field in the settings of the addon “Edit Field During Review (Cloze)”.

My add-on does not modify the review so I wonder if my addon is really involved on your side.

Have a look at Troubleshooting - Anki Manual Try the disabling half of the addons method to find out which addon or addon combination causes this problem.

If you want tme to look into it provide a detailed report with exact steps to reproduce it (like the exact addon names/urls used), your anki version and the minimal set of conflicting addon. A list of 5,15 or 35 addons is useless for me because figuring out the affected addons would take too much time.

1 Like

@DocOx123 also make sure to check for updates, install the latest addon version and restart anki.

1 Like

@ijgnd Just wanted to follow up- I went ahead and double checked that I was on the most recent version of Anki (25.02) already, and I was. So I re-enabled the BetterSearch add-on and tried to reproduce the bug again and it went away after the restart of Anki. I’m now puzzled as to where or why this happened to me in the first place, but thanks for taking the time to trouble shoot from your end as well. Sorry for any confusion, appreciate your work!

Hi thank you for fixing the dialog box in fullscreen bug!

Just wanted to share another small bug I’ve noticed after one of the recent updates. Previously, after searching multiple items in the filter dialog, it would place an OR in between each prompt so as to search for each prompt separately. Now, it no longer includes OR between each prompt. This makes it so that each search finds only the cards which meet all requirements.

Not, sure or if this was an intentional change or not. If so, is there a way to include OR between each item? Thanks!

@lukewhelchel thanks for the feedback. I uploaded a new version that should bring back the old behavior (though for exclusions I now prefer -a -b instead of -(a or b)). If you still run into this problem or other ones let me know.

After the recent updates, the text has poor contrast in the Dark mode.

The option to search within a card for specific words like its possible in safari via cmd+f would be also great. Or does this already exists?

Greetings
Yannik

over thime there were multiple addons for this. I’m not sure which one is working at the moment. But I doubt that it makes sense to add functionality concerning the editor component that’s also in the add window to my addon that only deals with the searchbar on top of the browser.

I’m not familiar enough with recent addon development so I can’t make a recommendation. Keep in mind that you are fully trusting addon authors with your data (or in windows all your data on your computer)

Addons that highlight terms from the browser search bar: e.g.

Add-ons that force you to and allow you to make custom searches: e.g.

1 Like

After recent update, the highlighted research is not I line with the actual text (see attached image). tried reinstalling the add on with no fix

can you say which os and which anki version you use? I can’t reproduce the problem on my machine at the moment.

In the meantime: Go into the addon settings (e.g. from the browser menu bar). In the settings window click on “filter dialog”. in the area that unfolds there’s a setting named “filter dialog: highlight matches in list”. Uncheck this, close the window. Then close all browser windows. then the highlighting is gone but the text is readable as it was up to 2024.

MacOs and 24.06.3 (d678e393)⁩

thanks but it’ll take some time until I have access to a mac.

I found a bug with field search

Bug: adds two colons to field search instead of one

  • type “field:” to bring up the field search menu
  • select a field
  • result: addon writes two colons instead of one after the field name, yielding a search with no results
  • short-term solution: manually delete the extra “:”

@LittleCoaks thanks for your report, that should be fixed in the version I uploaded for 25.09 or later.

1 Like

@ijgnd

Issue:

Show search string in multi-line dialogue not working, causing errors, and unable to interact with Anki again until force closing through Task Manager. (1 of 2 things is happening)

Version 1 (80% of the time):

  1. Browse > BetterSearch > Show search string in multi-line dialogue
  2. Show Search CheatSheet
  3. Cheatsheet doesn’t open and I instead get a popup “Anki encountered a problem. Please follow the troubleshooting steps. Add-ons possibly involved: BetterSearch” (I disabled all other addons to ensure there were no conflicts).
  4. Close the error popup
  5. Close/OK Show search string in multi-line dialogue
  6. I’m again completely unable to interact with, close, or do anything with Anki, until I force close Anki through Task Manager (even right click > close window doesn’t work).

Version 2 (20% of the time):

  1. Browse > BetterSearch > Show search string in multi-line dialogue
  2. Show Search CheatSheet
  3. Cheatsheet opens
  4. I close cheatsheet
  5. Show search string in multi-line dialogue window closes by itself
  6. I’m then completely unable to interact with, close, or do anything with Anki, until I force close Anki through Task Manager (even right click > close window doesn’t work).

Debug Info:

Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Windows-11-10.0.26100-SP0

Traceback (most recent call last):
File “C:\Users\reill\AppData\Roaming\Anki2\addons21\1052724801\new\dialog__multi_line.py”, line 232, in help_short
self.help_dialog = MiniHelpSearch(self)
~~~~~~~~~~~~~~^^^^^^
File “C:\Users\reill\AppData\Roaming\Anki2\addons21\1052724801\new\dialog__help.py”, line 179, in init
move_window(left=self, right=parent, newpos=“side-by-side”)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\reill\AppData\Roaming\Anki2\addons21\1052724801\new\dialog__help.py”, line 52, in move_window
left.setGeometry(leftspace, ly, lw, lh)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
setGeometry(self, a0: QRect): argument 1 has unexpected type ‘float’
setGeometry(self, ax: int, ay: int, aw: int, ah: int): argument 1 has unexpected type ‘float’

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
BetterSearch [‘1052724801’, 2026-03-03T12:58, ‘None’, mod]

===IDs of active AnkiWeb add-ons===
1052724801

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Merge Notes - Merge and Duplicate notes [‘1425504015’, 2025-10-15T00:53, ‘None’, ‘’]
Adjust Sound Volume [‘2123044452’, 2023-12-25T14:00, ‘None’, mod]
Advanced Browser [‘874215009’, 2024-10-27T14:20, ‘None’, mod]
Advanced Review Bottom Bar [‘1136455830’, 2025-10-03T20:55, ‘None’, mod]
Anki Simulator [‘817108664’, 2023-11-06T17:26, ‘None’, ‘’]
AnkiConnect [‘2055492159’, 2025-11-09T19:40, ‘None’, ‘’]
Auto Sync [‘501542723’, 2023-11-20T16:14, ‘None’, ‘’]
Batch Download Pictures From Google Images [‘561924305’, 2025-06-21T19:15, ‘None’, mod]
Enhance main window [‘877182321’, 2023-10-22T21:28, ‘None’, mod]
FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings [‘759844606’, 2026-01-27T11:07, ‘None’, mod]
HyperTTS - Add speech to your flashcards [‘111623432’, 2026-02-06T14:38, ‘None’, mod]
Progress bar - Visualize reviewed cards and remaining Fixed by Shige [‘1708250053’, 2024-11-10T20:00, ‘None’, mod]
Remove Duplicate Cards [‘95590040’, 2024-09-29T16:56, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-30T02:43, ‘None’, ‘’]
Search Stats Extended [‘1613056169’, 2026-03-11T01:30, ‘None’, mod]
Study Time Stats [‘1247171202’, 2024-02-24T16:59, ‘None’, ‘’]