Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

Delete on a selected clip's menu deletes the selection it is part of

Jareer1859952a3a0e
diff --git a/engine/crates/concat/src/studio.rs b/engine/crates/concat/src/studio.rs
index 6dd61409..0e87945c 100644
--- a/engine/crates/concat/src/studio.rs
+++ b/engine/crates/concat/src/studio.rs
@@ -6574,10 +6574,16 @@ impl Studio {
});
}
"lock" => self.toggle_lock(&clip.track_id),
+ // A clip that is part of the selection takes the selection with
+ // it: Delete on one of five selected clips means the five.
"delete" => {
- self.apply(Command::RemoveClips {
- clip_ids: vec![id.to_owned()],
- });
+ if self.selection.len() > 1 && self.selection.iter().any(|held| held == id) {
+ self.delete_selected();
+ } else {
+ self.apply(Command::RemoveClips {
+ clip_ids: vec![id.to_owned()],
+ });
+ }
self.menu_target = None;
}
_ => {}