AnkiWeb
- Rating
- 0 (π 0 Β· π 0)
- Updated
- 2026-06-16
- Anki versions
- 25.09.4~
- Description language
- en
AnkiWeb addon 290816457
Enables configured keyboard shortcuts to reveal answers and rate cards on the same keypress, eliminating spacebar use during Anki Desktop reviews.
Open on AnkiWeb GitHub Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 24.06.3 | 25.09.4+ | 2026-06-16 |
Loadingβ¦
Enables keyboard-driven Anki reviewing with hjkl grading, flexible front-side rating, hidden answer buttons, Pass-Fail mode, zoom shortcuts, and color-coded grades.
Adds customizable reviewer hotkeys to reveal hints individually or all at once, with defaults H and Shift+H.
Undoes an accidental card reveal, temporarily buries and reshuffles it into the deck without penalty, with customizable cooldown, shortcut, and duplicate protection.
Control Anki reviews with any gamepad: map buttons to 28 actions, open live config, and rate, reveal, undo, and more without keyboard or mouse.
Assigns mouse buttons and scroll actions to answer, grade, or undo cards during Anki reviews, with separate question/answer mappings, long-press options, and quick toggling.
Removes custom configurable global keyboard shortcuts in the main window, review, and overview via Tools > Add-ons > Config; none are disabled by default.
An Anki Desktop add-on that enables keyboard shortcuts (default 1, 2, 3, 4, h) to perform same-key show and rate operations during review, eliminating the need to hit the spacebar on every card.
1 to 4) as well as custom keybindings (like Vim mappings or other layouts).The add-on automates the review loop using the following state transitions:
"question" state.3 or j) intercepts the keypress and triggers the Show Answer (flip) action (showAnswer()), revealing the back side of the card."answer" state.3 or j) routes to the mapped target action:
answerCard(ease)) using the configured rating index.This project is organized following modular Python development best practices for Anki add-ons:
20260615234828-anki-same-key-show-and-rate/
βββ .gitattributes
βββ .gitignore
βββ LICENSE # Project license
βββ README.md # Documentation
βββ release-notes.md # Version release notes
βββ pytest.ini # Pytest configuration
βββ manifest.json # Anki addon manifest (required at root)
βββ config.json # Addon configuration defaults (required at root)
βββ config.json.template # Addon configuration template (required at root)
βββ meta.json # Local addon state metadata (required at root)
βββ __init__.py # Entry point, imports src.main
βββ scripts/ # Developer build and deployment tools
β βββ make_release.py # Release compilation entry point
β βββ make_deploy.py # Local addon deployment utility
β βββ packaging/ # Subdirectory containing internal build pipelines
β βββ packaging.ini # Release configurations and exclusions
β βββ release_pipeline.py # Orchestrator
β βββ create_addon_zip.py # Zips addon and writes checksums
β βββ setup_local_vendor.py # Prepares local wheels
β βββ build_all_vendors.py # Prepares platform wheels
βββ src/ # All codebase logic
β βββ __init__.py # Package initialization (empty file)
β βββ main.py # Core same-key show/rate hook logic
βββ tests/ # Test suite
βββ test_main.py # Tests for the core logic in main.py
AppData\Roaming\Anki2\addons21\20260615234828-anki-same-key-show-and-rate).You can customize the list of active same-key mappings via Anki's Add-on config manager (Tools > Add-ons > Same-Key Show and Rate > Config).
Default configuration:
{
"hotkeys": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"h": "h"
}
}
The keys of the hotkeys object are the triggers on the keyboard. The values represent the target shortcut/action key to run on the back side of the card (e.g., "h" maps to "h"'s default back action, while "1" maps to "1"'s default back action).
If the configuration used a simple list of keys (e.g., ["1", "2", "3", "4", "h"]), it would assume that the key pressed on the front must trigger itself on the back. While this works for standard keys, it breaks down for more advanced layouts:
h to Again, j to Good, and e to Easy in Anki's settings), they can configure {"h": "1", "j": "3", "e": "4"}. Tap h to flip the card, and tap it again to route directly to rating 1 (Again).h to rate 1).The project includes a pytest suite for offline testing of shortcut registrations, state detection, and configurations.
Execute pytest from the project root:
pytest
This project is licensed under the MIT License.
See the LICENSE file details (or standard MIT terms).