Skip to content

Instantly share code, notes, and snippets.

@intellectronica
Last active November 1, 2025 23:47
Show Gist options
  • Select an option

  • Save intellectronica/7d69fa738911f0cb1d5198133edeacf8 to your computer and use it in GitHub Desktop.

Select an option

Save intellectronica/7d69fa738911f0cb1d5198133edeacf8 to your computer and use it in GitHub Desktop.

Anki Search Syntax Cheat-Sheet

Overview Description
Purpose Quick reference for finding cards/notes using Anki’s search operators. Combine operators (e.g., deck:french is:due) for powerful searches.

Basic Search Operators

Operator Description
term Matches "term" & related (e.g., dog)
term1 term2 Both terms (e.g., dog cat)
term1 or term2 Either term (e.g., dog or cat)
-term Exclude "term" (e.g., -cat)
"exact phrase" Exact match (e.g., "a dog")
w:term Word boundary (2.1.24+, e.g., w:dog)
term* Starts with "term" (e.g., dog*)

Field-Specific Searches

Operator Description
field:term Exact in field (e.g., front:dog)
field:*term* Anywhere in field (e.g., front:*dog*)
"field name":term Field with spaces (e.g., "back":dog)
field: Empty field (e.g., front:)
field:_* Non-empty field (e.g., front:_*)

Tags and Decks

Operator Description
tag:tagname Tag or subtags (e.g., tag:animal)
tag:none Untagged notes
deck:deckname Deck or subdecks (e.g., deck:french)
deck:"deck name" Deck with spaces (e.g., "french words")
card:cardtype Card type (e.g., card:forward)
note:notetype Note type (e.g., note:basic)

Card States and Properties

Operator Description
is:due Due cards
is:new New cards
is:learn Learning cards
is:review Review cards
is:suspended Suspended cards
flag:1 Red flag (1-7 for colors)
prop:ivl>=10 Interval >= 10 days
added:1 Added today

Advanced Features

Operator Description
re:pattern Regex (2.1.24+, e.g., re:\d{3})
nc:term Ignore accents (2.1.24+, e.g., nc:uber)

Special Notes

Topic Details
Special Characters Escape *, _, " with \ (e.g., \*). Use quotes for spaces/keywords (e.g., "and")
Version Requirements w:, re:, nc: need 2.1.24+. See Anki Manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment