Deck Name & Tags in Title
An Anki 2.1 add-on that shows the current deck name and/or the current
card's tags in the Anki window title, so you always know where you are.
Inspired by the classic ospalh
deck_name_in_title
add-on and extended with tag support and a graphical configuration dialog.
Fork / origin
- This repository is not a GitHub fork (
fork: false, no upstream parent
on GitHub).
- It is a standalone, extended successor of Roland Sieker's classic
deck_name_in_title add-on:
https://github.com/ospalh/anki-addons/tree/develop/deck_name_in_title
- Original code Β© 2012β2018 Roland Sieker ospalh@gmail.com, GNU AGPL v3+.
- This version adds: note tags in the window title, a graphical config dialog
(Settings + Logs tabs), validated/coerced config with immediate
apply, docs, tests, and release packaging.
Features
- Show the deck name, the current card's tags, both (default) or
**nothing extra in the window title, fully configurable from the GUI.
- Tags come from the note behind the reviewed card (tags belong to notes,
not cards) β so you see at a glance which topic you are studying.
- Custom config dialog (Tools β Add-ons β Deck Name & Tags in Title β
Config) β no manual JSON editing needed, with a dedicated Logs tab
for live debugging (level filter, refresh, copy, clear, open the log file).
- Configurable separators, maximum tag count, sub-deck handling and program
name behaviour.
- Settings apply immediately (no restart required).
Install
From the package (`.ankiaddon)
- Open Anki.
- Tools β Add-ons β Get Add-onsβ¦ β Install from fileβ¦ and pick the
.ankiaddon file (or Vendor / install the package).
- Restart Anki.
From source (development)
Clone the repository and symlink the addon/ folder into your Anki add-ons
folder:
# Linux / macOS
ln -s "$(pwd)/addon" ~/.local/share/Anki2/addons21/deck_name_and_tags_in_title
See docs/setup.md for full instructions, the symlink helper,
building and the packaging/release workflow.
Configuration
The behaviour is fully described in docs/configuration.md
(A JSON key reference with defaults) and in the in-app settings dialog.
| Key | Default | Meaning |
|-----|---------|---------|
| title_content | "both" | "both", "deck", "tags" or "none" |
| title_separator | " β " | separator between title parts |
| tag_separator | ", " | separator between tags |
| max_tags | 5 | max tags shown (0 = no limit) |
| show_subdeck | true | show the sub-deck during review |
| subdeck_format | {parent}::{child} | sub-deck template |
| use_argv_0 | false | use program file name instead of "Anki" |
Documentation
Changelog
See changelog.md.
License
GNU AGPL, version 3 or later β http://www.gnu.org/licenses/agpl.html