Skip to content

feat(studio): split clip at playhead for media elements [7/10]#1189

Open
miguel-heygen wants to merge 1 commit into
feat/keyframes-4b-design-panel-polishfrom
feat/keyframes-5-split-clip
Open

feat(studio): split clip at playhead for media elements [7/10]#1189
miguel-heygen wants to merge 1 commit into
feat/keyframes-4b-design-panel-polishfrom
feat/keyframes-5-split-clip

Conversation

@miguel-heygen
Copy link
Copy Markdown
Collaborator

Summary

  • Add splitElementInHtml to core source mutation — clones element, adjusts timing/media-start
  • split-element API endpoint
  • handleTimelineElementSplit handler with media-only guard
  • Clip context menu: right-click → Split at Xs
  • S keyboard shortcut
  • Toolbar split button (Phosphor Scissors icon)

+245 LOC

…otkey

Add splitElementInHtml to core source mutation helpers — clones an element
at the split time, adjusts data-start/data-duration/data-media-start for
both halves, and inserts the clone after the original.

Wire through: split-element API endpoint, handleTimelineElementSplit in
useTimelineEditing, clip context menu (right-click → Split at Xs), toolbar
split button, and S keyboard shortcut.

Edge cases: locked/implicit clips blocked, media trim offset adjusted by
playback rate, unique ID generation with collision avoidance, undo via
edit history.
@miguel-heygen miguel-heygen force-pushed the feat/keyframes-4b-design-panel-polish branch from 9a94cd9 to bc87ce5 Compare June 4, 2026 04:57
@miguel-heygen miguel-heygen force-pushed the feat/keyframes-5-split-clip branch from 4e164ee to 0dbfe93 Compare June 4, 2026 04:57
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