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 1670e95 to 6f66981 Compare June 4, 2026 17:44
@miguel-heygen miguel-heygen force-pushed the feat/keyframes-5-split-clip branch from 4711c17 to 32dd0bb Compare June 4, 2026 17:44
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