Skip to content

Add 'Select card to update' action for targeted Anki card updates#948

Open
thntx wants to merge 1 commit intokillergerbah:mainfrom
thntx:feature/select-card-to-update
Open

Add 'Select card to update' action for targeted Anki card updates#948
thntx wants to merge 1 commit intokillergerbah:mainfrom
thntx:feature/select-card-to-update

Conversation

@thntx
Copy link
Copy Markdown

@thntx thntx commented Mar 23, 2026

Closes #776

Summary

  • Adds a new "Select card to update" post-mine action that opens a search dialog when mining, letting the user pick which existing Anki note to update with audio/screenshot instead of always targeting the most recently added card.
  • Adds a new update-selected-card keyboard shortcut (Chrome extension command) that triggers this action directly.
  • The dialog shows the last 50 notes added in the past 30 days, displays the note's key field (field with order === 0) as the primary label and the configured sentence field as secondary, and supports live search filtering across both.
  • A multi-select checkbox (off by default, persisted via localStorage) lets the user select multiple cards and apply the update to all of them at once via an "Apply (N)" button.
  • Fullscreen is gracefully handled: the dialog exits fullscreen, shows, then re-enters fullscreen on close.
  • Locale fix: bundled strings are now deep-merged as the base with cached remote translations on top, so new locale keys are never missing even when an older cached version is present.

Test plan

  • Set "Post-mine action" to "Select card to update" in extension settings
  • Mine a subtitle line — dialog should appear listing recent Anki notes
  • Search filters correctly by key field and sentence field
  • Single-click on a note updates it with audio/screenshot and closes dialog
  • Enable multi-select checkbox → select multiple notes → "Apply (N)" updates all of them
  • Multi-select preference persists across dialog opens
  • Dialog appears and closes correctly when video is in fullscreen
  • New keyboard shortcut appears after "Update last card" in chrome://extensions/shortcuts
  • All UI strings display correctly (no raw i18n keys)

🤖 Generated with Claude Code

Adds a new PostMineAction that opens a card search dialog when mining,
letting the user pick which existing Anki note to update with audio and
screenshot instead of always targeting the most recently added card.

- New `update-selected-card` Chrome extension command (keyboard shortcut)
- Card select dialog: shows last 50 notes added in past 30 days, filterable
  by key field and sentence field, with multi-select support
- Multi-select checkbox (off by default) persisted via localStorage;
  when enabled an Apply button updates all selected notes at once
- Fullscreen: dialog exits fullscreen on open, restores it on close
- Locale fix: bundled strings deep-merged as base so new keys always resolve
  even when older cached remote translations are present

Closes killergerbah#776

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Select specific card to update

1 participant