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.
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.
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
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))