anki.find#

Classes#

Functions#

findReplace(→ int)

Find and replace fields in a note. Returns changed note count.

fieldNamesForNotes(→ list[str])

fieldNames(→ list[str])

Module Contents#

class anki.find.Finder(col: anki.collection.Collection | None)#
col#
findCards(query: Any, order: Any) Any#
findNotes(query: Any) Any#
anki.find.findReplace(col: anki.collection.Collection, nids: list[anki.notes.NoteId], src: str, dst: str, regex: bool = False, field: str | None = None, fold: bool = True) int#

Find and replace fields in a note. Returns changed note count.

anki.find.fieldNamesForNotes(col: anki.collection.Collection, nids: list[anki.notes.NoteId]) list[str]#
anki.find.fieldNames(col: anki.collection.Collection, downcase: bool = True) list[str]#