Filtered Deck From Tag

AnkiWeb addon 2058067048

1 other version of this addon exists. Compare versions ↓

Creates a filtered deck from a right-clicked tag in the browser sidebar, with configurable supplemental searches, card limits, automatic unsuspending, and default ordering.
AI-generated summary; may contain mistakes.

taggingfiltered-decks

Open on AnkiWeb GitHub Forum topic Find alternatives

AnkiWeb

Votes
27 (πŸ‘ 25 Β· πŸ‘Ž 2)
Updated
2023-02-19
Anki versions
2.1.56~
License
GPL-3.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2023-11-28 (1069 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 4 open, 3 closed.
  • Pull requests: 1 open, 0 merged.
  • Median first response: 19 hours (5 answered issues and pull requests).
  • Forks that may still be maintained: "Filtered Deck From Tag (Multi-tag Selection)" (328286900).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.492.1.56+2023-02-19
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Filtered Deck From Tag this addon original likely abandoned 28 Nov 2023 πŸ‘ 25 Β· πŸ‘Ž 2 77% 7
↳ Filtered Deck From Tag (Multi-tag Selection) supported active 28 Jul 2026 πŸ‘ 0 Β· πŸ‘Ž 0 – 0

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Description

Filtered Deck By Tag An Anki add-on that creates a filtered deck from the browser sidebar. Used for studying by tag instead of by deck. Project GitHub page Usage Right click a tag in the browser sidebar Select "Create Filtered Deck" from the right-click menu. A filtered deck will be created from the tag you right clicked on. Modify your searches in the config! See below for the config that I use. Configuration Configuration options can be found in the add-on config, accessible from Tools β†’ Add-ons β†’ Select the add-on β†’ Config.
  • There is an array named supplementalSearchTexts, which is an array of strings. For each string that you add, a new option will be added in the right click menu on the browse screen for tags, corresponding to that string.
  • There is a paired array of strings named shortNames. These correspond to the names you want to give each of these options. These entries should correspond to the entries in supplementalSearchTexts.
  • By default, there is a limit of 9999 cards that are added to the deck (maximum allowed by Anki). I personally use 300 cards as the limit, because it's sufficiently high that I'd never personally want to study a deck that large without breaking it up. If you'd like to change the limit of the number of cards pulled into the filtered deck, modify the numCards in the config.
  • The addon automatically unsuspends cards that should belong in the deck. To disable this, mark the unsuspendAutomatically configuration option as false.
  • You can change the default order used for the filtered decks. It currently defaults to Order Due. In order to change this, modify the value of defaultOrder in the configuration to one of the following integer values:
    • 0 for Oldest
    • 1 for Random
    • 2 for Increasing intervals
    • 3 for Decreasing intervals
    • 4 for Most lapses
    • 5 for Order added
    • 6 for Order due (default)
    • 7 for Latest added first
    • 8 for Relative overdueness. For more detail on what each of these orders mean, see the Anki User Manual
As an example, here's what I use in my config: ``` { "numCards": 9999, "shortNames": [ "high yield due", "high yield due and new", "due and new" ], "supplementalSearchTexts": [ "tag:#AK_Step1_v11::^Other::^HighYield::1-HighYield is:due", "tag:#AK_Step1_v11::^Other::^HighYield::1-HighYield (is:due OR is:new)", "(is:due OR is:new)" ], "unsuspendAutomatically": true, "defaultOrder": 6 } ``` Notes This add-on creates the filtered deck. It does not regularly rebuild that filtered deck. For that, I recommend one of the rebuild all add-ons. Bug reports should be added to the issues page on the GitHub page. Updates
  • 1/16/2023 - Updated versions to support 2.1.49+
  • 2/18/2023 - Added multiple configuration, and support for custom default deck order. This update will overwrite your existing configuration. Please make a backup of your configuration before updating.

README

Filtered Deck By Tag

An Anki add-on that creates a filtered deck from the browser sidebar. Used for studying by tag instead of by deck.

Usage

  1. Right click a tag in the browser sidebar
  2. Select "Create Filtered Deck" from the right-click menu. A filtered deck will be created from the tag you right clicked on.
  3. Modify your searches in the config! See below for the config that I use.

Right click menu:

image

Configuration

Configuration options can be found in the add-on config, accessible from Tools β†’ Add-ons β†’ Select the add-on β†’ Config. This addon will create a filtered deck from the tag you right clicked on, and appends supplemental search text to that search text (based on what you configure). Multiple configuration options are permitted.

  • There is an array named supplementalSearchTexts, which is an array of strings. For each string that you add, a new option will be added in the right click menu on the browse screen for tags, corresponding to that string.
  • There is a paired array of strings named shortNames. These correspond to the names you want to give each of these options. These entries should correspond to the entries in supplementalSearchTexts.
  • By default, there is a limit of 9999 cards that are added to the deck (maximum allowed by Anki). I personally use 300 cards as the limit, because it's sufficiently high that I'd never personally want to study a deck that large without breaking it up. If you'd like to change the limit of the number of cards pulled into the filtered deck, modify the numCards in the config.
  • The addon automatically unsuspends cards that should belong in the deck. To disable this, mark the unsuspendAutomatically configuration option as false.
  • You can change the default order used for the filtered decks. It currently defaults to Order Due. In order to change this, modify the value of defaultOrder in the configuration to one of the following integer values:
    • 0 for Oldest
    • 1 for Random
    • 2 for Increasing intervals
    • 3 for Decreasing intervals
    • 4 for Most lapses
    • 5 for Order added
    • 6 for Order due (default)
    • 7 for Latest added first
    • 8 for Relative overdueness

For more detail on what each of these orders mean, see the Anki User Manual

As an example, here's what I use in my config:

{
	"numCards": 9999,
	"shortNames": [
		"high yield due",
		"high yield due and new",
		"due and new"
	],
	"supplementalSearchTexts": [
		"tag:#AK_Step1_v11::^Other::^HighYield::1-HighYield is:due",
		"tag:#AK_Step1_v11::^Other::^HighYield::1-HighYield (is:due OR is:new)",
		"(is:due OR is:new)"
	],
	"unsuspendAutomatically": true,
	"defaultOrder": 6
}

Notes

  • This add-on creates the filtered deck. It does not regularly rebuild that filtered deck. For that, I recommend one of the rebuild all add-ons.
  • Bug reports should be added to the issues page in the GitHub repository.