limit search results

AnkiWeb addon 1265851495

Adds a limit:x search modifier that keeps only the requested number of matching cards or notes closest in queue order, including collection API searches.
AI-generated summary; may contain mistakes.

search

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (👍 0 · 👎 0)
Updated
2026-04-16
Anki versions
25.09.2~
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON, Ignore List, YAML
Description language
en

Maintenance

stale

  • Last update or commit: 2026-04-16 (199 days before the snapshot).
  • Commits in the last year: 8.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.0925.09.2+2026-04-16
History across monthly snapshots

Loading…

Similar addons

Smart Search

Adds a local AI panel in Anki's Browser that turns plain-English requests into Anki searches, expands synonyms, and finds matching cards privately.

aisearch

1 votes 21% approval 👍 1 · 👎 0 ⭐ 1 Anki 2.1.2~ Updated 2026-06-27

Description

Limit Search Results

Buy Me a Coffee GitHub moritzvitt

Limit Search Results is an Anki add-on that adds a custom search modifier: limit:x. It keeps only the requested number of matching cards or notes and prefers the results that are closest in queue order.

What It Does

  • adds limit:x to normal Anki search queries
  • works with both card and note searches
  • keeps results focused on items that are due sooner or closer in queue position
  • also affects collection API calls that use matching search methods

Examples

  • deck:Spanish limit:10
  • tag:important is:new limit:25
  • note:Basic limit:5

Installation

Install the add-on from AnkiWeb if a release is available, or install it manually from a packaged .ankiaddon file.

Related Add-ons

If you want a more polished and consistent look across my add-ons, you can also install my Global Styling add-on. It lets you apply a shared design on top of supported add-ons without changing their functionality.

Links

Packaging

To package manually:

zip -r limit-search-results.ankiaddon \
  __init__.py \
  addon.py \
  manifest.json \
  config.json \
  config.md \
  LICENSE

README

Limit Search Results

This Anki add-on adds a custom search modifier: limit:x.

When you include limit:x in a search query, Anki keeps only the x matching cards or notes that are closest in queue position.

Examples:

  • deck:Spanish limit:10
  • tag:important is:new limit:25
  • note:Basic limit:5

How It Works

  • limit:x is removed before the normal Anki search runs.
  • The remaining query is searched as usual.
  • Matching cards are ranked by queue state and due position so the add-on prefers cards you are likely to see sooner.
  • Matching notes are ranked by the earliest matching card attached to each note.
  • This works with both card and note results in the Browser.
  • It also applies to other add-ons or tools that call Anki collection search methods such as find_notes() or find_cards() with a query containing limit:x.

If you search with only limit:x, the add-on applies the limit to all matching results.

Why This Is Useful

  • Review the next few matching cards instead of a long unordered result list.
  • Keep note searches focused on notes whose matching cards are due sooner.
  • Reuse the same limit:x query in Browser searches and collection API calls.

Files

Packaging

To package manually:

zip -r limit-search-results.ankiaddon \
  __init__.py \
  addon.py \
  manifest.json \
  config.json \
  config.md \
  LICENSE