feat: implement clip deletion via 'd' key and CMD_DELETE command

This commit is contained in:
Loic Coenen
2026-06-06 18:31:52 +00:00
committed by Loic Coenen (aider)
parent 18eb27e9c8
commit 2c30bba5fa
9 changed files with 7719 additions and 3 deletions

View File

@@ -520,9 +520,19 @@ void tui_run(void) {
case 'S':
send_command("scene_prev\n");
break;
case 'd': case 'D':
send_command("stop\n");
case 'd': case 'D': {
char cmd[64];
// bind to the selected channel
snprintf(cmd, sizeof(cmd), "bind %d\n", selected_col);
send_command(cmd);
// set the scene (row) so engine deletes the correct clip
snprintf(cmd, sizeof(cmd), "set_scene %d %d\n", selected_col, selected_row);
send_command(cmd);
// delete the clip entirely
snprintf(cmd, sizeof(cmd), "delete %d\n", selected_col);
send_command(cmd);
break;
}
case 'a':
send_command("add\n");
break;