Skip to content

Delete one caption without its source or the others - #186

Merged
bpacholek merged 1 commit into
mainfrom
179-delete-one-caption
Nov 1, 2026
Merged

bpacholek merged 1 commit into
mainfrom
179-delete-one-caption

Conversation

@bpacholek

Copy link
Copy Markdown
Contributor

Closes #179

Deleting one caption clip from the timeline removed the caption, its source video and every other caption made from that video, because a source and its captions share one link group and DeleteClip takes all linked partners. With ripple on, the captions after it then moved back by the caption's length and dragged their own source clips with them, leaving a gap on L1.

Now DeleteClip on a caption removes only that caption (it leaves its link group) and never ripples, so the other captions stay on their words. Deleting a source clip still removes its captions, and a detached sound and its video still go together.

  • core/model/.../edit/ClipCommands.kt: the caption case in DeleteClip.
  • CaptionCommandsTest.aDeletedCaptionGoesAloneAndTheSourceTakesItsCaptions: ripple on and off, the link kept, undo, and the source still taking its captions. It fails on main.
  • docs/architecture.md: the caption clips note says so.

No UI change. The existing delete tests (ClipCommandsTest, DetachedSoundTest) pass unchanged.

🤖 Generated with Claude Code

Deleting a caption took its source clip and every other caption from it,
since they share one link group, and ripple then moved the next sources
back by the caption's length. A caption now goes alone and never ripples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bpacholek
bpacholek merged commit dd3048c into main Nov 1, 2026
1 check passed
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.

Deleting one caption deletes its source clip and all its captions

1 participant