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 <[email protected]>
32 lines
2.6 KiB
Markdown
32 lines
2.6 KiB
Markdown
# S010 — Tabs, split view, breadcrumbs, history and places
|
|
|
|
> Category 03 File browsing · Model: Opus · Effort: medium · Depends on: S008 · Size: L · Human: no
|
|
> Files touched: crates/tunal/src/{config.rs,shell/**}, crates/tunal/ui/shell/{tab-bar,pane,breadcrumb,sidebar,toolbar,status-bar}.slint, crates/tunal/ui/app.slint
|
|
|
|
## Goal
|
|
The navigation shell: tabs, split view, editable breadcrumb path bar, back/forward/up history, places sidebar with bookmarks, and the config directory.
|
|
|
|
## Read
|
|
CLAUDE.md §3; docs/DECISIONS.md D-012; crates/tunal/src/folder/ API; crates/tunal/ui/components/{tab,list-row,text-field}.slint.
|
|
|
|
## Steps
|
|
- [x] Config module: `$XDG_CONFIG_HOME/tunal/*.toml` with serde, atomic writes; `settings.toml` (later plans add fields) and session restore of open tabs.
|
|
- [x] Pane = location + back/forward stacks + folder model + view mode; tab = one or two panes; split view toggle; active pane indicator.
|
|
- [x] Tab bar: new/close/switch, middle-click close, drag to reorder, animated add/close/reorder; Ctrl+T/Ctrl+W/Ctrl+Tab.
|
|
- [x] Breadcrumb: segment chips navigate; Ctrl+L or click on empty space edits the path with folder completion; Enter goes, Esc reverts; accepts URIs (`trash:///`, later others).
|
|
- [x] Back/forward/up buttons, Alt+Left/Right/Up, mouse back/forward buttons.
|
|
- [x] Places sidebar: XDG user dirs (from `user-dirs.dirs`), Trash, Bookmarks (`places.toml`: add current folder, rename, remove, reorder); empty Devices/Network sections with an API for later plans; collapse animated. Status bar: item count and selection size.
|
|
- [x] PROGRESS entry, INDEX line, commit `S010: …`
|
|
|
|
## End criteria
|
|
- `cargo build --workspace`, `cargo clippy --workspace --all-targets -- -D warnings` and `cargo fmt --check` pass.
|
|
- `tunal --screenshot <png>` (light and `--dark`) renders the new UI; you looked at both PNGs. with two tabs, split view and the sidebar (`tunal --split <a> <b>`).
|
|
- `grep -rnE '#[0-9a-fA-F]{6}|[0-9]+ms' crates/tunal/ui/components crates/tunal/ui/views crates/tunal/ui/shell crates/tunal/ui/dialogs 2>/dev/null` finds no literal colour or duration outside `theme.slint`/`motion.slint`.
|
|
|
|
## Pitfalls
|
|
- Use the scratchpad as `XDG_CONFIG_HOME` in smoke runs.
|
|
- Load the `app-taste` and `animate` skills before writing motion; tokens only, hover tint + press squeeze, interruptible, reduced motion honoured, nothing animates while idle.
|
|
- No new tests in this plan (D-013): verify with build, clippy and the smoke run; tests come in phase 12.
|
|
|
|
## Handoff (→ PROGRESS.md)
|
|
Places API for Devices/Network sections; config module; how to open a URI in a new tab.
|