Repository navigation
Timeline clip delete and cut/silence restore - #57
Merged
Merged
Conversation
Select a kept clip and press Delete/Backspace or use the new Delete button next to Split to cut it out. Select a cut/silence region (or a cut-out word) and press Delete or use Restore to bring that media back. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Word clicks also select the owning clip for trim handles; the Delete button should target a clip-body selection, not a word pick. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Use the same rounded-sm DOM ring for selected silence/cut regions instead of a sharp canvas strokeRect. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Selected silence/cut hatch and wash now use the same inset rounded rect as the outline so they no longer spill past the corners. Clip rings are indigo; cut rings are red. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
wassgha
marked this pull request as ready for review
August 2, 2026 21:46
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.
Summary
Adds first-class delete and restore for timeline clips, wired into the existing cut/keep model (manual cuts + deleted words).
Delete a clip
Restore a cut
Shortcuts
Delete/Backspace is context-sensitive (handled globally in
Editor):Implementation notes
restoreRangesResultinlib/edits.ts+ store actionsrestoreRanges,deleteSelectedClip,restoreSelectedCutselectedCutIndex), with stronger selection washtests/edits-test.ts(npx tsx tests/edits-test.tspasses)