Can't Configure Add-On

Hello all.

I have installed the add-on Create Filtered Deck from Browser to my desktop Anki 2.1.26, but I am unable to use/configure the add-on. Under Tools>Add-ons>Create Filtered Deck from Browser, the “Config” button is grayed out and unusable. There is no config file within the add-on, and I assume this is the problem. Can anyone help me with this? I have uninstalled and reinstalled the add-on already.

Thank you!

This means the add-on has no configuration file.
I presume you want to change the hotkeys?
If that is what you want, change line 34 and line 37 in the file named browser_create_filtered_deck.py.

Thanks for your response!

I don’t exactly want to change any hotkeys. I think the issue is that the add-on itself is not working in my Anki. For example, under “Browse” I should be able to select cards, right-click, and select “Create Filtered Deck” or something along those lines. However, that function is too unavailable. This is the entirety of the browser_create_filtered_deck.py file:

-- coding: utf-8 --

“”"
Anki Add-on: Create Filtered Deck from Browser

Creates filtered deck based on current search

Copyright: © Glutanimate 2016-2017 https://glutanimate.com/
License: GNU AGPLv3 or later https://www.gnu.org/licenses/agpl.html
“”"

from future import unicode_literals

from aqt.qt import *
from anki.hooks import addHook

def createFilteredDeck(self):
col = self.mw.col
search = self.form.searchEdit.lineEdit().text()
if ‘deck:current’ in search:
did = col.conf[‘curDeck’]
curDeck = col.decks.get(did)[‘name’]
search = search.replace(‘deck:current’, ‘"deck:’ + curDeck + ‘"’)
self.mw.onCram(search)

def setupMenu(self):
menu = self.form.menuEdit
menu.addSeparator()
a = menu.addAction(‘Create Filtered Deck based on this Search’)
a.setShortcut(QKeySequence(“Ctrl+Shift+D”))
a.triggered.connect(lambda _, b=self: createFilteredDeck(b))

addHook(“browser.setupMenus”, setupMenu)

I just noticed that the AnkiWeb version differs from the version in Github that I linked.
The author didn’t update the AnkiWeb version.

Just replace the content of your local browser_create_filtered_deck.py file with the content of the new version and it should work.