Repository navigation
feat(10xer): add persistent letter bookmarks - #1790
Conversation
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
|
Code review of HighA failed jump can leave the current folder.
Suggested fix: navigate only after MediumDocument and archive previews no longer swallow Both keys are in Suggested fix: drop The jump keeps running after the chord is gone. The second key ends the chord before the disk read and probe finish, and 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
Checks 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
|
Thanks for the detailed review! Addressed in
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? |
ReviewThe 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 Blocking: rebase onto current
|
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.
Fixes applied
Validation: scoped |
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.
Review and cleanupMerged
The bookmark keys don't collide with any stacked binding: Review against the description and #1787. Every claim in the description is implemented and tested: saving with Fixes pushed
QA scenarios
Tests removed
Mutation checks. Each new or sharpened test fails when its fix is reverted:
Validation
Follow-ups outside this PR
CI: every check passed on |
* 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]>
Description
Add persistent directory bookmarks to 10xer mode:
mfollowed bya–zsaves the current pane's directory.'followed by the same letter opens that directory.Bookmarks support local directories, are shared across windows, and
survive restarts. Default-mode typing remains unchanged;
mstillmutes inside media previews.
Visual evidence
N/A — no attachments. The existing chord popover displays saved
letters alongside their full directory paths.
How to test
m, thena.'. Confirm that the menu showsaand its saved directory path, without unused letters.ato return to the saved directory.aand verify that it replacesthe previous bookmark.
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