this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: image rename also rewrites matching src fields in sidecar rects

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

+16
+16
crates/tala/src/main.rs
··· 1472 1472 ); 1473 1473 let _ = std::fs::write(cards_path(), &src); 1474 1474 } 1475 + // Update src fields in sidecar rects. 1476 + let typ_path = cards_path(); 1477 + if let Ok(mut sc) = Sidecar::load_or_empty_for(&typ_path) { 1478 + let mut dirty = false; 1479 + for sched in sc.cards.values_mut() { 1480 + if let CardSchedule::Cloze { rects, .. } = sched { 1481 + for r in rects.iter_mut() { 1482 + if r.src == stem { 1483 + r.src = new_stem.clone(); 1484 + dirty = true; 1485 + } 1486 + } 1487 + } 1488 + } 1489 + if dirty { let _ = sc.save_for(&typ_path); } 1490 + } 1475 1491 on_renamed.call(()); 1476 1492 } 1477 1493 }