Seeking and the sidebar selection spring to the click. Compress and extract cover the 7z formats. Path fields get a file picker, icon dialogs a browser with categories. Create new makes launchers, Edit launcher changes them. New tabs open Home and a file path opens its folder. Dialogs opened from a menu keep the focus. Remote noted in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
77 KiB
77 KiB
Progress
One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.
S001 — Workspace, crates, README and feature map
- Done: workspace (resolver 3, edition 2024, GPL-3.0-or-later); crates
tunal(bin, Slint window "Tunal" with assets/tunal.png) andtunal-core/-theme/-dirmeta/-elevate/-thumbs/-tags/-player/-devices/-net(crate doc only); font + license inassets/fonts/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].ttf; FEATURES.md (plan-id tables, updated by later plans); README.md; reference app cloned to /home/astar76/Projects/Tunal-reference. - Verified: cargo build, clippy -D warnings, fmt --check, fc-query font family, grep for forbidden names empty, window smoke run 5 s no errors.
- Not done: nothing. Tracker item texts for S001 were shortened when syncing.
- Later: —
S002 — Portal theme and Material schemes
- Done:
tunal-themewithread() -> Appearance,watch(F: Fn(Appearance) + Send + 'static) -> JoinHandle<()>,Appearance { accent: Option<Accent>, scheme: ColorScheme, animations: Option<bool> }(+seed(),palette()),Accent { red, green, blue: f64 }(rgb() -> 0xRRGGBB),Palettes::from_seed(u32) -> { light, dark: Palette },Palette= 34 M3 roles as ARGB u32. Fallback seedFALLBACK_SEED = 0x3F6FB5(D-022). zbus 5.19 blocking-api + async-io, no tokio. Exampledump(--watchprints changes). - Verified: build, clippy -D warnings, fmt --check; dump accent = busctl (0.901961, 0.176471, 0.258824);
Readfallback forced once; no bus (unix:path=/nonexistent) and bare bus without portal → one stderr line, defaults, exit 0; watcher against a fake portal (private bus) reported accent, scheme and animations changes, ignored other namespaces, out-of-range accent → None. - Not done: nothing. Missing-setting warnings are
eprintln!lines prefixedtunal-theme:(no logging crate). - Later: —
S003 — Window, Theme and Motion globals, screenshot command
- Done:
ui/theme.slintTheme(34 M3 roles asprimary,on-primary, …scrim;dark;corner-none/xs/sm/md/lg/xl0/4/8/12/16/28 +corner-full(h);space-1/2/3/4/6/8;hairline;icon-font;TypeStyletitle-large/title-medium/body-medium/body-small/label-large/label-medium;state-hover/focus/press/drag,disabled-content/container).ui/motion.slintMotion(short1…long4,emphasized(-decelerate/-accelerate),standard(-decelerate/-accelerate),time(d)→ 0 ms when reduced) fed by exportedMotionPrefs.reduced.Icon { glyph, size }+Icons.folder/home.src/theme_bridge.rs(read at start,watch→upgrade_in_event_loop), envTUNAL_SEED=#rrggbb,TUNAL_SCHEME=light|dark,TUNAL_REDUCED_MOTION=1.src/screenshot.rs:tunal --screenshot <png> [--dark] [--size WxH]. Window min 720×480 (D-023); ui entry renamedui/app.slint;png0.18 dep. - Verified: build, clippy -D warnings, fmt --check; looked at light, dark,
TUNAL_SEED=#2e7d32 --dark --size 720x480, and no-bus (fallback blue) PNGs; real window ran 4 s on a private bus and with invalid env values (one stderr line each), no panic. - Not done: live re-theme not observed end to end (no D-Bus Python bindings for a fake portal); the path is
watch(verified in S002) →apply(verified by screenshots). Icon weight/fill: not settable in Slint 1.19 (D-023). - Later: icon weight/fill if Slint gains font variations; screenshot hover/press states need a controlled clock (phase 12).
S006 — Location layer and local backend
- Done:
tunal-coretypesUri(scheme, authority, path as raw bytes;Uri::from_path/parse/to_path/join/parent/file_name, Display percent-encodes the path, e.g.file:///a/b%FFc),Entry { name: Vec<u8>, display_name, kind: Kind, size, mtime: Option<SystemTime>, mode (0o7777), uid, gid, hidden, mime: &'static str },Kind::{File, Dir, Special, Symlink { target: Vec<u8>, target_type: Option<FileType> }}(None= broken),Error::{NotFound, PermissionDenied, Exists, NotEmpty, Unsupported, Cancelled, Io(String), Remote(String)}+needs_elevation(),From<io::Error>. - Trait
Location: Send + Sync(object-safe, blocking):scheme(),capabilities() -> Capabilities { write, trash, symlink, watch, permissions },list(&Uri, &mut dyn FnMut(Vec<Entry>) -> ControlFlow<()>)(Break →Cancelled),stat(lstat),open_read -> Box<dyn Read + Send>,open_write(&Uri, WriteMode::{CreateNew, Overwrite}),mkdir,rename(Existsif target taken),delete(file/link/empty dir),trash,symlink(link, target: &[u8]),watch(&Uri, Box<dyn Fn(WatchEvent) + Send>) -> Watch(drop stops;WatchEvent::{Changed(Vec<Uri>), Error}); defaults →Unsupported.Locationsregistry (with_local(),register,get,resolve).LocalLocation(file): 256-entry chunks,notify-debouncer-mini0.7 (200 ms, non-recursive); trash Unsupported until S007.mime::mime_type(name, kind)(mime_guess; dirsinode/directory, broken linksinode/symlink, links by own name then target; local fifo/socket/devicesinode/*). Examplels [--watch] <dir>.... - Verified: workspace build, clippy -D warnings, fmt --check; scratch dir (non-UTF-8 name shown raw as
%FF, broken/dir/file links, fifo, hidden,chmod 000folder → PermissionDenied, 10 000 files in 36 ms debug / 15 ms release);--watchreported create/modify/delete/mkdir once per path. - Not done: nothing. URI schemes
trash:///,ios://,mtp://,sftp://user@host:port/pathcome with their plans. - Later: local
renameuses a check-then-rename (race);renameat2(RENAME_NOREPLACE)would needlibc/rustix.
S004 — Base animated controls
- Done:
components/state-layer.slint:ForceState { none, hover, pressed, focused };Tooltip { text };StateLayer(base viainherits;enabled,force-state,tint,fill-tint,squeeze,tooltip,ring-offset; outhovered/pressed/focused/tint-opacity;clickedfor users,activatedfor the control itself;activate(); Space/Enter; ring only on Tab focus; tooltip Timer runs only while hovered). Button { text, icon, kind: ButtonKind { filled, tonal, outlined, text } }·IconButton { icon, toggle, checked, size, icon-size }(circle → squircle on press) ·Chip { text, icon, kind: ChipKind { filter, assist }, checked }(fixed width, label slides, check fades/scales) ·Switch { checked }(thumb slides/grows, halo tint) ·ListRow { icon, title, supporting, selected, trailing @children }·Tab { title, icon, active, closable; close() }·TabBar { tabs: [TabItem { title, icon }], current, max-tab-width; selected(int), close(int) }(equal widths, sliding indicator) ·TextField { label, placeholder, supporting, error, enabled, force-state, text; edited, accepted; out focused }.- Tokens:
Motion.squeeze-small/squeeze/squeeze-large,Motion.tooltip-delay;Theme.focus-ring-width/offset; Icons check, close, cancel, add, search, star, grid-view, music-note, description.theme_bridge::Themedtrait (MainWindow, Gallery);screenshot::run(options, new);tunal --gallery [--screenshot …](screenshot forces reduced motion). - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty; gallery PNGs light + dark looked at (all states), bad argument → usage, exit 1.
- Not done: press squeeze is invisible in PNGs (software renderer ignores
transform-scale, D-025); live hover/tooltip/animation not watched (no hidden session);TextFieldusesTextInput, notLineEdit(D-025). - Later: focus ring on
TextFieldis its 2 px border only; long tab bars (more tabs than fit) need scrolling.
S007 — File operations engine and trash
- Done:
tunal-core::ops—Jobs/JobHandle/JobKind::{Copy, Move, Delete, Trash, Restore, EmptyTrash, Mkdir, Rename, Link},Progress { phase: Queued/Scanning/Running/Finished, total/done files+bytes, current }(event ≤ every 100 ms),ConflictRequest { source, source_entry, target, target_entry, reply }→ConflictChoice { action: Skip/Overwrite/Rename(name)/AutoRename, apply_to_all },ErrorRequest { uri, error, reply, needs_elevation() }→ErrorAction::{Retry, Skip, SkipAll, Abort},Report { done_files, done_bytes, failures, cancelled };numbered/auto_rename(name (2).ext,.tar.*kept),is_inside. Scan pass, localio::copychunks (copy_file_range), stream copy for other backends, same-fs move = rename, else copy + delete; mtime/mode kept on local targets; partial files removed on cancel/error. tunal-core::trash: home trash +$topdir/.Trash/$uid(sticky check) /.Trash-$uidfrom mountinfo; exclusive.trashinforeservation, percent-encoded Path, local DeletionDate (jiff 0.2);items(),original(),restore(),TrashLocation(trash:///<id>:<name>, list/stat/open_read/delete), registered byLocations::with_local();LocalLocation::trashnow works. Exampleops(refuses unlessXDG_DATA_HOMEis inside its dir). URI format and job API: D-026.- Verified: workspace build, clippy -D warnings,
cargo fmt --check -p tunal-core;XDG_DATA_HOME=<scratch>/data cargo run -p tunal-core --example ops -- <scratch>: progress, auto-rename conflict, same-folder copy →a (3).txt, folder-into-itself refused, merge move, trash/list/restore with rename conflict, duplicate namesdup (2).txt, non-UTF-8 name encoded%FF, copy out of trash by original name (stream path), cancel mid-file (partial removed), chmod 000 → PermissionDenied flagged, rest copied; empty trash; real~/.local/share/Trashuntouched. - Not verified: per-mount
.Trash-$uidtrash and cross-device move (no second filesystem inside the scratchpad). Workspacecargo fmt --checkfails only on S005's in-progresscrates/tunal/src/main.rs. - Later: trash
directorysizescache; orphan.trashinfocleanup on empty; trash watch for live trash view; checking free space before copy.
S005 — Menus, dialogs and toasts
- Done:
components/overlay.slintOverlay { open, modal, enter/exit-duration; out progress; dismissed; place() }(full-window layer, scrim, outside click/scroll swallowed, hidden once its exit ends).Menu { items: [MenuItem { text, icon, shortcut, disabled, separator, submenu: [MenuEntry] }], leading-icons; activated(index, sub-index), closed; open-at(x, y), expand(i), close() }: scale + fade from the anchor, flips/clamps at window edges, arrows skip separators/disabled, Right/Left/Enter/Space/Esc, hover opens the submenu.Dialog { title, body, actions: [DialogAction { text, kind }], default-action, cancel-action, dialog-width, content-focus; action(i), focus-content; show(), close() }+ children slot: scrim fade, scale-in, Enter/Esc/scrim click, Tab wraps inside.ToastStack { toasts: [ToastData { message, action, cancellable, progress-kind: ToastProgress, progress, closing }], toast-width; action(i), cancelled(i), removed(i) }: slide/fade in and out, animated re-stack, auto-dismiss afterMotion.toast-timeout(paused on hover), determinate bar / indeterminate sweep.Tooltipmoved totooltip.slint, fades in.StateLayer.has-focus+grab-focus(ring). Tokens:Theme.float-shadow-*,scrim-opacity,window-margin;Motion.enter-scale,toast-timeout,indeterminate-period; 9 icons.tunal --gallery --page menu|dialog. - Overlay API: put
ToastStack,Dialog,Menulast in the window (width: 100%; height: 100%), thenmenu.open-at(btn.absolute-position.x, btn.absolute-position.y + btn.height),dialog.show()/close()fromaction, appendToastDatato the model and remove it onremoved(i)(D-031). - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty; looked at menu/dialog pages light + dark at 960×640, menu flipped at 720×480, controls page unchanged. Keys injected once through a temporary, uncommitted
dispatch_eventhook: arrow skip and wrap, Esc closing submenu then menu, Enter activating, dialog Tab/Shift+Tab wrap, Enter default, Esc cancel. - Not done: motion (scale, slide, re-stack, sweep) not watched live (screenshots force reduced motion; software renderer ignores
transform-scale, D-025); pointer outside-click and hover-open not exercised. Dialog content should hold one focus stop: aTextFieldwith text has two (input + clear), so Shift+Tab from its clear button wraps to the last action. - Later: focus doesn't return to the opener by itself (use
closed/ afterclose()); a menu opened from a button flips to end at the anchor point, not above the button.
S017 — Thumbnail generation and cache
- Done:
tunal-thumbs.Thumbnailer::new(Config { workers, max_file_size (64 MiB, images/SVG only), allow_remote, video_time: VideoTime::Percent(10)|Seconds, tool_timeout (15 s) });request(Request { path (absolute), size: ThumbSize::{Normal 128, Large 256, XLarge 512}, priority: Priority::{Low, Normal, High}, remote, done: Box<dyn FnOnce(Outcome) + Send> }) -> Ticket(cancel(): queued job →Cancelled, running ffmpeg killed).doneruns on a worker thread.Outcome::{Ready(cache PNG path), Skipped(Skip::{Unsupported, Remote, TooLarge, InCache, KnownFailure}), Failed(String), Cancelled}. Alsocache_path(path, size),thumbnail_dir(),ffmpeg_available(). - Cache:
$XDG_CACHE_HOME/thumbnails/{normal,large,x-large}/<md5 of file URI>.pngwithThumb::URI/MTime/Size, atomic write, 0700/0600; a thumbnail is valid whileThumb::MTimematches; failures infail/tunal-<version>/(1×1 PNG) until the file changes. Generators:image(EXIF orientation applied),resvg(system fonts),loftycover (front cover first),ffprobeduration +ffmpeg -ss … -frames:v 1PNG on stdout (no shell, killed on timeout/cancel; seek past end → first frame). ffmpeg missing or audio without cover →Skipped(Unsupported), no fail entry. - Verified: build, clippy -D warnings (workspace), fmt --check;
XDG_CACHE_HOME=<scratch> --example thumbon PNG, SVG, MP3 with cover, MP4 (looked at SVG and video PNGs), MP3 without cover (skipped), corrupt PNG (Failed, then KnownFailure), file inside the cache (skipped), missing ffmpeg via PATH (skipped), all three sizes. Workspace deps added: image, resvg, lofty, md-5. - Not done: cancel and timeout paths not exercised (code only); SVG
<text>did not render in the smoke run (system fonts not found in this environment; geometry fine); local files only — remote requests are gated by the flag, the pool readsstd::fs(S018/UI must hand remote files over another way). - Later: stale-thumbnail cleanup; video thumbnails of very short clips use first frame only when seek fails.
S019 — Tag model with lofty
- Done:
tunal-tags(lofty only).TrackTags(Optionfields: title, artist, album, album_artist, track_no/total, disc_no/total, date, genre, composer, comment, sixmb_*_id,cover: Option<Cover { mime, data }>,other_picturescount).TagSet::merge(&[TrackTags])→ per fieldMerged::{Same(Option<T>), Mixed}.TagEdit(same fields asEdit::{Keep, Set(v), Clear},cover: CoverEdit::{Keep, Set(Cover), Remove};is_empty,apply(&mut TrackTags),TagEdit::set_all(&TrackTags)for MusicBrainz apply). I/O:read(path),read_set(&[PathBuf]) -> (TagSet, Vec<(PathBuf, Error)>),write(path, &TagEdit)(touches only named fields; other items and non-front pictures kept; Keep-only edit writes nothing),write_many.Error::{Io, Tag(String), BadImage}. Cover must be JPEG/PNG (checked by magic bytes); MP4 front cover = its first picture. Exampletags [--title/--artist/--album/--comment/--track T] [--cover IMG|--no-cover] <files>(edits in place: scratch copies only). - Verified: workspace build, clippy -D warnings, fmt --check; ffmpeg fixtures mp3/flac/ogg/m4a in the scratchpad: title+track+cover written and read back on all four, PNG→JPEG replace, cover remove, non-image cover refused, comment/album round trip, untouched artist/genre kept, merged view over four files (cover Mixed when they differ).
- Not done: tracker artifact not updated (session had no ArtifactData). Dates are the raw string (
RecordingDate, falls back toYear); no Timestamp parsing. - Later: Vorbis
COMMENTkey (non-standard, ffmpeg writes it) is not read as the comment, onlyDESCRIPTION; lofty rewrites the file in place (no temp-file + rename); sort-order and lyrics fields; multi-value artists.
S020 — MusicBrainz and Cover Art Archive client
- Done:
tunal_tags::Client(Client::new()real services;Client::with_bases(mb, caa)for mocks).search_releases(artist, album, track_count, limit) -> Vec<ReleaseHit { id, title, artist, date, country, track_count, release_group_id, score }>,search_recordings(title, artist, album, limit) -> Vec<RecordingHit { id, title, artist, length_ms, releases, score }>,release(id) -> Option<Release { id, title, artist, artist_ids, date, country, release_group_id, genres, disc_total, tracks: Vec<Track { disc, position, disc_track_count, title, artist, artist_ids, recording_id, track_id, length_ms }> }>,front_cover(release_id) -> Option<Cover>(front-500, redirects followed, JPEG/PNG only; sameCoveras S019).match_tracks(&[FileInfo { disc, track, title, duration_ms }], &Release) -> Vec<Option<usize>>(index intorelease.tracks; position 60 + duration ≤ 3 s up to 20 + title bigram similarity up to 40, threshold 40, each track once). ErrorsNetError::{Http, Status, Parse}; all calls are blocking (run off the UI thread). - HTTP:
ureq3 with rustls + ring (cargo tree -i aws-lc-rsempty), User-AgentTunal/<version> ( … ), one process-wide limiter (≥ 1 s between requests to either service, shared by allClients), 503/429 retried after 2 s, 4 s, 8 s thenStatus; 404 →None; 30 s timeout, 16 MiB body cap. Workspace deps added: ureq, serde, serde_json. Mapping ofReleaseto tags (mb_*ids, track/disc totals, genre) is left to the editor plan (S021) viaTagEdit. - Verified: build and clippy -D warnings and fmt --check for
tunal-tags; examplembagainst a scratchpad mock (python, not committed): requests 1 s apart (stamps 0.00/1.00/…), lookup got 503 once and succeeded after the 2 s pause, cover via 307 redirect, matching of 3 made-up files. Real services never contacted. - Not done: workspace-wide clippy currently fails in
tunal-core(S008's in-progressplaylist.rs), not in this plan's files. Real MusicBrainz JSON shape checked against docs only, not live. No search by AcoustID. - Later:
incfor labels/barcode; honourRetry-After; cache of lookups.
S008 — Folder model and details view
- Done:
crates/tunal/src/folder/FolderModel(SlintModel<Data = DetailRow>, rows formatted on demand):attach(&MainWindow, Locations) -> Rc<FolderModel>wires rows,FolderState, sort menu and view callbacks;open(Uri)(worker thread: watch, chunked list flushed at most every 60 ms, playlist lookup; a generation drops stale results),open_blocking(screenshots),sort_column,sort_menu/sort_menu_activated,set_filter/type_filter,toggle_hidden,click(row, ctrl, shift),navigate(NavKey, shift, page) -> row,select_all,clear_selection,activate(row)(opens folders). Selection, cursor and anchor are kept by raw name across sorts and watch diffs. Sort name (natural)/size/type/modified/playlist, desc, folders first; groups type/date/size with header rows; hidden toggle; filter chip; empty/loading/error states; Type column hidden below 640 px. tunal-core::playlist(D-030):read,parse,candidates(folder, entries)(preselected first),Ranks,music_dir,shared_dir.icons.rs:Category::of(entry),glyph,group_label,link_badge,type_label. Shared components gainedStateLayer.focusable/modifiers/double-clicked,ListRow.badge, 3 icons.tunal <dir>opens a folder (also with--screenshot).- Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty; looked at 10 000-file light + dark, mixed folder (links, broken link, non-UTF-8 name, groups, selection, filter chip, 720x480), permission-denied / missing / empty folder. A temporary uncommitted hook dumped row order for every sort/group/filter/selection case, injected keys through the window (arrows, Shift, End, Ctrl+A, Ctrl+H, typing, Backspace, Esc), checked playlist sort on m3u/xspf/pls/cp1252/UTF-16 wpl, and drove the watch path (insert, remove, rename, playlist edit and removal re-sort) through a message queue.
- Not done: no live window run (pointer clicks, double-click, header/indicator motion, sort menu, PageUp/Down page size not exercised in a real event loop). No folder item counts in the Size column.
- Found: the local watch (S006) also reports reads (opening a file, listing the folder). The model ignores events whose stat is unchanged, and the folder's own event unless it is gone; the shared playlist watch compares mtime/size. Without that, listing and watch looped.
- Later: filter access events in
LocalLocation::watchitself (debouncer-mini hides the event kind); back/up navigation and per-folder sort in.directory(S010, S015).
S022 — Audio player backend
- Done:
tunal-player.Player::new(on_event: Fn(Event) + Send)(engine thread; events called there):open(path),play(),pause(),stop(),seek(Duration),set_volume(0..=1)(atomic, immediate),volume(); drop joins the thread.Event::{Opened { path, duration }, State(State::{Stopped, Playing, Paused}), Position(Duration) (~10×/s while playing, once after open/pause/stop/seek), Ended (then Stopped at 0), Error(Error)}.Error::{Unsupported, Io, Decode, NoDevice, Output, Cancelled}(Clone, Display). - Pipeline: symphonia 0.5 (mp3, flac, vorbis/ogg, aac/mp4, wav; accurate seek, gapless) → channel map (mono fans out, mono out averages) → rubato 0.16
FftFixedInwhen rates differ (delay trimmed) → rtrb 0.4 ring (0.5 s) → cpal 0.18 default device (f32/f64/i16/i32/u16/u8). Pause =stream.pause(), engine blocks on its channel when not playing; stop/seek/end drop the stream. Device missing →Error::NoDevice. Waveforms::request(path, buckets, done) -> WaveTicket(cancel()): own thread,(min, max)per bucket over all channels + duration; memory cache by (path, mtime, buckets), hit callsdoneat once on the caller thread. Exampleplay [--volume V] [--buckets N] <file>.- Verified: workspace build, clippy -D warnings, fmt --check; example on ffmpeg fixtures in the scratchpad (wav, mp3, flac, ogg, m4a, mono 22.05 kHz): positions advance, pause, seek to 2.5 s, Ended, 800 buckets, cache hit ~30 µs; opus →
Unsupported; missing file →Io;ALSA_CONFIG_PATH=<empty>→NoDevice, waveform still fine. - Not done: audible check not done (volume 0); cancel path of waveforms exercised only by code; mid-stream spec changes skip the packet; device loss mid-play reports
Outputerror and stops (no reconnect). - Later: waveform worker pool instead of a thread per request; resume on default-device change.
S009 — Icon grid view and list motion
- Done:
views/grid-view.slintGridView(ListView ofGridRow { header, start, count, headers-before }lines fromFolderModel::grid_lines(); columns = visible width / 112 px, reported bycolumns-changed→set_columns; cells stretch; 48 px icon, two-line word-wrapped elided name, selection fill grows like ListRow, cursor ring; Left/Right/Up/Down/Page/Home/End by grid line).views/view-switch.slintViewSwitch { mode; selected(ViewMode) }(sliding pill) andFolderView(both views over one model, cross-fade, list and travel clocks; same callbacks as DetailsView +columns-changed,motion-settled, inlines). SharedFolderKeys,FilterChip,FolderMessages,HeaderCell,Columnsexported from details-view.slint;NavKey.left/right;Travel,ViewMode. folder/motion.rs: keys per row (raw name / header label), leaving copies merged after their old neighbour, detailsfrom-y(rows) with grow/collapse heights, gridfrom/toin cells, cell lines and header lines; interruptions continue from drawn positions; > 2000 rows instant. Model API:set_mode,set_columns,grid_lines,motion_settled,set_list_time,open_travel(activate=Travel::Into). Tokens:MotionPrefs.list-change,Motion.travel-shift,Motion.settle(),MotionClock; iconview-list. Mode location: D-033.- Verified: real tree (with S010's shell, which wires FolderView/ViewSwitch): workspace build, clippy -D warnings, fmt --check, literal grep empty; details + grid screenshots light + dark in the shell (grid only after keeping the Shell alive in a scratch copy: S010's screenshot path drops it, reported). In a scratch copy with S010 reverted: screenshots details/grid light + dark, 720×480 grouped grid, selection + cursor; a dump of row motion data for sort flip, filter, interrupted filter, grid sort and grid filter; first frame after a sort flip draws the old order (clock starts before paint) in both views; with
TUNAL_REDUCED_MOTION=1the new order at once. Literal grep empty. - Not done: navigation slide and live motion not watched (no event loop offscreen; S035);
tunal --screenshotin the grid view shows one column until S010 keeps the Shell alive in its screenshot path. Screenshot envTUNAL_VIEW=gridadded. - Later: a live switch to reduced motion during a change leaves its leaving rows until the next change; entering rows interrupted mid-growth jump to full height; grid thumbnails (S018) go in
GridCell.
S010 — Tabs, split view, breadcrumbs, history and places
- Done:
config.rs($XDG_CONFIG_HOME/tunal/<name>.toml,loadwith defaults, atomicsave/store;Settings { restore_session, show_sidebar },Session { tabs: [{ panes: [uri], active }], current }saved on window close).shell/:Shell::attach(ui, locations, tabs, blocking)owns tabs (rows in opening order +slot), onePaneper view (pane.rs: ownFolderModel, back/forward stacks,open_travelinto/up/back/forward, deliver by pane id), split toggle (F3, new pane active), active pane header;path.rscrumbs (Home stands in for its path,File system,Trash), typed paths (~,.., relative, anyscheme://), folder completion off-thread;places.rs(home +user-dirs.dirs+ Trash, bookmarks inplaces.tomlwith rename/move/remove menu and dialog, collapsed sections;Places::set_section(Section::Devices|Network, Vec<Place>)for later plans,#[expect(dead_code)]until used). UIui/shell/{tab-bar,toolbar,breadcrumb,pane,sidebar,status-bar}.slint; MainWindow is per pane now (D-034). Mouse back/forward via the winit event hook (unstable-winit-030).StateLayergainedpointer,moved,mouse-x,pressed-x.tunal [<dir>…] [--split a b]. - Open a URI in a new tab:
Shell::open_tab(vec![uri]); show_current()(private; add apub fnwhen a plan needs it from outside the shell). - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty; looked at light + dark 1200x760 with two tabs, split view and sidebar, restored session (3 tabs, bookmarks, collapsed section), breadcrumb editing with completion list. Temporary uncommitted hook in a scratch copy: history (into/up/back/forward/crumb), typed paths, completion of 5 inputs, select-all status, tab new/move/cycle/close, split, bookmarks add (deduped)/move/rename/remove, session + places files written and read back; real key and pointer events through the window: Ctrl+T/W/Tab, Ctrl+L + typing + Enter/Esc, Alt+arrows, F3, F9, middle-click close, drag tab to front, click empty breadcrumb, place and crumb clicks.
- Not done: mouse back/forward buttons not exercised (winit only; no live window). Tab and section motion not watched (software renderer ignores
transform-*; screenshots are single frames). Completion list delivery needs the event loop (logic and list checked separately). A closed tab vanishes at once; the others slide over. - Later: tab bar scrolling past the minimum width; drag-reorder bookmarks in the sidebar; per-place glyph on tabs (Music shows a plain folder); Backspace to go up.
S025 — MTP protocol over nusb
- Done:
tunal_devices::mtp(D-007, nusb 0.2, jiff for dates).Transporttrait (max_packet_size,sendone bulk-out transfer / empty = ZLP,receive(max)one bulk-in transfer,event(timeout));UsbTransport::open(&DeviceInfo)(interface 6/1/1 or vendor 0xFF named "MTP",detach_and_claim_interface, clears halt on stall, 10 s per transfer),devices(),mtp_interface().Container/Header/Kind,Writer/Reader(ints, arrays, PTP strings, dates,Valueby data type),parse_date(local,Z,±hhmm) /format_date(local). Session<T>:new,open(id) -> &DeviceInfo(takes over SessionAlreadyOpen),close,supports(op),event,request,request_data,transaction(op, params, DataOut::{None, Bytes, Stream(reader, len)}, Option<sink>)(tid 0 outside a session, 1.. inside; header travels with the first 256 KiB chunk; host ZLP after aligned data; skips empty transfers before a container; bytes past a data phase kept for the next container (devices without ZLP); >4 GiB0xFFFFFFFFlength read to the short transfer; a failing sink drains the phase so the session stays in step).- Ops:
device_info,storage_ids,storage_info,object_handles(storage, parent),object_info,object(h)(64-bit size via ObjectSize when needed),list(storage, parent) -> Vec<Object { handle, storage_id, parent, format, name, size, modified }>(one GetObjectPropList depth 1 for folders when supported, else ObjectInfo per handle; top of storage always ObjectInfo),object_prop_list,prop_value,get_object(h, &mut Write),get_partial_object(h, offset, len, &mut Write)(0x95C1 if offered, else 32-bit),send_object_info(storage, parent, &NewObject { name, size, modified, folder }) -> (storage, parent, handle),send_object(&mut Read, len),delete_object,move_object,copy_object,rename.code::*constants,Error::{NoInterface, Usb, Disconnected, Timeout, Protocol, Response(u16), Io},code::response_name. Parentcode::ROOT= top of storage. ReplayTransport::new(packet, Vec<Step::{Out(container), In { data, zlp }}>)+finished(); examplemtp_replay <scratch dir>(script bytes built by hand, not by the crate).- Verified: workspace build; clippy -D warnings and fmt --check for
tunal-devices; example: open, device/storage info, list root (ObjectInfo) and folder (prop list without ZLP, read-ahead path), 512 KiB download with its ZLP in a transfer of its own (bytes match), range read, packet-aligned 300 KB upload streamed from a file (host ZLP checked), rename, move, copy, error 0x2009 →Response, close, script finished; dates checked in local time (CST).devices()on this PC: 0. - Not done: no real device (S036). Workspace-wide clippy/fmt currently fail only in S011's in-progress
crates/tunal/src/{smoke,actions,jobs_bridge}.rs. Events only decoded, not acted on. I touchedcrates/tunal-devices/src/lib.rs(onepub mod mtp;line) and addedexamples/, outsidesrc/mtp/**. - Later: MTP class Cancel request (0x64) for aborting a running transfer; GetObjectPropsSupported checks; event-driven refresh (ObjectAdded/Removed) in S026.
S011 — File operation actions
- Done:
actions.rsregistryAction(id, label, glyph, shortcut,enabled(&Context)), used by the key hook (action-key), the context menu (right click on a row or the empty area; default layout, Trash has its own) and the toolbar's ⋮ menu. Action ids:cutCtrl+X,copyCtrl+C,pasteCtrl+V,copy-pathCtrl+Shift+C (system clipboard through a hiddenTextInput),renameF2,new-folderCtrl+Shift+N,trashDel,deleteShift+Del (confirm),restore,empty-trash(confirm). Internal clipboard (Clipboard { uris, cut }; cut items dimmed in every pane throughFolderModel::set_cut). - Inline rename:
DetailRow.editing,FolderState.edit-row/edit-select,components/rename-field.slint(base name preselected, Enter accepts, Esc cancels, moving the cursor ends it); new folder is made at once asNew folder (N)and its name edited when it shows (FolderModel::select_when_shown).jobs_bridge.rsBridge: progress toast after 300 ms (determinate, cancel), summary toast, conflict dialog (dialogs/conflict.slint: both sides' size/date, apply to all, Skip/Keep both/Replace or Merge), item error dialog (Retry/Skip/Skip all/Abort, Esc = Skip; marked// S016for the elevation hook), failure list after a job, confirm dialog; prompts queue one at a time; panes whose location can't watch (the Trash) list again after each job (FolderModel::refresh). - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty. Temporary uncommitted harness (own event-loop platform on the software renderer, scratch dir,
XDG_DATA_HOMEin the scratchpad), real window callbacks: copy + paste onto a name → conflict dialog screenshot, Keep both →file (2).txt; cut dims; F2 → field screenshot, rename on disk; Ctrl+Shift+N →New folder, named; Del → Trash;trash:///screenshot and menu, Restore → back at its place; Shift+Del → confirm, delete on disk. - Not done: no live window (pointer right click, Esc in the field, real typing, toast cancel, drag); Rename choice in the conflict dialog (only Skip/Keep both/Replace); the error dialog and failure list were not shown (no failing job triggered); system clipboard copy of files for other apps and drag and drop are later plans; a watch event while a name is edited rebuilds the field (typed text is lost).
- Later: accept on blur needs a way to tell focus loss from a row rebuild (rows rebuild on every pane change); Undo toast; a numbered-rename field in the conflict dialog; reveal row after paste.
S013 — Settings dialog and editable context menus
- Done:
settings.rsSettingsUi(dialogdialogs/settings.slint, pages General, View, Previews placeholder, Motion, Context menus; every change stored insettings.tomland applied at once: hidden/folders first to open panes, view/sort/group are defaults for new panes, Motion throughtheme_bridge::set_motion).menus.rsMenus(menus.toml, one id list perContext::{File, Folder, Multiple, Empty, Trash},-= separator, missing context = default, unknown ids skipped).dialogs/menu-editor.slint: add (click), remove, reorder by grip drag or arrow buttons (animated slots, applied after settle), separator, reset. Context menus and the toolbar ⋮ menu are built from the model (Actions::menu_items; right click on empty area = Empty, ⋮ = by selection). Actionsettings(Ctrl+,) is in the registry, default in the Empty menu. - Add an action: new
Actionvariant inactions.rs(+ALL, id/label/glyph/shortcut/enabled/run). It shows in the editor's "Add" list at once. To put it in a default menu add its id toContext::defaultsinmenus.rs(users with an edited menu add it themselves; a menu never edited gets it). - Verified: build, fmt --check, literal grep empty; screenshots of View and Context menus pages; with a temporary hook (removed) moved
deleteto the top of File,menus.tomlwritten, restart showed the new order in the context menu. Clippy: only S012's unusedsmokemethods fail. - Not done: sidebar place menu still its own fixed list (Open in new tab, bookmark edit). No live drag run (pointer drag, motion); clippy not clean until S012 lands.
TUNAL_SETTINGS=<page>opens the dialog in a screenshot. Shared filesactions.rs,app.slint,main.rs,shell/mod.rshold S012 hunks too: left uncommitted here. - Later: autoscroll while dragging in a long menu; Previews page (S018); sidebar menu from the model.
S012 — Properties, Open and Open with
- Done:
properties.rs(Properties::show(uris);gatherthread: stat, then recursive count with live updates every 100 ms, cancelled when the dialog closes; type, location, link target, dates (accessed/created for local files), owner/group from /etc/passwd + /etc/group,rwxtext + 3×3 grid, multi-selection summary; empty-area menu = the folder).open.rs:open(path, done)= portalOpenURI.OpenFile(zbus, fd) thenxdg-open(no shell);Opener(Enter/double-click on a file viaFolderModel::activate→Option<Uri>, actionsopen,open-with).desktop_apps.rs:.desktopscan (XDG dirs, ids, localized Name),mimeapps.list(defaults/added/removed, all XDG files),Apps::choices(mime),set_default(atomic, keeps other lines),split_exec+command_lines(%f %F %u %U %i %c %k %%, one launch per file when no list code),launch(detached, no shell,Terminal=trueviaxdg-terminal-exec),IconTheme::load().find(name, size)(gtk theme + Inherits + hicolor + pixmaps; S015 reuses this). Dialogsdialogs/{properties,open-with}.slint; actionsopen,open-with,properties(no shortcuts) in the registry and S013's default menus. - Verified: workspace build, clippy -D warnings, fmt --check; screenshots (temporary hook, removed): properties for a file (light) and a folder (dark, count 2 files/2 folders, 298 KiB), Open with for a text file (icons from theme, svg ok); temporary test (removed): Exec splitting/expansion for %f, %U, one launch per file,
set_defaulton an empty and an existing mimeapps.list in a scratchXDG_CONFIG_HOME. - Not done: no live window (double-click open, portal call, a real launch); Alt+Enter shortcut; mixed file+folder selection with Open sends folders to the portal.
- Later: properties editing (permissions, owner); open folders in new tabs; Alt+Enter; icons loaded lazily for long lists.
S038 — Expressive restyle
- Done:
ui/shapes.slintShapeKind { circle, cookie4, cookie6, cookie9, cookie12, clover, scallop }+Shapes.path(from, to, t, turn)/Shapes.wave(length, wavelength, amplitude, thickness, phase)(Rustshapes.rs, polar curves in a 100x100 viewbox, resting shapes cached; set intheme_bridge::apply).components/shape.slintShape(shape,active-shape,activemorphs + turnsTheme.shape-morph-turn,turn,fill/active-fill,glyph,glyph-color,size,glyph-ratio,@childrenfor badges) andFileShapes.shape/active-shape/fill/ink(glyph)(folder cookie9 primary, media tertiary, others secondary). Pill = Rectangle +corner-full. StateLayerripple (on by default,ripple: falseto opt out): spreads from the left-press point overMotionClock, fades after release; flat tint stays at hover strength while pressed.ListRow.shaped(+shape,active-shape,shape-size,shape-fill,shape-ink): selected morphs to the active shape onprimary.IconButton.tonal(resting circle) and toggles morph circle → cookie9.- Tokens:
corner-card24,corner-menu14,corner-menu-item10,shape-morph-turn,shape-enter-turn,wave-stroke/amplitude/length,dialog-shadow-*,card-shadow-*(float shadow now the design refs' popup values);Motion.rise-shift,Motion.wave-period. Icons: settings + file categories. - Shell: window on
surface-container, content (toolbar, panes, status) on a roundedsurfacecard with a faint lift; sidebar rows shaped (resting shapes cycle, current = cookie9); tonal toolbar circles; current crumb a filled pill. Views: shaped glyphs per category in rows (32 px) and grid (56 px, tiles aresurface-container-lowcards); content risesrise-shiftas it fades in.Dialog.glyph(cookie6 that turns in while opening, centred title; set on every dialog); menus 14 px with 36 px item pills; toasts 56 px,corner-lg, wavy progress (moves only while the job runs, still under reduced motion). - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty; looked at gallery light/dark, shell light (split, real places), music folder dark, grid dark, menu + toasts, dialog dark, settings dialog.
- Not done: ripple/morph motion not watched (single frames); the software renderer draws stroked paths unevenly, so the wave is a filled band. Settings page list still plain rows.
- Fix: shapes kept a margin in their path (the software renderer cut tips flat at the element's left/right edge;
Theme.shape-margin); breadcrumb crumbs keep natural width, only the first elides, then the row slides left so the current folder stays visible. - Later: tune clover depth (reads like a plus); shaped rows in the settings nav; user asked for an "Icon style" setting (shaped / plain glyphs / system icon theme via
IconTheme).
S027 — ssh config and known_hosts
- Done:
tunal-netssh_config::SshConfig(load_default(),load(file, ssh_dir),parse(text, ssh_dir),hosts()= concrete aliases in file order,resolve(alias) -> Resolved {alias, host_name, port (22), user, identity_files, identities_only, unsupported_proxy}): first value wins per option, identity files collect from all matching blocks, negated patterns win,Matchblocks skipped,Include(globs,~, relative to ~/.ssh, depth 8), ProxyJump/ProxyCommand setunsupported_proxy.known_hosts::KnownHosts(load_default()reads ~/.ssh/known_hosts + own file,add_file,add_text,check(host, port, key_type, key_b64) -> HostCheck::{Match, Mismatch, Unknown, Revoked}): plain (comma lists, wildcards,!), hashed|1|HMAC-SHA1,[host]:port,@revoked,@cert-authorityignored.own_file()=$XDG_CONFIG_HOME/tunal/known_hosts;accept_key(file, host, port, key_type, key_b64)appends one line (creates dirs) and refuses paths under ~/.ssh. - SFTP/UI use: connect →
resolve(alias); after the SSH handshakecheck(...): Unknown → ask user, thenaccept_key(own_file()?, ...); Mismatch/Revoked → refuse. Key blob = base64 as in a known_hosts line. - Deps (workspace): base64 0.23, hmac 0.13, sha1 0.11.
- Verified: workspace build, clippy -D warnings, fmt --check;
cargo run -p tunal-net --example ssh_smokewith HOME overridden: Include file listed, first-match/negation resolution, plain + hashed + port + revoked + ca entries, accept then Match, write under ~/.ssh refused, sample ~/.ssh unchanged. - Not done: no real ~/.ssh read;
Matchconditions not evaluated (block skipped);%h-style tokens only for HostName; no host-key algorithm negotiation preference.
S039 — Relative dates and clock
- Done:
format::datefollowsDateStyle(Relative default: Just now, N minutes/hours ago, Yesterday/weekday + time,Nov 3, 3:42 PM,Nov 3, 2024; Absolute:Nov 3, 2025, 3:42 PM) andClock(12h default, 24h) kept in process-wide atomics (format::set_dates).format::long_date(Properties) always absolute, with seconds, in the chosen clock.settings.tomlkeysdate_style(relative|absolute),clock(12h|24h); Settings > General has "Dates" and "Clock" chips; a change redraws every pane at once (FolderModel::redraw_dates). - Tick: one 60 s repeating timer in
SettingsUiredraws panes that hold an entry under 1 hour old; other ticks repaint nothing (timer itself keeps running). - Verified: workspace build, clippy -D warnings, fmt --check; screenshot of a scratch folder: 2 hours ago, 5 minutes ago, Just now, Friday, Nov 9, Nov 18 2025, Yesterday, all 12-hour.
- Not done: 24-hour and Absolute not screenshotted; timer not stopped when nothing is fresh; "visible row" check covers all rows of a pane; conflict dialog dates use the same setting but were not looked at.
S014 — In-app drag and drop
- Done:
dnd.rsDragDropon the SlintDndglobal (components/drop-menu.slint:DropTarget {row, pane, tab, crumb, place, bookmarks},DropAction {ask, move, copy, link},DropZone= DropArea + animated primary glow,DropMenu). Sources: rows/cells (DragArea, selection if the row is in it, else the row), bookmarks (user data, reorder only). Targets: folder rows/cells, pane background, tabs (open afterMotion.drag-switch-delay), crumbs, places, bookmarks header/empty text (adds local folders). - Payload:
text/uri-list(dnd::uri_list/parse_uri_list, CRLF) as plain text, plusset_file_pathswhen all local. Entry point:DragDrop::drop_uris(sources, dir, DropAction)(native DnD S030/S031 calls it; refuses self/descendant/same folder/read-only).DropAction::Askstores the drop and opens the menu (open-drop-menu,drop-chosen). - Modifiers: Slint's drop event proposes move for both Shift and no key, so
Dnd.shiftis tracked by the window'scapture-key-pressed/released; Ctrl/Ctrl+Shift come from the proposed action. - Drag image: SVG pill (name, count badge) in theme colours via
Image::load_from_svg_data. Sidebar Flickable hasmouse-drag-pan-enabled: false. - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty;
TUNAL_DRAGsmoke (new, in screenshot.rs): drag held over a folder row (glow + drag image), drop → menu over the row; folders dropped on Bookmarks added; bookmark dragged onto another reordered (places.toml). - Not done: no live window (real pointer, Shift/Ctrl keys, tab hover switch, menu choice running a job); count badge not looked at (single-item image only).
- Later: autoscroll at list edges while dragging; select the row a drag starts from; spring-open folders on hover; breadcrumb crumbs overlap in a long path (seen in S014 smoke, already in HEAD before S014).
S015 — .directory folder metadata
- Done:
tunal-dirmetaDirMeta(parse/load/save, lossless line store: comments, blank lines, unknown groups/keys,Name[de], missing final newline kept;get/set(group, key, Option), empty group dropped; empty file removed on save). Typed:icon/set_icon([Desktop Entry] Icon),name/set_name(localized by LC_ALL/LC_MESSAGES/LANG),glyph/set_glyphandview/set_view/has_view/clear_viewin[X-Tunal](Glyph,Viewdetails|grid,Sortname|size|type|modified|playlist,SortOrder,Group,ShowHidden,Previews(read/written, not applied: no previews setting yet),Playlistfile name for D-021). - Per folder: view mode, sort + order, grouping, hidden files, playlist sort. Opening a folder with them applies them over the pane's settings and restores the pane's own on leaving (
inherited); a folder that remembers its view writes later changes back (off-thread). - Apply:
folder/look.rs(Look {name, glyph, picture}read off-thread after the listing, cached by.directorymtime;Iconresolved viaIconTheme::load_places()); rows show name/glyph/picture, shape stays the folder's (DetailRow.shape-glyph,picture,has-picture); the display name sorts and filters, rename edits the real name. Breadcrumb and sidebar show the name with the real name as tooltip (Crumb.tip,PlaceItem.tip). - Dialog: action
appearance("Folder appearance…", in the folder and empty-area menus; one selected folder, else the folder shown):ui/dialogs/folder-appearance.slint,folder/appearance.rs. Display name, icon picker (Default, 17 Material glyphs, themefolder-*icons), image path field, "remember view" switch. Save runs off-thread;PermissionDeniedshows an error and turns Save into "Save as administrator" (Elevation::write_filefrom S016). - Small changes outside the plan files:
desktop_apps.rs(IconTheme::load_places,names),TextField.focus-input,Shape/ListRowpicture,actions.rs/menus.rs/shell/mod.rs(action,run_action,show_chromepub(crate)),main.rs(TUNAL_APPEARANCE). - Verified: workspace build, clippy -D warnings, fmt --check; round trip with
cargo run -p tunal-dirmeta --example roundtrip -- <dir>(diff = the Icon line only); screenshots: folder list with custom names, glyphs and a theme image icon; the dialog. - Not done: no live window (menu click, real save, polkit prompt via "Save as administrator" is a user check); previews not applied; image picker is a path field (no file chooser); grid view not looked at; sidebar/crumb names only for local folders.
- Later: file chooser for the image;
Previewsonce a setting exists; names for places other than local folders.
S016 — Root operations through pkexec
- Done:
tunal-elevate:protocol(frames = u32 BE length + kind byte + JSON message or raw data;RequestHello/Stat/List/OpenRead/OpenWrite/Read/Write/Close/Copy/Mkdir/Rename/Delete/Symlink,ReplyHello/Done/Entry/Entries/Handle/Progress/Error;VERSIONhandshake).serve()= helper (LocalLocation as root, absolute paths only, no shell, no env, exits on EOF);mainruns it first for--elevated-helper.ElevatedLocal::start()=pkexec <current_exe> --elevated-helper(126 cancelled, 127 not authorized, "no polkit authentication agent", pkexec missing →Error::Remotetext);spawn_unelevated(exe)for smoke;copy_filewith progress. - How to call:
Elevationis the jobs'file://backend (registered injobs_bridge::Bridge::attach): local, except threads passed toelevate(ThreadId). Error dialog on PermissionDenied adds "Retry as administrator" (index 4) → elevates the job's thread (taken from the event sink) and answers Retry, so the rest of that job runs through one shared helper;JobEvent::Finishedreleases the thread, helper stops when none is elevated; a failed launch drops the elevation. Outside jobs:Bridge::elevation().write_file(uri, bytes)(blocking, off the UI thread) — for.directorysaves. - Policy:
assets/polkit/org.tunal.Tunal.elevated-helper.policy(POLICY_ID), exec.path/usr/bin/tunal, argv1--elevated-helper,auth_admin_keep; S037 installs it. - Verified:
cargo run -p tunal-elevate --example helper_smoke -- <scratch>(mkdir, 700 KB write/read back, copy, Exists, rename, symlink, list, delete, relative path refused,Elevationthread switch + write_file, helper exits on EOF, dir left empty); realtunal --elevated-helperunderenv -ianswers the handshake and exits 0 on EOF; build + clippy -D warnings + fmt --check clean on HEAD + S016 files (scratch worktree; the shared checkout fails only on S015's in-flight files);sh -cgrep empty. - Not done: no pkexec/polkit run (D-009, S036); "Retry as administrator" not clicked in a live window;
.directorysave not yet wired towrite_file(S015's files; API sent to S015);Bridge::elevationhasallow(dead_code)until then. - Later: remove that allow once S015 calls it; elevated trash goes to root's trash (left as is: Elevation passes trash through the helper → Unsupported).
S018 — Thumbnails in the views
- Done:
thumbs_bridge.rs(Thumbs: sharedtunal-thumbspool built from settings, rebuilt when max size / video frame / remote change; PNG decode off the UI thread;on_network_fsfrom mountinfo).FolderModelownsfolder/previews.rs(LRU of 200slint::Image, requests in flight, files without a thumbnail). Views reportviewport-changed(top, height, row, cell)(init, scroll, resize, cell size); the model asks for rows in view (Normal priority) + a few beyond (Low), cancels the rest; details use 128 px, grid 256 px.DetailRow.thumb/has-thumb;Preview(components/thumb.slint) fades glyph out and a rounded tile in on arrival (cached ones appear at once). Grid cells grow to a 80 px slot with previews. Toolbar toggle (per pane, per folder via.directorypreviews), defaultpreviewsinsettings.toml; Settings → Previews page: on/off, video frame (percent/seconds + stepper), largest image (MiB), network drives. - Verified: build; clippy -D warnings on
tunal/tunal-thumbs(--no-deps; only S026'splaces.rsexpectation andtunal-deviceslint fail); fmt; literal grep empty; screenshots (reduced motion) of image/SVG/MP3 cover/MP4/plain mp3/broken png folder in details + grid, light + dark, previews off (settings.toml), Settings Previews page. - Not done: arrival fade, scroll cancel and live toggle not watched (single frames); a link badge hides while a thumbnail shows; video frame change doesn't redo existing thumbnails; plain
workspaceclippy red until S026 fixestunal-devices. Screenshots now draw once, runShell::settle_thumbs, then draw again. - Later: preview panel; thumbnails for PDFs; remote locations (SFTP/devices) need a read path in the pool.
S026 — Android devices over MTP
- Done:
mtp::MtpLocation(Location, schememtp):mtp://<serial>/= the device (its storages as folders<id hex>),mtp://<serial>/<storage>/<path>. Path → handle walk over a children cache (miss → one fresh listing), handle → URI map for events; list (always fresh), stat (fresh ObjectInfo), open_read (GetPartialObject(64) in 1 MiB chunks, session locked per chunk; else GetObject on a thread through a pipe, short stream → error), open_write (spooled to an unlinked temp file, sent onflush; unflushed drop sends nothing; Overwrite deletes the old object first), mkdir, rename (move + ObjectFileName), delete (permanent,NotEmptyfor non-empty folders; trash Unsupported so the UI confirms). Capabilities write + watch. Watch: per-device interrupt thread (Transport::take_events) turns ObjectAdded/Removed/InfoChanged/PropChanged intoChanged([child uris])for the watched folder; storage events re-read storages and refresh the sidebar. mtp::watch(location, on_change)(hotplug.rs): nusbwatch_devices+ initial scan, key = serial (URI-safe) elseusb-<bus>-<addr>;connect(key, name, usb id, transport)/disconnect_usb(id)/places() -> Vec<DevicePlace { name, uri }>(one per storage, "Model · Storage" when several; one device entry while it has a problem).mtp::Error::{Busy, PermissionDenied}from nusb kinds.- Messages (shown as the folder error when the device entry is opened): busy, no USB permission (udev rule), locked / no file transfer (no storages; re-checked on open, StoreAdded refreshes).
- App:
devices_bridge.rs(registeradds the backend toLocations,attachfills Devices viaShell::set_devices, glyphsmartphone); hotplug failure → one stderr line. Example helpers moved toexamples/common; new--example mtp_location(busy/locked phones, list/stat/read/write/mkdir/rename/delete over replay). - Verified: workspace build, clippy -D warnings, fmt --check and the screenshot in a scratch worktree (HEAD + S026 only; the shared checkout fails on S018's in-flight settings files); app with no phone: Devices "No phones connected", no error;
mtp_locationandmtp_replaypass. - Not done: real phone, hotplug events, MTP events, permission message (S036). Breadcrumb shows the serial and storage hex, not names. Long transfers hold the device lock (listing waits).
- Later: device/storage names in breadcrumb; cancel a running GetObject (MTP Cancel request); free space in the sidebar tooltip.
S021 — Tag editor UI
- Done: action
edit-tags("Edit tags…", enabled when every selected entry is a local audio file; in the File and Several-items default menus; a savedmenus.tomlkeeps its own layout).tags_bridge.rs(Tags),ui/dialogs/tag-editor.slint(TagEditorDialog),tag-lookup.slint(TagLookupDialog). Editor: 12 text fields (title, artist, album, album artist, genre, composer, date, track/disc no. and total, comment), mixed ones empty with "Keep"; an untouched field stays Keep, emptied = Clear, typed = Set (numbers checked); cover box (current/new/removed, remove + undo, image path field, drop an image file on it); Save writes off-thread with a progress bar, failed files listed and the dialog stays open; fields scroll when the window is short. "Look up online" → search (prefilled from the fields/tags; releases with as many tracks as files first) → releases with title, artist, date, country, track count and cover (first 6, fetched one by one) → files ↔ tracks (match_tracks, arrows to change, a track used twice is skipped, "Keep this file as it is") + embed-cover switch + summary → Apply writes title/artist/album/album artist/track+disc numbers and totals/date/first genre/MusicBrainz ids/cover on matched files. Errors (offline, busy, nothing found, release gone) as plain lines. Panes list again after a write.tunal-tags::duration_ms(path)added for matching. - Tools (CLAUDE.md §5):
TUNAL_TAGS=editor|lookup|mapping|apply:<file>:<file>…withTUNAL_TAGS_SYNC=1(work in place) andTUNAL_MUSICBRAINZ=<base url>(mock for both services). - Verified: workspace build, clippy -D warnings, fmt --check, literal grep empty; screenshots light + dark of the multi-file editor, lookup results (cover shown) and mapping, against a scratchpad python mock;
applyon scratch mp3s fixed album, set totals/date/genre/ids and replaced the cover (read back with thetagsexample). Real music and real MusicBrainz untouched. - Not done: no live window (typing, drop, clicks, progress bar motion, scrolling); no file chooser for the cover (path field or drop); a mixed field can't be cleared on purpose (only set); lookup apply doesn't offer per-field choice; offline/busy messages not seen live.
- Later: file chooser; per-field "clear" for mixed values; recording search by title when no album; lookup for one file with no album tag uses the file name.
S024 — iOS devices over AFC
- Done:
tunal_devices::ios::IosLocation(Location, schemeios):ios://<udid>/<path>on the AFC media folder; list (+ stat per entry, chunks of 256), stat, open_read (own AFC connection, 1 MiB reads), open_write (own connection, streamed, closed on drop; CreateNew/dir → Exists), mkdir, rename (Exists check), delete (permanent; trash Unsupported so the UI confirms). AFC errors → NotFound/PermissionDenied/Exists/NotEmpty; lost socket drops the client. ios::watch(location, on_change): usbmuxd Listen on a 1-worker tokio runtime; USB devices only (Wi-Fi duplicates skipped); no socket → retry every 3 s silently (udev starts usbmuxd on plug). Socket fromUSBMUXD_SOCKET_ADDRESS, else/var/run/usbmuxd.- Setup thread per device: pair record from usbmuxd, else lockdown
pair(problem "Unlock the iPhone and tap Trust", retries while locked/pending), record saved to usbmuxd; stale record (InvalidHostID) deleted and re-paired; DeviceName from lockdown. Problems show as the folder error. - Shared device API:
tunal_devices::DevicePlace {name, uri}(moved from mtp, re-exported there).devices_bridge::registernow returnsBackends(MTP + iOS); Devices section merges both lists. Place menu on anios://entry: "Eject" (closes the connection, hidden until replugged) viadevices_bridge::{can_eject, eject}. - Deps:
idevice0.1.68 (no default features;ring,usbmuxd,afc,pair— no aws-lc, D-019),tokio(rt-multi-thread, net, time). - Verified: workspace build, clippy -D warnings, fmt --check;
cargo run -p tunal-devices --example ios_location(new) with the real usbmuxd and withUSBMUXD_SOCKET_ADDRESS=/nonexistent/usbmuxd: 0 devices, no error, unknown udid → NotFound; app screenshot both ways: Devices "No phones connected", no stderr. - Not done: no iPhone (D-009, S036): pairing, Trust prompt, AFC ops, eject, names all unchecked live. Symlinks shown with unknown target type. main.rs still names the backends
mtp(left to avoid S021's file). - Later: eject for MTP phones; device name in breadcrumb; free space via AFC device info; a "Connecting…" entry shows the default name "iPhone" until lockdown answers.
S028 — SFTP location
- Done:
tunal-netsftp::SftpLocation::new(Arc<dyn Prompts>)(with_config,home(uri)), schemesftp, authority[user@]host[:port](host may be an ssh_config alias; user falls back to config, then $USER). Register it withLocations::register. Caps: write, symlink, permissions; no trash/watch.session.rs: own 2-thread tokio runtime (tunal-netthreads), pool per (user, host, port): reuse, keepalive 30 s (3 misses), dead connection replaced on next use, one retry on a connection error, idle close after 5 min when nothing holds it.auth.rs: agent (IdentitiesOnly filters by.pub) → identity files (config, else id_ed25519/ecdsa/rsa; passphrase prompt, 3 tries) → password (3 tries) → keyboard-interactive. Host key via S027check; Unknown →Prompts::confirm_host_keythenaccept_keyto own file; Mismatch/Revoked/certificate →Error::Remotemessage. Reads and writes are pipelined by russh-sftp (16 in flight);Remoteis blockingRead/Write(flush before drop to see write errors). - Prompt API (
auth::Prompts, all blocking, called on a worker thread, defaults refuse):confirm_host_key(&HostKeyInfo{host,port,key_type,fingerprint}),password(user, host),passphrase(&Path),interactive(&InteractiveRequest{name,instructions,prompts[{text,echo}]}); answers aresecrecy::SecretString.NoPromptsrefuses all. - Deps (workspace): russh 0.65 (ring, no aws-lc-rs), russh-sftp 3, secrecy 0.10, zeroize 1, tokio +sync. Example
sftp-ls -- <uri>(terminal prompts). - Verified: tunal-net build, clippy -D warnings, fmt --check;
cargo tree -i aws-lc-rsempty; secret grep empty; against a local sshd (port 2299, scratch HOME, key auth): list + symlink entries, accept then silent reuse, changed key = hard error, refuse = error, mkdir/exists, create-new/overwrite, 3 MB write+read roundtrip equal, rename (Exists on clash), delete, symlink, home. Workspace clippy fails only on S023's unfinishedplayer_bridgemodule. - Not done: password and keyboard-interactive paths (local sshd had keys only), agent auth, passphrase keys, ProxyJump (reported unsupported);
posix-renamenot used (library hides offered extensions; rename pre-checks the target instead, so overwriting needs delete first); non-UTF-8 remote paths giveUnsupported;NotEmptynot reported (server says failure); russh keeps its own copy of the password string, not zeroized. Real host check is S036. - Later: posix-rename via the raw session; watch by polling.
S023 — Quick player UI
- Done:
Action::Play("play", Space, context menu File + Several items): plays the first selected audio file; the folder's shown audio files are the queue. Space reaches it through the folder view's type-to-filter path (only with an empty filter), so text fields never trigger it.FolderModel::shown_files(). player_bridge.rsPlayerUi(owned by Actions): lazytunal_player::Player, events back via a thread-local Weak; tags + cover read off-thread; waveform 600 buckets, downsampled to the bar count the seek bar reports (player-bar-count, re-done on resize); errors as toasts; ended → next file when Settings › General "Play the next track" (player_next, default on, D-037).ui/shell/player-bar.slint: card above the status bar, rises on open (height, medium1, emphasized-decelerate, Motion.time); cookie9 cover (picture or music glyph), title/artist, PlayButton (primary cookie9 ↔ circle morph, pause/play glyph), SeekBar (bars, played tint, hover line, press-drag scrub, release seeks, ←/→ ±5 s with focus ring), time, mute + volume track, close. No timers: position arrives only while playing.- Screenshot hook
TUNAL_PLAY=<file>(bar a third in, no audio output). - Verified: tunal build, clippy -D warnings, fmt --check, literal grep empty; screenshots light + dark on a generated FLAC with cover.
- Not done: no live window (sound, slide, morph, scrub, Space, next track unchecked live); cover is drawn square inside the cookie (Shape's picture behaviour), not clipped to it.
- Later: clip pictures to the shape; remember volume; previous/next buttons.
S029 — SFTP connections in the UI
- Done:
net_bridge.rs:connections.toml(name, host or ssh alias, port, user, start folder, auth automatic/key file/password + key path; never a password), Network section = saved connections then~/.ssh/confighosts not saved (switch in Settings, new Network page: ssh hosts, connect timeout, keep alive, idle close;Settingsfieldsssh_hosts,connect_timeout_secs,keepalive_secs,idle_close_mins). Header "+" opensdialogs/connection.slint(validates host/port/key, Remove when editing); place menu on Network entries: Open in new tab, Edit / Save as connection, Disconnect (while connected), Remove. Opening a saved entry without a start folder resolves the server's home on a thread (toast on failure); connected entries show a cloud-done glyph. Typedsftp://…in the breadcrumb already worked. - Prompts (
UiPrompts, serialised, answer through an mpsc channel):dialogs/host-key.slint(fingerprint; Cancel / Connect once / Trust and connect; changed key = warning only, nothing is trusted by Enter),dialogs/secret-prompt.slint(password, passphrase, keyboard-interactive; field cleared after sending, text moved intoSecretStringat once). tunal-net:HostKeyChoice(Once/Always),Prompts::host_key_changed,AuthPref(Any/Agent/Key/Password per host,SftpLocation::set_auth),disconnect,is_connected,set_options, plain-word connect errors. - Folder error state has a "Try again" button (
FolderActions.retryglobal; refreshes panes that failed).TextField.secretshows dots. Gallery pagesconnection,host-key,secret. - Verified: build, fmt; clippy clean for my files (workspace clippy stops on S030's
native/mod.rstype-complexity lint); looked at gallery PNGs (connection light+dark, host-key light+dark, secret), shell PNG with a local sshd (Network section, connected glyph, SFTP folder listed over key auth) and the refused-connection error with Try again; literal grep empty. - Not done: no live clicks (add/edit flow, password dialog with a real server, press motion not watched); the dialogs reuse
Dialogmotion only. Keyboard-interactive and password logins untested. Connection dialog is tall at 480 px window height. No key-file picker (path typed). - Later: file picker for the key; show connection errors in the sidebar; per-connection options (compression, keepalive).
S030 — Native DnD and file clipboard on Wayland
- Done (D-039):
native/wayland.rs: our own queue on Slint's foreignwl_display(seat → own pointer/keyboard for serials,wl_data_devicev3,wl_compositor/wl_shmfor the drag icon), dispatched on thetunal-waylandthread; events go to the UI asnative::Events.native/mod.rsNative(native::current(), attached byattach_lateronce the window has a handle;Noneon X11 and in screenshots):arm(uris)+set_drag_icon(image)(called fromdnd.rswhen an in-app drag starts),set_clipboard(uris, cut),clipboard_has_files(),read_clipboard(done). S031 implements the same API for X11. - Drag out: when the pointer leaves the window with the button held,
start_drag(press serial) with uri-list,text/plain;charset=utf-8,text/plainandapplication/x-tunal-uris, SVG drag image as an shm icon; Copy only; a synthetic release ends Slint's in-window drag; stderr logsstart_dragand the finish. - Drag in: offers on our surface are read as uri-list and fed to Slint's
WindowInner::process_drag_event(i-slint-core =1.19.0): same DropZones, glow and drop menu as in-app; the offer is accepted only over a target that takes it. - Clipboard (
clipboard.rs): copy/cut also set the selection (+x-special/gnome-copied-files); paste prefers another app's files (cut → move). - Verified: build, clippy -D warnings, fmt; X11 fallback: app ran 8 s under Xvfb with
WAYLAND_DISPLAYunset, no crash. - Not done: no Wayland run at all (no headless compositor; orchestrator: no window on the live session); attach, drag out/in and clipboard with other apps are deferred to S036.
- Later: Move/Link for drag out; modifiers for drags coming in (keyboard focus during a foreign drag).
S031 — Native DnD and file clipboard on X11
- Done:
native/x11.rsX11(ownx11rbRustConnection,tunal-x11event thread) behind theBackendtrait now innative/mod.rs(Wayland implements it too;Contents,Icon,ReadDonemoved there). A hidden InputOnly window of ours is the app window'sXdndProxy(XDND messages go to the window creator's connection, which is winit's) and owns XdndSelection/CLIPBOARD. - Drag out: winit keeps the pointer grab, so
armstarts a thread pollingquery_pointer; outside the window with button 1 held it becomes the XDND v5 source (Enter with type list, Position, Leave, Drop, waits for Finished; copy only; no drag icon on X11). Logsstart_drag,XdndEnter sent, the finish. - Drag in: Enter/Position/Leave/Drop on the proxy → the same
Nativeevents as Wayland (Slint drop targets, glow, menu); the uri-list is converted at the first position; status answers every position with the target's accept. - Clipboard: copy/cut own CLIPBOARD (TARGETS + our mimes); paste asks a foreign owner's TARGETS (200 ms) then
x-special/gnome-copied-files, falling back totext/uri-list. - Tool:
examples/xdnd_probe.rs(dev-dep x11rbxtest), Xvfb only: drag out to a fake target, orin x y urias a fake source. - Verified: build, clippy -D warnings, fmt; Xvfb
:97withWAYLAND_DISPLAYunset: drag of notes.txt out of the window → app logs start_drag + XdndEnter sent + dropped (copy), probe got the uri-list; probe dropping a file on the Music row → status accept after the list was read, XdndFinished accept=1. - Not done: clipboard copy/paste not exercised (no key injection set up); no drag icon on X11; real apps in S036.
S032 — Tests: core, ops, trash, dirmeta, elevation protocol
- Done:
tests/intunal-core(location.rsURIs, registry, non-UTF-8/symlink/denied/10 000-entry listing, write modes, watch;ops.rscopy/move/delete/mkdir/rename/link, every conflict resolution + apply-to-all, error Retry/SkipAll/Abort, cancel at a conflict and mid-file, cross-device move via /dev/shm, copy into self, naming helpers;trash.rswithXDG_DATA_HOMEin a temp dir:.trashinfoencoding, collisions, restore conflicts, browsing, empty),tunal-dirmeta(dirmeta.rsbyte-exact round trips, localized names, view keys),tunal-elevate(protocol.rsframes/messages/errors/entries;helper.rsdrives thehelper_smokeexample as helper without pkexec, handshake, relative paths, Elevation thread switching).tempfileworkspace dev-dep. - Bugs fixed (each with a regression test): a file copied/moved over a folder with Overwrite failed with "Is a directory" (
ops/run.rs,file_over_folder_overwrite_replaces_it); a.directorywith CRLF line ends was rewritten with LF; removing the last key of a group appended at the end of the file left a stray blank line (tunal-dirmeta). - Safety: trash tests hold one lock, and skip when a per-mount trash of the user is visible (
EmptyTrashwould delete it); none found on this machine. - Not done: permission tests skip as root; cross-device test skips when /dev/shm shares the temp device; no pkexec/polkit run; per-mount (
.Trash-$uid) trash paths untested.
S034 — Screenshot matrix and UI review
- Done:
tunal --matrix <dir>(screenshot.rs) renders 37 cells / 58 PNGs (every shell state, dialogs, settings pages, gallery; light + dark; 720x480) over a stand-in fixture, one child process each. New hooksTUNAL_POINTER=x,y[,press|click|menu],TUNAL_ACTION=<id>. CLAUDE.md §5 row added. - Unslop (polish mode, D-035 look kept; design calls mine): breadcrumb overflow shows a
…mark at the left edge (click edits); toolbar underTheme.toolbar-compact-widthdrops Forward + previews toggle (set from the window on resize: a binding would loop); details pane < 400 px shows names only; dialogs drop the cookie belowTheme.dialog-cookie-min-height; settings pages scroll and fit at 720x480. - PNGs: before /tmp/claude-1000/-home-astar76-Projects-Tunal/9f8868e3-106e-44a3-ab18-75f381125aa4/scratchpad/before, after /tmp/claude-1000/-home-astar76-Projects-Tunal/9f8868e3-106e-44a3-ab18-75f381125aa4/scratchpad/after (contact sheets in /tmp/claude-1000/-home-astar76-Projects-Tunal/9f8868e3-106e-44a3-ab18-75f381125aa4/scratchpad/sheets).
- Verified: workspace build,
clippy -p tunal --all-targets -D warnings, fmt --check, literal grep empty. Workspace clippy fails only in S033's uncommittedtunal-player/tests/waveform.rs(manual_range_contains). - Not done: press squeeze not drawn by software renderer (pressed == hover in PNGs); conflict/errors dialogs have no hook (not in matrix); single-sentence captions keep their periods; Material You pink-tinted surfaces kept (D-035) though unslop prefers neutral.
- Later: Network settings "Keep alive" subtitle elides (Setting subtitle should wrap); settings scrollbar sits tight to the switches.
S033 — Tests: thumbs, tags, MusicBrainz, player, ssh, SFTP, MTP
- Done:
tests/in five crates with tiny ffmpeg-made fixtures (flac, mp3, ogg, m4a, wav, mp4, png, jpg, svg; ~160 KB) and four test-only ed25519 keys intunal-net/tests/fixtures.tunal-thumbs: cache naming/metadata, raster/SVG/cover/video, skips, known failures, size limit, priority and cancel, ffmpeg-missing in its own test binary (the probe is cached per process).tunal-tags: read/write/Keep/Clear/cover on five formats, merge,set_all; MusicBrainz and Cover Art Archive against a localhost mock (query escaping, user agent, redirects, 1 s spacing shared by clients, 503/429 backoff, give-up after 4); track matching.tunal-player: decode + waveform buckets, cache, cancel (no audio device).tunal-net: ssh config, known_hosts, and SFTP against an in-process russh server (host key unknown/once/always/changed/revoked, key/password/passphrase auth, list/stat/read/write/mkdir/rename/delete/symlink, reconnect).tunal-devices: PTP containers, datasets, dates, and session flows on the replay transport. - Bugs fixed (with regression tests): a wrong key passphrase was asked only once instead of up to three times (
tunal-net/src/auth.rs); clearing the track number of an MP3 left0(ID3 "0/12") that read back as track 0 (tunal-tags/src/io.rs: a zero track/disc number reads as none). - Verified: build, clippy -D warnings, fmt --check,
cargo test --workspace. - Not done:
MtpLocation/IosLocationnot driven (no replay hook through the location layer); keyboard-interactive auth and the ssh agent path untested;Playerengine itself needs an audio device, only waveforms are tested; MusicBrainz backoff tests really sleep (~30 s total). - Later: video thumbnails of frames smaller than the edge are enlarged by ffmpeg (images are not): cap with
scale=min(...).
S035 — Motion audit (visual review pending)
- Done:
/improve-animationsquick audit →docs/motion-audit.md(motion already on tokens, interruptible, reduced-motion aware; 2 findings). Fixes: toast exit Timer nowMotion.time(Motion.short4)(instant removal under reduced motion);TUNAL_FRAMES=1logs every drawn frame (main.rs, CLAUDE.md §5 row). - Idle: Xvfb
:97, 16 s run: 5 frames at start-up (≤ 3.2 s), 0 frames from 5 s to 16 s. - Matrix re-rendered (58/58 ok); key PNGs (60 %, PNG8) in
docs/review/: shell full light/dark, 720x480, context menu, properties dark, settings at 720x480, player dark, gallery controls. - Verified: workspace build, workspace clippy -D warnings, fmt --check, literal grep empty.
- Not done: 🧑 visual review (step 4) — visual review pending, user's verdict not recorded; INDEX not ticked. Press squeeze and live motion feel only checkable in a real window.
S037 — Desktop entry, install script, final docs
- Done:
assets/tunal.desktop(passesdesktop-file-validate),scripts/install.sh(release build; binary, desktop entry, svg + png icons under$PREFIX, default~/.local; prints thesudo installline for the polkit policy, never runs it), README install, shortcuts and requirements, FEATURES.md final statuses ("built, awaiting real-world check" for devices, native DnD and clipboard, SFTP, ssh config, polkit; "built, awaiting user review" for the motion audit row), STATUS.md "Code complete; open: S035 and S036 (user)". - Verified:
PREFIX=<scratch> bash scripts/install.shinstalled binary, desktop entry and both icons; build, clippy -D warnings, fmt --check,cargo test --workspacegreen. - Not done: nothing run against the real
~/.localor/usr; the installed copy at/usr/bin/tunaland the polkit policy are for the user. - How to install:
bash scripts/install.sh, then the printedsudo installline.
Colour settings and plain icons (user request)
- Done: Settings → Appearance (was Motion): theme system/light/dark, palette swatches (desktop accent + 10 seeds + own hex colour), Pick… (
tunal_theme::pick_color, Screenshot portal), colour style (tonal/vibrant/expressive/neutral/mono), "Shapes behind icons" (Theme.icon-shapes,Shape.plain: rows, grid, sidebar, player cover), animations. Release binary rebuilt: it predated the wavy seek bar and the ffmpeg fallback. - Verified: clippy on tunal + tunal-theme, fmt, release build, two PNGs (settings page; Opus file in the playing bar with plain icons and a green palette).
- Not done: no test run (user: save credits); Pick… not tried live.
Theme file icons, sidebar icons and Places drops (user request)
- Done:
file_icons.rs(shared MIME globs + first bytes → icon theme picture; user folders;.desktopicons), shown while previews are on; off = plain glyphs, no.directoryicon (its name stays). Places and Bookmarks: drop folders on the header or between rows, move entries within and across the two by drag, Change icon… (icon_picker.rs,ui/components/icon-picker.slintshared with folder appearance).places.tomlgainsplaces,icon,standard. - Verified: clippy on tunal, fmt, release build; PNGs (previews on/off), drags (folder → Places, bookmark → Places), icon dialog saved under Xvfb.
- Not done: no test run (user: save credits); MIME globs with wildcards in the middle are ignored.
Seek, spring motion, archives, pickers (user request)
- Done: seek bar seeks (the release read
pressed, already off); its handle and the sidebar selection spring to the click (Motion.spring); Compress: zip, 7z, tar, tar.gz/bz2/xz/zst, wim, and gz/bz2/xz for one file; extraction of everything intools::ARCHIVES(7z or bsdtar); file picker (portal) on every path field (FilePicks,file_picker.rs); icon browser over the whole icon theme in both icon dialogs; the browser has categories; Create new → Launcher… and Edit launcher… (launcher.rs); new tab opens Home; a file's path in the location bar opens its folder with it selected. - Also fixed: a dialog opened from a menu lost focus to the view (
Dialog.settle), so typing filtered the folder. - Verified: clippy, fmt, release build, seek / sidebar / icon browser / new launcher under Xvfb, pack + unpack of each format with the same commands by hand.
- Not done: no test run (user: save credits); file picker not opened live; encrypted archives only report that they need a password.