Anki add-on: Go to Deck - Right-click a card to filter and highlight its deck in the Browser

Anki Go-to-Deck Context Menu A lightweight Anki add-on that adds a "Go to Deck" option to the browser's context menu, allowing you to instantly filter the view to the specific deck of a selected card. This utility solves a common navigation friction in the Anki Browser. Instead of manually searching for a deck name or scrolling through the sidebar, you can right-click any card and instantly isolate its home deck. Table of Contents Anki Go-to-Deck Context Menu Table of Contents Features Prerequisites Installation Option A: Install via AnkiWeb (Recommended) Option B: Manual Installation Configuration enable_sidebar_clipboard_hack Usage Compatibility Notes Kardenwort Ecosystem License Features Context Menu Integration : Adds a convenient "Go to Deck" option when right-clicking a card in the Browser. Instant Filtering : Automatically applies a deck:"Name" filter to the search bar. Hybrid Behavior : Legacy Anki (Qt5) : Automatically expands the sidebar tree and highlights the specific deck folder. Modern Anki (2.1.50+ / Qt6) : Applies the search filter by default. Optionally, it can visually expand the sidebar using an advanced input simulation method (see Configuration ). Back to Top Prerequisites Anki Desktop : Works on both legacy (2.1.x) and modern (23.x/24.x) versions. OS : Windows, macOS, or Linux. Installation Option A: Install via AnkiWeb (Recommended) The easiest way to install the add-on is through Anki's built-in add-on manager. Open Anki. Go to Tools -> Add-ons -> Get Add-ons... Paste the following code into the box: 1158865515 Click OK and restart Anki. View on AnkiWeb: Go to Deck (Browser Context Menu) Option B: Manual Installation If you prefer to install from source or modify the code: Step 1: Open the Add-ons Folder Open Anki. Go to Tools -> Add-ons -> View Files . This opens the addons21 folder on your computer. Step 2: Create the Folder Structure Inside addons21 , create a new folder named AnkiGoToDeck (or any name you prefer, but avoid spaces). Step 3: Copy Files Copy the following three files from this repository into your newly created AnkiGoToDeck folder: __init__.py anki_go_to_deck.py config.json Final Structure: addons21/ └── AnkiGoToDeck/ ├── __init__.py ├── anki_go_to_deck.py └── config.json Step 4: Restart Anki Restart the application for the add-on to load. Back to Top Configuration This add-on includes a config.json file to control advanced behavior for modern versions of Anki. { "enable_sidebar_clipboard_hack": false } enable_sidebar_clipboard_hack Default: false Description: In modern Anki (2.1.50+), the sidebar is a web component that cannot be controlled via standard API calls. If false : The add-on will simply filter the card list ( deck:"Name" ). The sidebar tree will not change visually. If true : The add-on will use a workaround to force the sidebar to expand to the correct deck. ⚠️ Important Note for the "True" setting: To achieve this on modern Anki, the script copies the deck name to your system clipboard and simulates a keyboard sequence ( Ctrl+Shift+F -> Ctrl+A -> Delete -> Ctrl+V -> Enter ). Enable this only if you are comfortable with the add-on briefly using your clipboard when you click "Go to Deck". Back to Top Usage Open the Browser in Anki. Right-click on any card in the list. Select Go to Deck from the context menu. The browser will immediately filter the list to show only cards from that deck. Back to Top Compatibility Notes Sidebar Highlighting Legacy Versions : On older versions of Anki where the sidebar is a standard Qt Widget, this add-on will visually expand the tree and select the deck item automatically (ignoring config.json ). Modern Versions (2.1.50+) : Visual sidebar highlighting is disabled by default due to technical restrictions. It can be enabled by setting "enable_sidebar_clipboard_hack": true in the configuration file. Back to Top Kardenwort Ecosystem This project is part of the Kardenwort environment, designed to create a focused and efficient learning ecosystem. Back to Top License MIT Back to Top

GitHub repository: voothi/20251118194259-anki-go-to-deck
Repository description: Adds a "Go to Deck" option to the context menu of the selected card to instantly filter and highlight its deck in the sidebar tree
Languages: Python
Topics: anki, anki-addon, anki-browser, clipboard, hightlight, kardenwort, left-panels