Skip to content

feat(10xer): add persistent letter bookmarks - #1790

Merged
l0gicgate merged 20 commits into
lgse:stack/1802from
FelipeJz:feat/1787-letter-bookmarks
Nov 7, 2026
Merged

l0gicgate merged 20 commits into
lgse:stack/1802from
FelipeJz:feat/1787-letter-bookmarks

Conversation

@FelipeJz

Copy link
Copy Markdown
Contributor

Description

Add persistent directory bookmarks to 10xer mode:

  • m followed by a–z saves the current pane's directory.
  • ' followed by the same letter opens that directory.
  • The jump menu shows only saved letters and their full paths.
  • Reusing a letter replaces its bookmark.

Bookmarks support local directories, are shared across windows, and
survive restarts. Default-mode typing remains unchanged; m still
mutes inside media previews.

Visual evidence

N/A — no attachments. The existing chord popover displays saved
letters alongside their full directory paths.

How to test

  1. Enable 10xer mode with Ctrl+Shift+M.
  2. Open a directory and press m, then a.
  3. Navigate elsewhere and press '. Confirm that the menu shows
    a and its saved directory path, without unused letters.
  4. Press a to return to the saved directory.
  5. Save another directory under a and verify that it replaces
    the previous bookmark.
  6. Restart Strata and verify that the bookmark still works.

Expected result:

Saved letters consistently open their assigned directories.
The jump menu lists only saved bookmarks, and assignments persist
across windows and restarts.

Related issue

Closes #1787

Save the current directory with m followed by a letter and jump back
with apostrophe followed by that letter.

Show only saved letters and full directory paths in the jump menu.
Persist bookmarks across windows and restarts using atomic writes.

Add regression coverage, documentation, and localized feedback.
Keep default-mode typing and media-preview mute behavior unchanged.

Refs lgse#1787
@wmfeht wmfeht added the pending-review-or-fix A PR that should be merged but is pending a review by maintainers or fixes by the contributor. label Oct 21, 2026
@wmfeht

wmfeht commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Code review of 859edbe8. The 10xer chord, persistence, and window sharing match #1787, but a jump to a missing, unreadable, or stalled folder can still replace the current directory.

High

A failed jump can leave the current folder. src/ui/window/keyboard/chords.rs:232

complete_bookmark treats the target as reachable unless the probe reports NotDirectory, or Missing with folder_was_deleted returning true. Anything else (Inaccessible, Unavailable, or a probe that hits the 2 second timeout, unwrap_or(false) at line 243) falls through to navigate_location at line 266. For a local path that skips validation and replaces the listing (src/app/browser.rs:1530, src/app/navigation.rs:311), so the user lands on "Unable to read this directory" and has to press Back.

folder_was_deleted (src/adapters/local_operations/probes.rs:281) returns false when the bookmarked folder was the only child, when its parent was removed or moved with it, or when the parent contains a mount point. The new test only deletes a folder whose parent still has siblings.

Suggested fix: navigate only after probes::folder returns Ok. On any error or timeout, show "Bookmark %{key} is unavailable" and stay put. Add tests for an only-child deletion, a removed parent, an unreadable directory, and a probe timeout.

Medium

Document and archive previews no longer swallow m and '. src/ui/window/keyboard/preview.rs:330

Both keys are in reaches_listing, so tenxer_preview hands the keypress to the listing (preview.rs:116). m then arms Save bookmark, and in a document preview an accidental m followed by j overwrites bookmark j instead of scrolling. Media preview still mutes on m. docs/10xer-mode.md:153 still says m is swallowed in documents and archives.

Suggested fix: drop BOOKMARK_SET and BOOKMARK_GO from reaches_listing. If leaving the preview is intended, update the docs table and don't arm the chord on the same keypress.

The jump keeps running after the chord is gone. src/ui/window/keyboard/chords.rs:120

The second key ends the chord before the disk read and probe finish, and BookmarkGo bumps the navigation generation right away (chords.rs:211), cancelling any in-flight location validation even when the letter has no bookmark. Only keys (bookmark_revision, keyboard.rs:698), mode, focus, directory, and navigation changes cancel the pending jump, so a click that changes the selection in the same folder doesn't, and a slow probe can still navigate away afterward. Escape during the wait runs the normal dismissal (escape.rs:9: clear selection, close preview) as well as cancelling the jump.

Suggested fix: keep the jump pending until it's applied or cancelled, let Escape and other keys cancel it without running a listing command, and bump the navigation generation only when actually navigating.

Low

  • Unused string. "Jump to bookmark" (data/locales/messages/en.json:3) is translated everywhere and never used. Remove it or use it as the jump menu row's action text.
  • Bad entries and read errors. src/services/letter_bookmarks.rs:91: read turns a non-local URI into Ok(None), so the letter reports "No bookmark" while the entry stays in the file, and read_all silently drops non-lowercase keys that survive later saves. On a corrupt file, list shows "Could not access bookmarks" but leaves BookmarkGo armed (chords.rs:182), so the next key is still captured. Show those entries as unavailable or drop them on the next save, and cancel the chord when the read fails.

Checks run

cargo clippy --all-targets --all-features -- -D warnings passed. cargo test --all-targets --all-features -- letter_bookmarks passed 11 tests (5 store, 6 keyboard), plus chooser_refuses_commands_its_request_does_not_allow and catalogs_cover_all_languages_and_preserve_interpolation. E2E, the QA scenario suite, and quality.sh were not run.

Navigate only after a successful folder probe and reject all probe
errors and timeouts without replacing the current directory.

Keep jumps pending until completion or cancellation. Consume cancelling
keys without dismissing selection or previews, cancel on selection and
focus changes, and preserve unrelated navigation validations.

Restore document and archive preview ownership of bookmark prefixes.
Cancel failed bookmark menus, clean unsupported entries on save, and
remove the unused message from every locale.

Add filesystem failure, pending input, preview, and persistence
regressions and document the corrected behavior.

Refs lgse#1787
@FelipeJz

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed review! Addressed in fa5f7c48:

  • Jumps now require a successful folder probe. Errors and timeouts report the bookmark as unavailable and leave the current directory intact.
  • Document/archive previews swallow both bookmark prefixes again; media mute is unchanged.
  • Jumps remain pending until completion or cancellation. Cancelling keys are consumed without changing selection or closing previews. Selection, focus, and mode changes also cancel the jump. Navigation generation changes only when actually navigating.
  • Removed the unused message from all locales. Read failures cancel the menu; unsupported entries report unavailable and are cleaned up on the next save.

Added regressions for only-child deletion, removed parents, unreadable folders, probe timeouts, pending-jump cancellation, preview ownership, and corrupt bookmark data.

Local validation passed: 63 targeted Rust tests, 7 end-to-end scenarios, formatting, and Clippy.

Could you take another look when you have a chance?

@wmfeht

wmfeht commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Review

The bookmark logic itself is careful (jumps are guarded by a revision counter, a pending flag and a check on the target folder), but the branch is 124 commits behind main and needs porting before it can merge. Not verified: no build or tests were run for this review.

Blocking: rebase onto current main

  1. Merge conflicts in src/ui/keys/bindings/tenxer.rs and src/ui/window/tests/keyboard_dispatch.rs.

  2. Shortcuts must be catalog commands. On main, every catalog entry has a command id and, for chords, a group (e.g. SORT_BY: Command "sort" trigger(Sort) with step(Sort) entries). BOOKMARK_SET: Binding = Binding::plain(Key::m) and BOOKMARK_GO: Binding = Binding::plain(Key::apostrophe) don't fit that format. Porting needs:

    • command ids and groups (e.g. bookmark_set / bookmark_go) so the keys can be remapped and are seen by conflict detection;
    • a deliberate choice for the 26 letter slots in BOOKMARK_LETTERS. As a free-standing const they sit outside the registry, so remapping and conflict detection won't see them. PIN_NUMBERS / ACTIONS_NUMBERS are the closest existing pattern;
    • entries in docs/keymap.md / docs/keyboard-shortcuts.md, and updates to Chord::mark() / Chord::options() in src/ui/tenxer_mode.rs, which also changed on main.
  3. The end-to-end test targets a deleted suite. tests/e2e/scenarios/test_letter_bookmarks.py belongs to the suite removed in a656726 (test!: make the QA scenarios the only GUI suite #1807, "make the QA scenarios the only GUI suite"). Its three cases need to become tests/qa/scenarios/*.jsonl scenarios:

    • save the current folder, replace a bookmark, survive a restart;
    • the Russian-layout fallback and cancelling;
    • a failed jump keeps the current folder.

    Without that, the restart and keyboard-layout behaviour has no GUI coverage on main.

Minor

  • A malformed bookmarks file blocks all saves (src/services/letter_bookmarks.rs, load / write). write() calls load()?, so if letter-bookmarks.json can't be parsed, every m x fails with "Could not access bookmarks" until the file is deleted by hand. It becomes unparseable after a bad hand edit or truncation, a multi-character key, or any extra field (because of #[serde(deny_unknown_fields)]), including a file written by a newer version that adds a field. navigation_history.rs falls back to empty state on parse errors; doing the same on the write path (or dropping deny_unknown_fields) would let a save recover.

  • Save feedback can be lost (src/ui/window/keyboard/chords.rs, complete_bookmark). For m x, any key pressed before the storage worker replies bumps the revision counter, so the task returns before showing feedback. The bookmark is still written; only the message is lost, including on failure (e.g. m a then j with the corrupt file above fails silently). Since a save is never cancelled, it could skip the revision and folder checks and always report its result.

Nits

  • The m menu shows 26 rows all labelled "Save bookmark" (Chord::BookmarkSet in src/ui/tenxer_mode.rs). One row describing a–z, the way digit slots are shown, would read better.
  • The file goes in user_data_dir()/strata/, but the module comment calls it navigation state; comparable files use crate::storage::state_directory() (folder-views.toml, navigation history). Convention only — recent_apps also uses the data dir.
  • letter_bookmarks/review_regressions.rs is named after the review history rather than the behaviour it tests; a name like pending_jump.rs fits the test conventions in AGENTS.md better.

Resolve conflicts in src/ui/keys/bindings/tenxer.rs and
src/ui/window/tests/keyboard_dispatch.rs, and port the letter bookmarks
to main's command catalog:

- `bookmark_set` (m) and `bookmark_go` (') are rebindable chord
  triggers with groups of their own, so remapping and conflict
  detection see them;
- the letters a-z after them are a fixed `Letters` range declared in
  the catalog, like the digit ranges after Go, Action and Tabs, and read
  through `KeyPress::letter`;
- the m menu shows one a-z row, the F1 reference and Settings show the
  ranges with their triggers, and the keymap docs list the new chords;
- add the Hungarian strings main's new catalog needs.
A letter-bookmarks.json that failed to parse, after a bad hand edit,
truncation, a multi-character key or an extra field, made every m x
fail until the file was deleted by hand. Reading ignores unknown fields
and unusable keys, and a save starts from empty bookmarks when the
contents still do not parse, as navigation history does.
Any key pressed before the storage worker replied to m x bumped the
bookmark revision, so the save returned without its feedback, failures
included. A save is never canceled, so it now skips the revision and
folder checks a pending jump needs and always reports its result.
The end-to-end suite the PR added test_letter_bookmarks.py to was
removed in favour of the QA scenarios. Its three cases become:

- letter-bookmarks-save-replace-and-survive-restart: m saves the
  listed folder rather than the selected child in every view, ' jumps,
  saving again replaces a bookmark, and it survives a restart;
- letter-bookmarks-read-latin-letters-and-cancel: on US and Russian
  layouts Escape and a digit cancel, and m z and ' z read the Latin
  letter;
- letter-bookmark-failed-jump-keeps-folder: a bookmark whose folder or
  parent was removed reports it is unavailable and keeps the folder and
  selection.
@wmfeht

wmfeht commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Fixes applied

  • Merge conflicts: fixed in 09eef857 (merged main; also added the strings to the new hu.json).
  • Catalog commands: fixed in 09eef857. m / ' are now rebindable bookmark_set / bookmark_go triggers. The a–z slots are a fixed Letters range in the catalog, like the digit ranges. Docs are updated. The shipped keymap now reports one expected overlap warning, because preview mute also uses m.
  • Deleted e2e suite: fixed in 3d5e8465. All three cases are ported to tests/qa/scenarios/letter_bookmarks/, including restart.
  • Malformed file blocks saves: fixed in 1d9f6c8e. Reads ignore unknown fields and bad keys, and a save recovers from an unparseable file.
  • Lost save feedback: fixed in 075f5159. Saves always report their result.
  • Nit, 26 "Save bookmark" rows: fixed in 09eef857 (one "a–z" row).
  • Nit, storage location: not moved. Bookmarks are user-saved, closer to pins than to state. The module comment was reworded in 1d9f6c8e.
  • Nit, test file name: fixed in 9823e7c1 (pending_jump.rs).

Validation: scoped ./scripts/test-headless.py runs pass. They cover ui::keys::, settings keyboard, i18n::, services::letter_bookmarks, the keyboard_dispatch bookmark, preview-ownership and keymap tests, and chooser keyboard tests. One stale 26-row assertion was updated and passed on rerun. ./scripts/qa.sh on the three new scenarios passed 7/7. ./scripts/quality.sh fmt and clippy pass. Not run: the full Rust and QA suites, and the QA runner's own unit tests; these are left to CI. The new scenarios have no cost / quality headers yet.

wmfeht
wmfeht previously approved these changes Oct 31, 2026
wmfeht added 11 commits November 6, 2026 12:08
Resolve conflicts with the stacked PRs (lgse#2070, lgse#1925, lgse#1924, lgse#1826,
lgse#1802) and re-home the bookmark changes in the files they split:

- keys/conflicts.rs: keep the split step_digits/fixed_top_level_key and
  give the bookmark groups no digit range;
- keys/label.rs: keep both the two-key Digits `then` and the Letters
  range;
- keys/tests.rs: take the split modules and move the Letters cases of
  catalog_bindings_use_the_canonical_key and
  every_listed_binding_has_its_own_row_in_its_maps into tests/catalog.rs;
- shortcut_footer.rs: take the split modules and move the chord panel
  refill (show while rows exist, so the ' menu appears once the saved
  letters load) into shortcut_footer/indicators.rs;
- tenxer_mode.rs: add the bookmark marks and options next to
  FolderAction;
- window/keyboard.rs: take the split key routing, keep the pending
  bookmark cancel before the tab-shortcut check, and move the focus and
  mode-exit cancels into keyboard/footer_bindings.rs;
- keymap.md: list the bookmark chords alongside `; .`;
- keyboard_dispatch.rs: declare both letter_bookmarks and list_motion.
A file monitor or operation batch that moved the cursor or selection, such as an outside deletion of the focused item, published FocusChanged or SelectionSetChanged and silently canceled a pending ' jump. Only events the user caused cancel it now; changes published under focus_follows_external_change or focus_follows_background_load leave it pending, and the folder check at completion still applies.
…pletion

The file chooser refuses m and ' while the listing has focus, and only the focused listing arms the bookmark chords, so complete_bookmark never runs in a chooser. chooser_refuses_commands_its_request_does_not_allow covers the refusal.
local_directory took any URI GIO could give a path, so a remote URI mounted through a gvfs FUSE mount read as a local folder. It now parses the URI with g_filename_from_uri, which accepts only file: URIs, and refuses a file URI naming another host. The remote-target test registers a GIO URI scheme that resolves to a FUSE-style path, so it fails if the GIO path lookup returns.
Every probe result other than Ok takes the same unavailable branch, so a deleted only child, a deleted folder whose parent still has siblings and a deleted parent exercise one path. letter_bookmarks_keep_the_listing_when_the_saved_directory_disappears and letter_bookmark_only_child_deletion_stays_put go; letter_bookmark_parent_deletion_stays_put owns the case and also checks the selection, navigation generation and chord. Saving by keys stays covered by letter_bookmarks_save_jump_and_replace_across_windows_and_views.
m saves a letter bookmark from the listing but mutes a focused 10xer media preview, and nothing checked the preview side. The volume table now presses m on the focused timeline and asserts it mutes and arms no chord; handing m to the listing from the preview fails both checks.
On a layout where ' is a dead key, such as us(intl), the press reaches Strata as dead_acute, which has no character and so neither matches bookmark_go nor falls back to a Latin key; the letter after it runs its own 10xer command. Document the limitation in the letter bookmark section and the layout rules, and point to rebinding bookmark_go.
- letter-bookmarks-save-replace-and-survive-restart runs in Columns only: saving the listed folder, replacing and the restart do not depend on the view mode.
- letter-bookmarks-read-latin-letters-and-cancel becomes letter-bookmarks-read-latin-letters-on-russian-layout: its US run and the Escape and m 1 cancels duplicate letter_bookmarks_cancel_and_leave_default_mode_and_text_fields_unchanged, so only the real XKB Russian fallback for m z and ' z remains.
- letter-bookmark-failed-jump-keeps-folder drops its only-child variant, which takes the same unavailable branch as the removed-parent one.

Each scenario gains a quality rating.
Loads and rescans publish an unflagged SelectionSetChanged before the FocusChanged that focus_follows_background_load marks, so that check never kept a jump pending. Drop it, say that only outside edits to the listing are ignored and that loads and rescans still cancel the jump without navigating, and document that changing the selection yourself cancels it.
@wmfeht
wmfeht changed the base branch from main to stack/1802 November 6, 2026 18:40
@wmfeht wmfeht closed this Nov 6, 2026
@wmfeht wmfeht reopened this Nov 6, 2026
@wmfeht

wmfeht commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Stacked PR. This PR is now the tip of the stack #1802 → #1826 → #1924 → #1925 → #2070. Its base is stack/1802, a mirror branch in lgse/strata that holds all five. Merge it last, after #1802. Its own head is mirrored to stack/1790.

Review and cleanup

Merged stack/1802 at 2b5ad5b37. The stacked PRs split several files into modules, so the bookmark changes moved with them. Conflicts were resolved in 9 files:

  • src/ui/keys/conflicts.rs: kept the split step_digits / fixed_top_level_key; the bookmark groups get no digit range.
  • src/ui/keys/label.rs: kept both sides: the second chord key then for ; . and the PR's Letters range.
  • src/ui/keys/tests.rs: took the split modules and moved the Letters cases of catalog_bindings_use_the_canonical_key and every_listed_binding_has_its_own_row_in_its_maps into src/ui/keys/tests/catalog.rs.
  • src/ui/keys/conflicts/tests.rs: merged the imports (ACTIONS_FOLDER and BOOKMARK_SET).
  • src/ui/shortcut_footer.rs: took the split modules and moved the chord-panel change (show whenever rows exist, so the ' menu appears once its letters load) into src/ui/shortcut_footer/indicators.rs.
  • src/ui/tenxer_mode.rs: the bookmark chord labels and options now sit next to the new FolderAction.
  • src/ui/window/keyboard.rs: took the split key routing. The pending-jump cancel still runs before the tab-shortcut check; the focus and mode-exit cancels moved to src/ui/window/keyboard/footer_bindings.rs.
  • docs/keymap.md: the bookmark chords are now listed alongside ; ..
  • src/ui/window/tests/keyboard_dispatch.rs: declares both letter_bookmarks and list_motion.

The bookmark keys don't collide with any stacked binding: audit_of_default_tables_is_clean passes with the one expected overlap (m also mutes a media preview).

Review against the description and #1787. Every claim in the description is implemented and tested: saving with m + a–z, jumping with ', the ' menu listing only saved letters, replacing a letter, sharing across windows, surviving a restart, and leaving normal-mode typing and media mute alone. So is the issue's rule that invalid keys and Escape must not run other commands. Both earlier review rounds had already been addressed.

Fixes pushed

  • d515617e9 fix(10xer): keep a pending bookmark jump through outside listing changes. An outside edit to the listing, such as deleting the focused file, silently cancelled a pending ' jump. Events published while focus_follows_external_change() is set no longer cancel it. New test: pending_jump::letter_bookmark_jump_survives_an_outside_removal_of_the_focused_item.
  • a63b8ee56 fix(10xer): stop claiming background loads keep a pending bookmark jump. A check on focus_follows_background_load() added in d515617e9 never took effect, because loads publish an unflagged SelectionSetChanged first. It is removed, and the comment and docs/10xer-mode.md now say that changing the selection yourself cancels a jump. Loads and rescans still cancel it, without navigating.
  • d024ece3a refactor(10xer): drop the unreachable chooser check from bookmark completion. The file chooser refuses both triggers while the listing has focus, and only the focused listing arms them.
  • f6eef3ed3 fix(10xer): accept only file URIs as letter bookmark targets. local_directory accepted any URI that GIO could map to a path, including remote URIs mounted through gvfs FUSE. It now uses g_filename_from_uri and also rejects a file: URI that names another host. letter_bookmarks_ignore_remote_uri_targets registers a GIO scheme that resolves to a FUSE-style path, so the test now fails against the old code. 3e7136aee asserts the registration succeeds.
  • fc63775e5 test(10xer): check that m mutes a focused media preview, not a bookmark. A new m row in the volume table of video_clips::page_home_and_end_seek_a_focused_timeline_in_both_key_maps asserts the preview mutes and no chord arms.
  • 80bafd107 docs(10xer): note that ' bookmarks need rebinding on dead-key layouts. See the first follow-up.
  • dffa3afc2 test(qa): trim the letter bookmark scenarios to their unique runs. See the next section.
  • eb6d15f76 style(10xer): formatting.

QA scenarios

  • letter-bookmarks-save-replace-and-survive-restart now runs in Columns only. Saving the listed folder, replacing and restarting don't depend on the view mode.
  • letter-bookmarks-read-latin-letters-and-cancel is renamed letter-bookmarks-read-latin-letters-on-russian-layout. It keeps only the real XKB Russian layout. Its US run and the Escape and m 1 steps duplicated letter_bookmarks_cancel_and_leave_default_mode_and_text_fields_unchanged.
  • letter-bookmark-failed-jump-keeps-folder drops its only-child variant, which took the same branch as the removed-parent variant.
  • All three now have a quality header (45, 28 and 12) and no cost.

Tests removed

  • keyboard_dispatch::letter_bookmarks::letter_bookmarks_keep_the_listing_when_the_saved_directory_disappears: every failed folder check takes the same "unavailable" branch. Coverage owners: pending_jump::letter_bookmark_parent_deletion_stays_put for the failed jump, and letter_bookmarks_save_jump_and_replace_across_windows_and_views for saving by keys.
  • pending_jump::letter_bookmark_only_child_deletion_stays_put: same branch. Coverage owner: pending_jump::letter_bookmark_parent_deletion_stays_put.

Mutation checks. Each new or sharpened test fails when its fix is reverted:

  • the outside-removal test fails if the observer cancels on every event (an outside change is not the user's);
  • the remote-URI test fails if gio::File::for_uri(..).path() comes back (it returned a FUSE path);
  • the m row fails if the preview hands m to the listing (muted=false and armed BookmarkSet).

Validation

  • ./scripts/test-headless.py -- i18n:: ui::keys:: letter_bookmarks preview_ownership keymap_conflicts keymap_overrides chooser::tests::keyboard shortcut_reference shortcut_footer settings::keyboard tenxer_mode tenxer_prefs, after the merge: 231 passed, 1 ignored.
  • ./scripts/test-headless.py -- letter_bookmark preview_ownership keyboard_dispatch::video_clips ui::keys:: i18n:: shortcut_reference chooser_refuses_commands: 81 passed.
  • ./scripts/test-headless.py -- letter_bookmark, after the last fix: 21 passed.
  • ./scripts/qa.sh letter-bookmarks-save-replace-and-survive-restart letter-bookmarks-read-latin-letters-on-russian-layout letter-bookmark-failed-jump-keeps-folder: 3 passed.
  • ./scripts/quality.sh fmt and ./scripts/quality.sh clippy: clean.
  • Not run locally: the full Rust and QA suites. CI runs the Rust suite; its QA job runs only on workflow_dispatch.

Follow-ups outside this PR

  • Dead-key layouts (us(intl)): ' arrives as dead_acute, which has no character, so it can't arm the chord and the next letter runs its own 10xer command. This is documented for now, with rebinding bookmark_go as the workaround. Proposed fix: a keys-layer fallback for dead keys plus a us(intl) layout in the QA harness.
  • Loads and rescans still cancel a pending jump without feedback. They publish their selection unflagged. Fixing that needs a change to the shared browser publication code, or feedback when a jump is cancelled.
  • letter-bookmark-failed-jump-keeps-folder overlaps pending_jump::letter_bookmark_parent_deletion_stays_put. It was kept because a GUI port of these cases was requested in an earlier review.
  • The quality scores were not graded independently by a second, blind reviewer, as the qa-quality skill asks.

CI: every check passed on 3e7136aee as of 18:50 UTC (CI run 42272872200; QA scenarios skipped by design).

@wmfeht

wmfeht commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Merged the #2070 update (6da9d77) in through the stack at 6513507. No fixes were needed. CI green.

@l0gicgate
l0gicgate merged commit 577bcc3 into lgse:stack/1802 Nov 7, 2026
18 of 20 checks passed
l0gicgate added a commit that referenced this pull request Nov 7, 2026
* feat(actions): run 10xer custom actions on the focused folder with ; .

In 10xer mode the cursor always sits on an item, so `;` then a digit could
never target the folder itself, which only the mouse could reach through the
background menu. `; .` now lists the actions matching the keyboard-focused
folder, as its background menu does, and a digit runs one with the folder as
its input and parent and source `background`, even in an empty folder.

The shortcut reference shows `; . 1–9 / ; . 0`, the `;` panel offers the new
step, and the custom actions and 10xer docs describe it.

Refs #1743

* refactor(actions): drop comments from the folder actions chord

* feat(preview): start first-time video previews at a configured position

Add a "Video preview start" percentage (0-99, default 0) under
Settings > General > Browsing, stored as `preview_video_start`. A video
preview with a known duration and no position remembered this session
seeks there once its header arrives; a remembered position from #1326
still wins, and audio, GIF, and streams of unknown length start at the
beginning.

Closes #1910

* feat(columns): make the focused column the first column

Add a `make_first_column` command (Alt+Down in the default map) that, in
Columns view, drops the columns before the focused one and keeps the
columns after it. Focus and the cursor stay on the same item, and the
change is a history step, so Back restores the whole strip. It does
nothing in the first column, in Icons and List, and in 10xer mode, which
keeps its own parent, current and preview strip.

The command is listed in Settings > Keyboard and in the Columns section
of the shortcut reference.

Closes #1922

* feat(10xer): enter filtered folders with slash

Keep the filter ready for the next level when entering its first matching folder.

Refs #1744

* feat(browser): extend slash navigation to normal filters

Let Ctrl+F filters enter the first displayed folder with slash in all three
views and the chooser, keeping the filter ready for the next level.

Keep pending navigation through empty indexing batches, and cancel it when
the query or input focus changes.

Refs #1744

* fix(i18n): add the Hungarian make-first-column string and sort the key

* fix(columns): consume the make-first-column key only when the strip is re-rooted and keep the selection

* fix(preview): add Hungarian strings and align video start clamp

* fix(i18n): translate the folder actions chord strings into Hungarian

* test(keys): cover rebinding the folder actions step

The folder actions step follows the user's key in the ; panel, the ; .- pill and the digits after it, conflicts with another Action step on its key, and has no path in the default map. The catalog test reads a two-key digit row as the second key's reference row.

* test(settings): keep the folder actions step out of the regular keymap table

* test(preview): pin the video start in the external-player handoff test

KeyboardFixture seeds the exhaustive preferences fixture, which now sets
preview_video_start to 20, so the clip opened at 20 % and the handoff
reported --start=12.000 instead of the position reached by playing.

* fix(filter): type letters that read as / only through the layout fallback

On Arabic, Thai and similar layouts the key where US has / types a letter;
the filter field and the 10xer f prompt now type it instead of entering
the first matching folder.

* fix(filter): wait for a folder still listing before entering a match

A filter read while its folder is still loading now waits until a folder
is the first match or the listing ends, and re-evaluates the pending /
when the folder finishes loading or fails.

* fix(preview): reopen a video left at its start or end at 0:00

`DecodedMedia::close` forgot the position of a video closed within its
first second or at its end, so with a non-zero Video preview start the
next open jumped to the configured percent again. Seeking back to watch
an intro, or watching to the end, was overridden on the next preview,
and the Settings description ("A video you already previewed resumes
where you left it") did not hold.

Remember such a video at 0 instead. `resume_position` still ignores
positions within the first second, so it reopens at 0:00, and
`set_start_percent` applies the configured start only to a video not
previewed earlier this session. Audio is still forgotten as before.

* refactor(paste): share what a collision's item kinds allow

Name the rule that a file and a folder never replace one another, and
that only two folders merge, as Collision::between and Collision::allows,
and keep it on the paste collision as its kinds rather than as two loose
flags. Apply to All's split of the collisions an answer covers and the
"a file and a folder can't replace one another" explanation become
helpers, so the undo and redo replay prompt can use the same rules.
No behaviour change.

Refs #2017

* fix(undo): offer no Replace where a replayed move meets the other kind

Undo and Redo of a move asked about an item already at the destination
with Replace always offered, so a file meeting a folder of the same name
(or a folder meeting a file) could be told to replace it, and the replay
then failed that item. Apply to All with Replace carried the failure to
every such item.

The presence probe now reports whether an item it finds is a folder, a
link counting as a file, as the paste's own check does. The replay
prompt applies the paste's collision rules to the moved item and the one
in its way: it hides Replace and says why, and Apply to All with Replace
leaves those items their own prompt. A replay prompt with neither
Replace nor Keep Both starts on Skip, or on Cancel when Skip is hidden.
An item whose kind cannot be read is still offered Replace.

Refs #2017

* build(test-image): install libheif for real AVIF and HEIC files

ImageMagick in the pinned image had no HEIF coder library, so it wrote
PNG bytes under .avif/.heic names. libheif from the same dated snapshot
brings the built-in aom, x265 and libde265 codecs, and also enables the
glycin heif loader that GDK Pixbuf uses inside the preview sandbox.

Refs #2019

* test(qa): fail AVIF and HEIC fixtures that lack an ISO BMFF brand

ImageMagick exits 0 and writes the input format when it lacks an encoder,
which let camera-formats-preview-sandbox pass on PNG bytes. The magick
fixture step now requires an ftyp box with the brand its extension names.

Refs #2019

* test: drop a private main context's leftover tasks on their own thread

A GIO call started on a test's private main context keeps the context
alive from its GTask. g_task_thread_pool_thread unrefs the task after
attaching the completion idle, so the test thread can dispatch the
callback, finish and drop its context first, leaving the pool thread
with the last reference. Finalizing the context there destroyed any
spawn_local future still attached to it, and glib-rs dropped the future
on the wrong thread and aborted the whole test process.

PendingVolumeLookup::start, exercised by the adapters::volume tests, is
one such shape: its query_info_async calls run on GIO pool threads and
its timeout task outlives the lookup.

Tests now create private contexts through test_support::PrivateContext,
which destroys every source left on the context when it is dropped, on
the thread that created them. Clippy rejects glib::MainContext::new so
new tests cannot bypass it.

Refs #1963

* test(qa): accept AVIF and HEIC brands anywhere in the ftyp box

Read the whole ftyp box, including a 64-bit largesize or a box running
to the end of the file, and accept the expected brand as the major or a
compatible brand, so avis sequences and mif1-major files pass. Bytes
without a leading ftyp box, such as PNG, are still rejected. The docs
now credit glycin-heif, not a GDK Pixbuf loader, with decoding.

Refs #2019

* fix(columns): open the selected folder's child column on returning to Columns

Switching back to Columns rebuilt every column the browser still held,
so a child column the List or Icons selection had since left reopened
with its open-path fill and the breadcrumb on it.

The selection now drives the child: a child that is no longer selected
closes before the columns are rebuilt, and a lone selected folder opens
as the new child. An empty selection reopens no child, and the
breadcrumb ends at the active folder.

Refs #2016

* fix(conflicts): start a prompt with neither Replace nor Keep Both on Cancel

A replay prompt for an item meeting the other kind offers neither, and
started on Skip, which drops the item from the undo entry. Start on
Cancel instead, the one answer that never changes the history.

Refs #2017

* fix(undo): keep a replay that moves nothing in the history

Skip with Apply to All, or skipping each conflict, left nothing to move,
and the replay then discarded its undo or redo entry, although Cancel,
which also moves nothing, keeps it. Now that an item meeting the other
kind cannot be replaced, a prompt could offer Skip where it was the
only answer besides Cancel, and so drop the entry that way.

A replay whose every conflict is skipped now keeps its entry, as Cancel
does. The prompt offers Skip, and Apply to All beside it, only while an
answer can still move something: an item already accepted, or a later
conflict that Replace can resolve. Otherwise it offers Cancel alone.
A partial replay still drops only the records it skipped.

Refs #2017

* fix(list): start a grouped first visit on the first row shown

A first visit by typed path, sidebar or any route that asks for the
automatic cursor picked the first entry in name order. In a grouped List
that row can sit in a later group, so the cursor landed on the visually
last file or scrolled a large folder to its middle. A double-click left
the cursor to the view and was right.

The browser now knows when its listings show file-type groups, and the
automatic pick takes the first entry of the first visible group. The
group order and the per-folder grouping rules (Recent, unsettled camera
folders) move into the app so the GTK sorter and the pick share them.

Refs #2016

* fix(list): keep a grouped first visit at the top of the list

A grouped List publishes a large folder's rows in name order, so a
group that sorts first arrives above the row GTK focused when the first
rows came in. A pointer first visit has no cursor to hold on to, so
focus followed that row into the middle of the list. Once the listing
is complete, such a pane now focuses the first row shown.

Scrolling a grouped List to its first row also shows the heading above
it, so the automatic cursor leaves the view at the very top.

Refs #2016

* test(qa): cover the first-visit cursor of a grouped List

Opens a grouped List by typed path and by double-click on a listing
large enough to publish in chunks, and checks the first row shown takes
the cursor, then that a revisit restores the remembered one. The
grouped-first-row mutation reverts the automatic pick to name order.

Refs #2016

* test: sweep a private main context until no source is left

Dropping a leftover source's future can attach another source, which a
single pass missed. Repeat from the last probed id until a pass destroys
nothing, and cover it with a task attached during the sweep while
another reference keeps the context alive.

Also disallow glib::MainContext::with_flags, word the Clippy reason for
production code too, and document that Default::default() escapes the
path check and that sources attached after the drop are leaked on
purpose.

Refs #1963

* fix(columns): respect pending navigations and mirroring when returning to Columns

Following the selection on the switch back to Columns closed and opened
columns, which bumps the navigation generation, so a navigation still
validating (a remote folder opened in List) was dropped. The step now
changes nothing while a navigation is pending.

A selection made in List or Icons is not an activation, and with
"Mirror columns selection" off Columns never opens a child from a
selection, so the selected folder opens only while mirroring is on.
Closing a child the selection no longer holds stays unconditional.

Rename the step to follow_selection_on_return, extend its unit cases
(load cursor on a folder, several items without the open child, a held
validation), add mirroring-off runs to the QA scenario and rate it.

Refs #2016

* docs(columns): describe the child column after returning to Columns

Refs #2016

* fix(list): refocus the first row only on an untouched first visit

Focusing a pane without a cursor scrolled every List and Icons pane to
its first row, and the load-finish refocus also ran after reloads and
Back or Forward visits whose saved position a scroll had abandoned.

Focus without a cursor returns to GTK's own row again. Only a first
visit with no saved position, through to its load finishing with no
pointer, scroll, touch or key input in the pane, moves focus to the
first row shown, and only in a grouped pane with no cursor. A reload
drops the watch.

Refs #2016

* fix(navigation): pick a grouped first row without needless type lookups

The automatic pick read every entry's type on the main thread, missing
the bounded type cache on large folders. A type sort already lists the
entries in group order, and under any other sort the first visible
folder leads, so only a folder-free listing not sorted by type needs
the lookups.

A grouped listing arriving in batches now picks its first row once it
is complete instead of from the first batch, and a step without a
cursor starts on the first row shown rather than the first by name.

Refs #2016

* test(qa): check a large grouped first visit stays at the top

Adds a typed first visit to a grouped folder large enough to publish in
chunks, and checks both large visits keep the first row and its heading
in view. Drops the grouped-first-row mutation: the behaviour is not a
critical workflow, and unit tests pin the pick.

Refs #2016

* fix(search): search only the mounts the Devices sidebar shows

Ctrl+K global search added every /dev-backed mount from the raw mount
table to the volume monitor's mounts, so it walked system subvolume
mounts such as /var/cache/pacman/pkg that Devices hides. Search roots
are now Home plus the native roots of the volumes and volume-less mounts
that Devices lists, taken from the same volume-monitor enumeration, which
the sidebar now shares. The roots are still computed on each Ctrl+K, so
mount and unmount changes apply the next time search opens.

Closes #533
Refs #2016

* test(qa): drop the heading geometry checks from the grouped first visit

AGENTS.md rules out layout assertions. The visible check on the first
row still shows each large first visit stayed at the top; the heading
reveal was verified by hand.

Refs #2016

* test(preview): sample smooth scrolling only after the layout settles

The smooth-scrolling test sampled hit testing after fixed 20 ms
wall-clock waits. On a loaded machine GTK can paint newly mapped rows at
their estimated one-line text height before validating their layout,
then grow them a frame later, which re-anchors the list and moves later
rows down. A sample taken in that window and one taken after it read
different, but each correct, layouts, so the order check failed
depending on timing.

Wait on painted frames instead: sample after the mapped rows, their
materialization and the scroll adjustment are unchanged across two
painted frames with no ready main-context work, and drive momentum by
frame count. Hit testing itself already matches GTK's own pick.

Refs #1970

* test(search): cover the volume-monitor root selection directly

Split the Devices mount selection for global search into plain-data
MountRoot and MountListing facts and a pure local_device_roots, so a
table-driven test covers volume mounts, own-row mounts, shadowed and
volume-listed mounts, pathless roots and non-native GVfs roots. A root
now counts only when it is native and has a path, as location_for_file
reads it. The sidebar shares the own-row predicate.

Drop the test-only early return from device_mount_roots; global search
is instead checked against a mount table holding fixture mounts the
volume monitor never lists, which fails if a raw mount-table step
returns.

Refs #533

* fix(list): tie the first-visit watch to its navigation and depth

A parent column's load finishing, such as a monitor relist, used up the
child pane's first-visit watch, so the child's own load skipped its
refocus. The watch now records its depth and only that depth's load
ends it.

Rebuilds for relocations, truncations and mode switches also armed a
watch whenever the folder was still loading, though they are not first
visits. Only the rebuild for a navigation's new column arms one now.

The watch and the restore's input cancel share one user-input
predicate, and a unit test pins that input during the visit keeps its
load from refocusing.

Refs #2016

* fix(navigation): start Up and Shift+arrow without a cursor at the end shown

Up with no cursor took the last entry by name, and Shift+arrow with no
cursor started from the first or last by name. In a grouped List they
now start from the last or first row shown, as Down already does.

Refs #2016

* refactor(test): share the frame paint wait between test helpers

present_window and the virtual preview scrolling test each requested a
frame and ran the main context until it painted, with the same
ten-second timeout. Move that wait into test_support::wait_for_paint
and use it from both; present_window keeps its assertion and messages.

Refs #1970

* test(preview): settle the scrolling test on two equal painted frames

Settling also waited for an empty main context after each paint, but
GTK always queues fresh work after a paint, so nearly every step paid
for a third frame although its rows had stopped moving after the
second. Every frame already runs all ready work before it paints, so
two equal painted frames are settled. This keeps every hit-test sample
and cuts the test from about 40 s to 30 s; update its CI weight.

Refs #1970

* docs: describe the grouped fallback cursor and list the image's libheif separately

* style(tests): fold the PrivateContext import into the probe tests' crate block

* test(qa): refresh the context-menu baseline for the creation rows and sort button

* test(columns): route Alt+Down through the keyboard dispatcher

Columns re-roots the strip at the focused column and Back restores it; List leaves the strip alone.

* test(columns): put the cursor off the first selected item when making a column first

The cursor now starts on the second of two selected items, so dropping the reorder that hands the cursor back to its own item fails the test.

* test(navigation): drop the go_to_column test the browser test already covers

app::browser::tests::navigation::making_a_column_first_keeps_later_columns_focus_and_cursor checks the kept path, the first-column and past-the-end no-ops, and Back to the whole strip.

* docs(columns): note that Alt+Down keeps a multi-selection and does nothing in choosers

* style(browser): drop the duplicated cfg(test) on select_first_on_load

* test(columns): wait for the new first column's cursor after Alt+Down

Both columns reload after the re-root; the cursor lands in column 0 once it lists, which can finish after column 1.

* fix(preview): import recall_media_position outside test builds

set_start_percent calls it in production code, so the #[cfg(test)] gate broke the non-test build.

* fix(preview): remember a video at 0:00 only when a start is configured

With the start at 0, every previewed video and GIF was stored at 0 in the
128-entry position cache, evicting real resume positions and keeping a
video skimmed at 0 from getting a start configured later in the session.

* fix(preview): start raw H.264/H.265 streams at the beginning

The helper seeks raw elementary streams by decoding up to the target, so a
configured start on a long stream could exceed the first-frame timeout.
Issue #1910 asks for these streams to start at 0.

* style(preferences): format the stored import list

* test(preview): wait for the decoder header before checking the video start

settle ticked without sleeping, so the fake stream's Prepared could arrive
after the check and the cases expecting no restart passed without
exercising the start decision.

* test(preview): cover video of unknown length in the start test

* fix(settings): drop the unlocalized percent label from the video start row

The row description already says the value is a percent of the video's length.

* test(preferences): keep only the clamping video start rows

In-range values only echoed the input; the saved fixture and the setter
persistence test already cover round-tripping.

* fix(columns): keep the child column while its parent reloads

A reload empties the column until its selection is restored, so returning
to Columns during one read an empty selection and closed a child that was
still selected.

* style: drop comments that restate the names beside them

* test(preview): wait for a scheduled restart to reach the loader in settle

A wrong restart only reaches the loader once the cancelled worker exits,
which can take longer than the fixed tick count, so the start-at-0:00
cases could pass without seeing it. start_session clears restart after
calling the loader.

* refactor: restore the code health of the files this change touches

Name the load's cursor predicates, extract the range origin and the focus
target, split the first-row table from its test, and move the ISO BMFF check
and the returning-to-Columns tests into their own modules. No behavior
changes.

* fix(preview): skip the start restart when it rounds to the first frame

A short clip at a small percent got a start before its first frame tick,
which restarted the decoder at tick 0 for nothing.

* docs(preferences): note the video start must be set when the preview opens

* test(preview): cover raw video streams ignoring the configured start

An MP4 preview starts at 20 % as a control, then > continues into a raw
H.264 stream, which must start at the beginning.

* test(preview): check the clip's start at its first frame

Waiting for the timestamp to pass 11 s relied on the settle helper's
10 s timeout to fail when the start was not applied.

* style(actions): format the folder action dispatch tests

* test(qa): fold the folder action chord into tenxer-numbered-action-confirms

The separate tenxer-folder-action-runs-on-focused-folder launch repeated what
file_verbs::actions::tenxer_folder_actions_run_on_the_focused_folder_not_the_cursor_item
already checks (pill, rows, background source, path, empty folder, Folder
changed, rebinding). Its only unique part, the real ; . 1 key presses, now
runs at the end of tenxer-numbered-action-confirms, which already owns the
real ; route and the Jobs run. The Jobs popover the first run opens is closed
with Escape and focus returned to the listing before the chord.

* test(actions): cover the folder actions chord in a non-local folder

* docs(preferences): clarify which Action steps the default keymap runs

* test(actions): install a folder action before checking a non-local folder

* test(keys): give the slash filter key its fixed-binding reason

FILTER_DESCEND is a fixed binding, so unlisted_constants_are_commands_or_excluded needs a reason for it not to be a remappable command.

* feat(reference): list slash filter navigation in F1

Move FILTER_DESCEND to the listed catalog block and give it a row in both maps' reference, so every_listed_binding_has_its_own_row_in_its_maps keeps it there. Translate the row in all thirteen catalogs.

* refactor(search): keep the result hook beside the session it overrides

Move the test-only results hook from search_session/tests.rs into search_session.rs under cfg(test), as browser/progress.rs does for its delay override, so the tests module stays private.

* test(browser): keep the Ctrl+F slash tests with the filter focus tests

The two normal-mode slash tests exercise the Ctrl+F entry, not the 10xer footer prompt; the Arabic fallback helper they share with the 10xer test moves to keyboard_dispatch.rs.

* test(10xer): cancel a pending filter slash when the prompt loses focus

Focus leaving the footer prompt and returning before its idle close must still cancel the pending descent, which only the prompt focus check in FilterDescent::is_current does.

* test(qa): enter filtered folders with slash through real key input

Ctrl+F, a query and / enter the matching folder and leave an empty, focused filter, in Columns, Icons and List, with and without Include subfolders. The second level types / as Shift+7 on the German layout.

* fix(filter): read the slash descent after the input method

Catching the / key press swallowed it before an in-process input method saw it, so a Zhuyin, Array30 or Boshiamy code starting with / could not be typed into a filter. The window now leaves / to the field, and a lone / the field commits, read from its insert-text, enters the folder instead of reaching the query. Longer committed text holding / is typed. The layout-fallback guard and its Arabic test go, since a letter on the slash key commits that letter.

* feat(10xer): enter the highlighted filter result with slash

Once Up or Down moves the f prompt's result cursor, / enters the result under it rather than the first; editing the query or reopening the prompt goes back to the first. The prompt keeps a stepped hit through edits, so a flag rather than the cursor itself says whether it moved since the query changed. Ctrl+F keeps entering the first result. The 10xer F1 row says so in all thirteen catalogs.

* style(filter): format the slash descent hook

* fix(filter): keep a selected query when slash enters a folder

GTK deletes a selection, or the character overwrite mode replaces, before it inserts a commit, so / over a query that Ctrl+F or Tab had selected cleared the query and entered nothing. The hook now records that deletion within the change and puts the text back when it takes the /, and only for a field that accepts the /. The change GTK still reports afterwards leaves the text as it was, so a pending descent now ends only when the text differs from its query. Tests commit through the field's input method, which replaces a selection as typing does.

* test(qa): enter a folder with slash after Ctrl+F reselects the query

Down into the results and Ctrl+F back select the filter's query, the route on which / used to clear it.

* fix(10xer): follow the cursor with slash in folders filtered in place

A folder without a native path, such as a remote share, filters its listing in place and has no result rows, so / entered the first match even after Up or Down moved the listing cursor. The in-place branch now takes the entry under that cursor too. The remote case reuses RemoteFolders, now beside RemoteShare.

* style(filter): format the selection restore

* test(10xer): name the focus bug the remote slash case works around

* fix(10xer): ignore prompt changes that keep the text

The changed GTK reports after a / puts back a selection left the text as it was, yet cleared the result cursor flag. Prompt listeners now skip a change whose text equals the last one seen, so the filter prompt's descent cancel needs no text comparison of its own.

* fix(filter): restore an overwritten grapheme and the cursor with it

Overwrite mode replaces the grapheme at the cursor, which may hold several characters, so the record no longer assumes one. A / that restores the text puts the cursor back where it was: at the end of the restored selection, or where overwrite would have written. The hook also names the preedit limit.

* docs(filter): say which change keeps a pending descent

* style(filter): format the overwrite cursor check

* test(qa): select the filter query with Ctrl+A before slash

Down into the results raced subfolder results still arriving under CI load, leaving nothing focused (list-subfolders). Ctrl+A selects the query in the field itself, so / still replaces a selection without depending on the result rows.

* feat(10xer): add persistent letter bookmarks (#1790)

* feat(10xer): add persistent letter bookmarks

Save the current directory with m followed by a letter and jump back
with apostrophe followed by that letter.

Show only saved letters and full directory paths in the jump menu.
Persist bookmarks across windows and restarts using atomic writes.

Add regression coverage, documentation, and localized feedback.
Keep default-mode typing and media-preview mute behavior unchanged.

Refs #1787

* fix(10xer): make bookmark jumps safe and cancellable

Navigate only after a successful folder probe and reject all probe
errors and timeouts without replacing the current directory.

Keep jumps pending until completion or cancellation. Consume cancelling
keys without dismissing selection or previews, cancel on selection and
focus changes, and preserve unrelated navigation validations.

Restore document and archive preview ownership of bookmark prefixes.
Cancel failed bookmark menus, clean unsupported entries on save, and
remove the unused message from every locale.

Add filesystem failure, pending input, preview, and persistence
regressions and document the corrected behavior.

Refs #1787

* fix(10xer): let a bookmark save replace a file that no longer parses

A letter-bookmarks.json that failed to parse, after a bad hand edit,
truncation, a multi-character key or an extra field, made every m x
fail until the file was deleted by hand. Reading ignores unknown fields
and unusable keys, and a save starts from empty bookmarks when the
contents still do not parse, as navigation history does.

* fix(10xer): always report the result of a bookmark save

Any key pressed before the storage worker replied to m x bumped the
bookmark revision, so the save returned without its feedback, failures
included. A save is never canceled, so it now skips the revision and
folder checks a pending jump needs and always reports its result.

* test(10xer): name the pending bookmark jump tests after their behaviour

* test(10xer): port the letter bookmark GUI checks to QA scenarios

The end-to-end suite the PR added test_letter_bookmarks.py to was
removed in favour of the QA scenarios. Its three cases become:

- letter-bookmarks-save-replace-and-survive-restart: m saves the
  listed folder rather than the selected child in every view, ' jumps,
  saving again replaces a bookmark, and it survives a restart;
- letter-bookmarks-read-latin-letters-and-cancel: on US and Russian
  layouts Escape and a digit cancel, and m z and ' z read the Latin
  letter;
- letter-bookmark-failed-jump-keeps-folder: a bookmark whose folder or
  parent was removed reports it is unavailable and keeps the folder and
  selection.

* style(10xer): format the letter bookmark port

* fix(10xer): keep a pending bookmark jump through outside listing changes

A file monitor or operation batch that moved the cursor or selection, such as an outside deletion of the focused item, published FocusChanged or SelectionSetChanged and silently canceled a pending ' jump. Only events the user caused cancel it now; changes published under focus_follows_external_change or focus_follows_background_load leave it pending, and the folder check at completion still applies.

* refactor(10xer): drop the unreachable chooser check from bookmark completion

The file chooser refuses m and ' while the listing has focus, and only the focused listing arms the bookmark chords, so complete_bookmark never runs in a chooser. chooser_refuses_commands_its_request_does_not_allow covers the refusal.

* fix(10xer): accept only file URIs as letter bookmark targets

local_directory took any URI GIO could give a path, so a remote URI mounted through a gvfs FUSE mount read as a local folder. It now parses the URI with g_filename_from_uri, which accepts only file: URIs, and refuses a file URI naming another host. The remote-target test registers a GIO URI scheme that resolves to a FUSE-style path, so it fails if the GIO path lookup returns.

* test(10xer): drop duplicate deleted-bookmark jump tests

Every probe result other than Ok takes the same unavailable branch, so a deleted only child, a deleted folder whose parent still has siblings and a deleted parent exercise one path. letter_bookmarks_keep_the_listing_when_the_saved_directory_disappears and letter_bookmark_only_child_deletion_stays_put go; letter_bookmark_parent_deletion_stays_put owns the case and also checks the selection, navigation generation and chord. Saving by keys stays covered by letter_bookmarks_save_jump_and_replace_across_windows_and_views.

* test(10xer): check that m mutes a focused media preview, not a bookmark

m saves a letter bookmark from the listing but mutes a focused 10xer media preview, and nothing checked the preview side. The volume table now presses m on the focused timeline and asserts it mutes and arms no chord; handing m to the listing from the preview fails both checks.

* docs(10xer): note that ' bookmarks need rebinding on dead-key layouts

On a layout where ' is a dead key, such as us(intl), the press reaches Strata as dead_acute, which has no character and so neither matches bookmark_go nor falls back to a Latin key; the letter after it runs its own 10xer command. Document the limitation in the letter bookmark section and the layout rules, and point to rebinding bookmark_go.

* test(qa): trim the letter bookmark scenarios to their unique runs

- letter-bookmarks-save-replace-and-survive-restart runs in Columns only: saving the listed folder, replacing and the restart do not depend on the view mode.
- letter-bookmarks-read-latin-letters-and-cancel becomes letter-bookmarks-read-latin-letters-on-russian-layout: its US run and the Escape and m 1 cancels duplicate letter_bookmarks_cancel_and_leave_default_mode_and_text_fields_unchanged, so only the real XKB Russian fallback for m z and ' z remains.
- letter-bookmark-failed-jump-keeps-folder drops its only-child variant, which takes the same unavailable branch as the removed-parent one.

Each scenario gains a quality rating.

* style(10xer): format the remote bookmark URI test

* fix(10xer): stop claiming background loads keep a pending bookmark jump

Loads and rescans publish an unflagged SelectionSetChanged before the FocusChanged that focus_follows_background_load marks, so that check never kept a jump pending. Drop it, say that only outside edits to the listing are ignored and that loads and rescans still cancel the jump without navigating, and document that changing the selection yourself cancels it.

* test(10xer): assert the remote bookmark test registers its URI scheme

---------

Co-authored-by: William Feht <[email protected]>

---------

Co-authored-by: Oscar Garza <[email protected]>
Co-authored-by: Bluesboy <[email protected]>
Co-authored-by: Adam Brewer <[email protected]>
Co-authored-by: William Feht <[email protected]>
Co-authored-by: Felipe Jimenez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature pending-review-or-fix A PR that should be merged but is pending a review by maintainers or fixes by the contributor.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(10xer): add persistent letter bookmarks

3 participants