Repository navigation
feat(actions): run 10xer custom actions on the focused folder with ; . - #1826
Conversation
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
b474962 to
35f3872
Compare
Review and cleanupMerged Review against the description and #1743. The chord does what the description says. Validation
Follow-ups outside this PR
CI: required checks green as of 2026-10-23 16:05 UTC. |
ReviewReviewed at head Blocking1. The branch conflicts with On
Fix: declare 2. Hungarian translations are missing. Minor3. 4. Two doc comments were deleted without replacement: on Not verified: this review is from reading the diff and a trial merge ( |
…tions-chord Resolve the conflicts with remappable shortcuts (#1885) by making the folder actions step a command, "actions.folder" step(Actions) on ".", so it can be rebound, the conflict checker sees it, and Settings lists it as "Actions for the focused folder" in the 10xer table. The digits after it and the "; .-" pill are built from Shown values and follow the user's keys for both ";" and ".". Lettered steps are read before it, and digits after, as an armed chord reads its steps first. Restore the Digits and Chord::options doc comments, and document the new step in the keymap, preferences and keyboard-shortcuts guides. It has no path in the default map, where there is no panel to switch.
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.
Fixes applied
Validation: targeted |
# Conflicts: # src/ui/keys/tests.rs # src/ui/window/tests/keyboard_dispatch/file_verbs.rs
…nfirms 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.
Review and cleanupThis PR is now stacked. Its base is Merged
Everything else merged automatically. Review against the description and #1743. Every claim holds after the merge:
#1743 suggested an explicit second chord, and Fixes pushed
Tests removed
Validation
Follow-ups outside this PR
CI: all checks green on |
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.
* 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(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. * 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. --------- Co-authored-by: William Feht <[email protected]>
Description
In 10xer mode the cursor always sits on an item, so ; then a digit always targets the cursor item or the fill. An action meant for the current folder could only be reached with the mouse, through the background menu. Using
{parent}instead still matched[when]against the cursor item, so folder-only actions disappeared over files, and an empty folder offered no actions at all.; . now switches the ; panel to the actions matching the keyboard-focused folder, the same ones its background menu offers. A digit (; . 1–; . 9 / ; . 0) runs one with the folder as its only input and as
{parent}, and withSTRATA_ACTION_SOURCE=background. If the folder changes before the digit, it flashesFolder changedand runs nothing. Non-local places listNo matching actions..step. The shortcut reference gains a ; . 1–9 / ; . 0 row;Digitsnow supports a two-key chord prefix to render it.docs/10xer-mode.mdanddocs/custom-actions.mddescribe the chord.tenxer-folder-action-runs-on-focused-folder.Validation notes:
cargo fmt --checkandclippy -D warningsran natively on the pinned 1.98.1 toolchain instead of through./scripts/quality.sh../scripts/qa.sh tenxer-folder-action-runs-on-focused-folderin the pinned container (PR CI skips QA scenarios). It has nocostyet, because cost is relative to the whole suite; the next suite-widescripts/qa_cost.py runwill set it../scripts/test-headless.py.Visual evidence
N/A. The change adds a keyboard chord and a panel row; the steps below describe it.
How to test
~/.config/strata/actions/folder-log/action.tomlwithkinds = ["folder"]under[when], and a command run such asprogram = "/bin/sh",args = ["-c", "printf '%s\\n' \"$STRATA_ACTION_SOURCE\" \"$@\"", "sh", "{paths}"].."Actions for this folder…". Press .: the pill reads; .-and lists "Folder log" as1. Press 1.Expected result: Jobs shows the run, and Details prints
backgroundand the path of the folder you are in, not the cursor item. It works in an empty folder too. ; then a digit still runs on the cursor item or fill with sourceselection. F1 lists ; . 1–9 / ; . 0.Related issue
Closes #1743