The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
feat(timeline): the split tool shows where it will cut
Jareer6ec06b3f8c4d
diff --git a/src/crates/concat/ui/timeline/lanes.slint b/src/crates/concat/ui/timeline/lanes.slintindex 0bad2eb1..7989ca14 100644--- a/src/crates/concat/ui/timeline/lanes.slint+++ b/src/crates/concat/ui/timeline/lanes.slint@@ -950,13 +950,17 @@ export component Lanes inherits Rectangle {property <bool> hover-on;function hover-at(x: length) {- if (!root.preview-axis) {+ // Tracked for the preview axis, and for the razor's edge below;+ // only the axis moves the monitor.+ if (!root.preview-axis && root.tool != TimelineTool.split) {return;}hover-off-timer.running = false;root.hover-x = x;root.hover-on = true;- root.hovered(Math.max(0, root.seconds-at(x)));+ if (root.preview-axis) {+ root.hovered(Math.max(0, root.seconds-at(x)));+ }}/// A beat later, not at once: the pointer crossing from a clip to the/// floor leaves one surface before it reaches the next, and the@@ -1614,6 +1618,22 @@ export component Lanes inherits Rectangle {visible: self.x >= 0px && self.x <= root.width;}+ // ── the razor's edge ─────────────────────────────────────────────+ //+ // Where the split tool will cut: the frame under the pointer, as a+ // line across the lanes in the accent, so it reads as a blade and+ // not as the dim hover line. Under the playhead, over the clips.+ // https://github.com/jub0t/Concat/issues/241+ if root.tool == TimelineTool.split && root.hover-on: Rectangle {+ x: root.at(Math.round(root.seconds-at(root.hover-x) * root.frame-rate)+ / Math.max(1, root.frame-rate));+ y: 0;+ width: 1px;+ height: root.height;+ background: Theme.accent;+ visible: self.x >= 0px && self.x <= root.width;+ }+// ── the playhead ─────────────────────────────────────────────────//// Over everything, ruler included: it is the one thing that must never