Shell with one folder model per pane, back/forward/up history, editable breadcrumb with folder completion, draggable pill tabs, places with bookmarks in places.toml, session restore and a status bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 KiB
27 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.