Skip to content

Add option to update all cards from the same subtitle line#950

Open
thntx wants to merge 1 commit intokillergerbah:mainfrom
thntx:update-same-line-cards
Open

Add option to update all cards from the same subtitle line#950
thntx wants to merge 1 commit intokillergerbah:mainfrom
thntx:update-same-line-cards

Conversation

@thntx
Copy link
Copy Markdown

@thntx thntx commented Mar 27, 2026

Summary

  • Adds a new toggle in Mining Settings: "Update all cards from the same subtitle line"
  • When enabled, the "update last card" action also updates audio, image, source, and URL fields on other recently-created cards whose sentence matches the current subtitle line
  • Useful when mining multiple words from the same subtitle — all cards get the same screenshot and audio, not just the last one

Details

  • New updateLastCardForSameSubtitle setting (default: off)
  • New updateLastForSameLine export mode that extends updateLast
  • Walks backwards through recent notes (last 2 days to handle Anki's day boundary), stops at the first note whose sentence doesn't match
  • Only updates asbplayer-provided fields (audio, image, source, URL), preserving card-specific fields (word, definition, etc.)

Test plan

  • Enable the setting in Mining Settings
  • Mine multiple words from the same subtitle line
  • Use "update last card" — verify all cards from that line get updated with screenshot and audio
  • Verify cards from different subtitle lines are not affected
  • Verify the setting defaults to off and existing behavior is unchanged when disabled

🤖 Generated with Claude Code

When enabled, the "update last card" action also updates audio,
image, source, and URL fields on other recently-created cards
whose sentence matches the current subtitle line.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.

1 participant