Repository navigation
[10/22] feat: trim a clip to the playhead - #348
Merged
Merged
Conversation
This was referenced Dec 4, 2026
This was referenced Dec 4, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Dec 4, 2026
# [2.37.0](v2.36.0...v2.37.0) (2026-12-04) ### Bug Fixes * keep a clip's linked timing when the toolbar changes its other value ([#355](#355)) ([51e3cdc](51e3cdc)) * keep auto-length clips at their media's length after an edit ([#342](#342)) ([60c0658](60c0658)) * keep clips that start automatically in order when another clip moves ([#347](#347)) ([8e38aef](8e38aef)) * keep toolbar buttons from sticking in hover on touch ([#349](#349)) ([284359b](284359b)) * pair each luma matte with its own clip ([#341](#341)) ([3c02eae](3c02eae)) * paste at the playhead where Paste was pressed ([#343](#343)) ([e9ebd4a](e9ebd4a)) * put a clip back in its place when a move is undone ([#346](#346)) ([e3c2a8c](e3c2a8c)) ### Features * add a More menu to the action bar ([#352](#352)) ([6e459fd](6e459fd)) * add a stepped value field ([#361](#361)) ([9a80f4d](9a80f4d)), closes [#357](#357) * add an action bar for touch editing ([#359](#359)) ([f25644c](f25644c)) * add clip actions to the action bar ([#350](#350)) ([16d50ee](16d50ee)) * add clip timing steppers and touch scrubbing ([#356](#356)) ([6e37036](6e37036)) * add Split to the clip context menu ([#344](#344)) ([691d981](691d981)) * nudge and move clips from the action bar ([#360](#360)) ([dde0818](dde0818)) * paste from the action bar ([#353](#353)) ([67c8baa](67c8baa)) * reveal the clip an undo or redo changed ([#354](#354)) ([ecd9df6](ecd9df6)) * split a clip at the playhead ([#358](#358)) ([5636b57](5636b57)) * split clips with keyframes ([#345](#345)) ([fdd7be1](fdd7be1)) * trim a clip to the playhead ([#348](#348)) ([6ef9b99](6ef9b99))
|
🎉 This PR is included in version 2.37.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dragging a trim handle is imprecise on a phone, so the action bar needs a tap that trims to the playhead. This adds an internal
trimClipToPlayhead(trackIdx, clipIdx, "start" | "end"). A start trim advances the in-point exactly as the start handle does. An attached luma follows in the same undo step; a newTrimClipEndCommandpairs the end the wayTrimClipStartCommandpairs the start.It's refused, with a message, when the playhead is within a frame of either edge or the timing is linked to an alias or merge field.
Size: 465 lines, two thirds of them tests. The end command and the method that uses it are one action.
Verify: tests trim a video at
start 2, length 6, trim 1to 4 (start 4, length 4, trim 3, one history entry), trim the end, undo a luma pair in one step, and hit each refusal.splitClipandcanSplitClipMerge bottom-up. Once its predecessor lands, retarget a PR to
mainand rebase it, so it squashes as its one commit. Later PRs build on earlier ones, so revert from the top down.Merging this PR doesn't release: the release workflow holds a PR titled
[n/m]until the last in its stack merges. Its squash subject is its one commit's:feat: trim a clip to the playhead.