S027: rules engine, clipboard watcher, drops, drop target, rules and clipboard pages, test file

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-25 22:45:54 -06:00
commit 67285a165f

View file

@ -222,3 +222,8 @@ Seen: boxes were ticked together after the tests, against rule 3.
## S025 — Video sites (compiled, not tested)
- `core::ytdlp`: finder and version check (`Problem`), `probe` (cached, cancellable by drop, DRM refused), `Choice`/`Run`, `start` -> `Running` (progress parsed, stop = kill, restart continues), `Reason` mapped to error kinds, cookies in a 0600 temp file. `views/video.rs`: quality/audio/subtitle/playlist page.
- Not done: page not shown by the Add dialog, no manager task kind, limiter not fed live, no cookie-header conversion, no automatic tests or stub. Tests: `docs/tests/S025-video-sites.md`.
## S027 — Rules, clipboard, drops (compiled, not tested)
- `core::rules` (Rule/Item/apply/expand/unique/defaults, first fit wins; settings `rules`, `clipboard`, `clip_types`, `clip_skip`, `drop_target`); Add's `tasks()` applies rules to what the user left as is (folder, queue, priority, tags, name template with collision numbers).
- `app::clipboard` (thread polls arboard 1 s while ask/add; ignores start content, repeats, own copies via `clipboard::copy`), `app::drop` (full-window overlay, paths and `://` paths to Add), `views/target.rs` (own viewport, always-on-top hint, ring, menu), `views/rules.rs` and two settings pages (Rules, Clipboard and drops).
- Not done: winit gives no dropped text, so browser link drags work only as paths; always-on-top is ignored by niri; no layer-shell; rules not applied by the CLI or direct engine adds; tests: `docs/tests/S027-rules-clipboard-drop.md`.