A selection moves, trims and deletes together, in the timeline and the pool

Box-select clips and drag one: every selected clip moves, and in a lane
they claim what they land on as one clip does, keeping their places among
themselves. Drag an end and every selected end moves by as much, each its
own trim; between two selected clips the cut is the end of the one before.
Delete removes everything selected.

The media pool picks as the timeline does: shift for a range, cmd to
toggle, Delete for all of them, with one question when any is placed.

Timeline rows rename symbols with a pencil. The row's buttons sit
together at its end, as the pool's now do, and quick clicks on them are
not a double-click on the row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-11 13:13:56 -04:00
parent 4cf279bb5a
commit 7c637576b2
10 changed files with 284 additions and 164 deletions

View file

@ -110,7 +110,7 @@ try {
assert.equal((await shot()).clip.symbols.main.display, undefined,
'a blank document starts as an ordinary symbol');
await clickNew('symbol');
await clickNew('+ symbol');
let s = await shot();
let placed = mainInstances(s);
assert.equal(placed.length, 1, 'new symbol places one instance');
@ -124,7 +124,7 @@ try {
// create the lane inside that symbol.
await evaluate(`re_frame.core.dispatch_sync(cljs.core.vector(
cljs.core.keyword('arthur.events.ui/select'), null))`);
await clickNew('lane');
await clickNew('+ lane');
s = await shot();
placed = mainInstances(s);
assert.equal(placed.length, 2, 'explicit lane places a second symbol');
@ -132,9 +132,9 @@ try {
assert.equal(await evaluate('[...document.querySelectorAll(".tl-track:not(.palette)")].filter(t => t.arthurLane).length'), 1,
'the explicit lane is drawn as one linear track');
assert.equal(await evaluate('document.querySelectorAll(".tl-label:not(.palette) .tl-rename").length'), 1,
assert.equal(await evaluate('document.querySelectorAll(".tl-label.lane:not(.palette) .tl-rename").length'), 1,
'the lane exposes its rename control');
await evaluate('document.querySelector(".tl-label:not(.palette) .tl-rename").click()');
await evaluate('document.querySelector(".tl-label.lane:not(.palette) .tl-rename").click()');
await sleep(80);
assert(await evaluate(`(() => {
const input = document.querySelector('.tl-name-input');
@ -190,7 +190,7 @@ try {
// that leaving a symbol selected creates the lane inside that symbol.
await evaluate(`re_frame.core.dispatch_sync(cljs.core.vector(
cljs.core.keyword('arthur.events.ui/select'), null))`);
await clickNew('lane');
await clickNew('+ lane');
s = await shot();
assert.equal(laneSymbols(s).length, 2, 'a second explicit command creates a second lane');
const move = await evaluate(`(() => {
@ -220,7 +220,7 @@ try {
await evaluate(`re_frame.core.dispatch_sync(cljs.core.vector(
cljs.core.keyword('arthur.events.project/new'))) `);
await sleep(250);
await clickNew('symbol');
await clickNew('+ symbol');
const clipboardBaseline = (await shot()).clip;
await shortcut('d', 'KeyD');
assert.equal(mainInstances(await shot()).length, 2, 'duplicate copies the selected instance');