views: selection box from a row's blank columns, empty click clears; Trash bar with Empty Trash

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-25 23:34:55 -06:00
commit 4052a6f2b4

View file

@ -321,7 +321,12 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
## Selection box (user request)
- Done: a drag from empty space in a folder draws a box and selects what it covers (`BandBox` in details-view.slint, `FolderModel::band`); Ctrl/Shift flips items in the old selection; the list scrolls past its top or bottom edge; status line follows. Probe: `xdnd_probe press`.
- Verified: clippy, release build; box in grid and details view under Xvfb, status "3 of 4 selected".
- Not done: in the details view a drag on a row still drags the file (no box from a row's blank columns); a plain click on empty space still keeps the selection; no test run.
- Not done: no test run.
## Selection box from rows, Trash bar (user request)
- Done: in the details view a drag that starts past a row's name column draws the box; a plain click on empty space clears the selection; the status line follows clicks, Ctrl+A and clearing (it lagged before). Trash: bar over the status line with item count, size (`trash::usage`) and a red Empty Trash button (`ButtonKind.danger`, also on the confirm dialog); Empty Trash in the sidebar Trash menu; previews of trashed images, audio and video (`trash::local_path` now public).
- Verified: clippy (tunal, tunal-core), release build; under Xvfb: box from the Type column, empty click clears, Trash bar, sidebar menu, Empty Trash on a scratch trash, red button in dark mode.
- Not done: content-based icons (files whose name doesn't say their type) still don't apply in the Trash; no test run.
## Later
-