Repository navigation
Conversation
Back restores every column with no cursor. Pressing Left into an ancestor column then left its cursor empty, and F2, Delete, copy, cut and duplicate fell back to the folder the *parent* column has open, so they renamed or trashed the root column's folder instead of the focused row. - Left gives a parent column without a cursor the folder it has open, as descending into that folder would have left it. A parent still loading takes it once listed, through its own load target with no fallback, so a folder gone or hidden meanwhile leaves no cursor rather than one on an unrelated entry. Any cursor placed meanwhile, reveal or failed load cancels it; relocation rebases it and a kept listing clears it. The lgse#1437 preferred entry and its fallback are unchanged. - The "folder you entered" fallback for rename, delete and copy/cut applies only when the active column is the deepest one. - focus_parent, focus_child, select and the cursor moves share one place_committed_cursor helper (formerly focus_only). Fixes lgse#1993
Renaming a Ctrl+F filter result left focus and selection on whichever result took over its row, so the next Delete trashed a neighbour. When a rename completes, the stale-result prune finds the old path gone before the search index lists the new one, drops the result, and the results fall back to the result now in its slot (List, Icons) or to no selection (Columns). In Columns, rename labels were also looked up through the directory listing instead of the result rows, so the optimistic and restored names landed on the wrong row. Results now record a rename when it starts, from the inline editor (Enter or Tab) or the 10xer rename prompt. The prune keeps the renamed result in place under its new path while the view would show it, and the first update that lists the new path carries the selection, anchor and focus over to it; Columns also moves its cursor there. A rename to a path in another folder is recorded as a move: the result is dropped, not kept as a phantom, and no remaining result takes its selection, as the listing does. Failed and abandoned renames forget only their own record, so a newer rename's record survives. Columns rename labels resolve through the results, the directory reveal leaves result rows alone, and the Columns listing-focus fallback over results reuses focus_results_on_cursor, so focus returns to a refused result after its error dialog. Fixes lgse#1994
…rrows Plain Home, End, Page Up and Page Down move the cursor, selection and anchor in the model, but in List and Icons GTK's own Shift range origin stayed at the last arrow position, so a following native Shift+Home, Shift+End or Shift+arrow extended from there. Move that origin to the model's anchor after these moves, as restores and Ctrl+click already do. Columns passed Shift+Home and Shift+End to its GTK list, whose origin its model-driven arrows never set, so they selected only the edge item. Extend to the first or last item from the model's anchor there, as its Shift+arrows and Shift+page keys do. In List and Icons, plain arrows and their h j k l letters moved GTK's cursor while the model kept its old anchor, so Shift+Page Up/Down and Shift+click extended from an earlier item. The dispatcher now runs GTK's arrow binding for both and anchors the model at the cursor when the move replaced the selection, not when GTK keeps a range at an edge. It also cancels a pending click-to-rename, which the browser's own key handler no longer sees once the dispatcher stops the key; an unmoved letter is still stopped so it is never typed. Fixes lgse#1995
With keyboard focus inside a rendered document, PDF, table or archive preview, Delete moved the previewed file to Trash, Shift+Delete asked to delete it permanently, Ctrl+D duplicated it, F2/Ctrl+R started renaming it and Ctrl+Alt+N moved it into a new folder. The guards only exempted text widgets (lgse#670), so any other preview widget let the default-map file commands act on the selection behind it. Check whether focus is anywhere inside the preview drawer, whatever widget it renders, for these commands, as the clipboard keys already did. The 10xer map is unchanged: its preview keys hand focus back to the listing before a file command runs. Fixes lgse#1996
… cost Answer the window dispatcher's preview-focus check with PreviewDrawer::owns_focus. The slot, overlay, revealer and resize grip that the old check also accepted are never focusable, so the result is unchanged. Describe what the check tests rather than overclaiming, and leave the new scenario's cost out until it is measured. Refs lgse#1996
The folder picker stripped "~/" and joined the remainder onto home, so a remainder starting with "/" (as in "~//x") replaced home with the filesystem root. Go, copy to and move to then searched and acted outside home. Trim leading slashes from the remainder so repeated slashes after "~" collapse as in POSIX paths. Fixes lgse#1997
Also name the jump-key test helper after what it does, so it no longer shares a name with the video-clip helper. Refs lgse#1993
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes five P1 bugs from the 1.2.0 release-candidate QA sweep. In four of them a keyboard command could act on the wrong file; in the fifth, the 10xer folder picker searched outside home.
rprompt. A rename to a path in another folder (feat(browser): name and rename items with relative paths #1512) removes the result instead; nothing else takes its selection, as in the folder listing. Clearing is per rename, so overlapping renames keep the newer one's record. Columns labels are now looked up in the filter results. After a refused rename in Columns, focus returns to the result that was selected; onmainit went to the first result.PreviewDrawer::owns_focuscheck decides this. Before, only text widgets were exempt.~//xas/x, sogo,copy toandmove toact outside home #1997,~//in the folder picker:scope()joined"/x"onto home, and joining an absolute path replaces the base. Leading slashes after~/are now trimmed. The other places that expand~/already trimmed them.docs/keyboard-navigation.mdnow covers the rename, range-anchor and Back/Left behaviour. No user-facing strings changed.Not verified locally:
scripts/code-health.shdid not run, becauseCS_ACCESS_TOKENwas not set. The new functions were kept within the AGENTS.md code-health limits by hand.new-folder-with-selection-groups/columnsfails intermittently on this machine, at line 34 (the clicked folder's column does not take focus). It fails as often onmain(ede64d92), so it is not caused by this branch.Visual evidence
N/A. These are keyboard-routing, focus and selection fixes with nothing new to see; the behaviour is described above and in the steps below.
How to test
alpha/sub/innerand select a file. Click a sidebar place, press Alt+Left, then Left twice. Press F2, then Escape, then Delete.a.csv,b.csv,c.jsonandd.txt, and turn Group by file type off. Press Ctrl+F, type., and selectc.json. Press F2, type0.md, press Enter, then press Delete. Repeat in Icons and Columns, and with 10xer'srprompt..md,.pdf,.docxor.csvfile. Press Space, then Right to move focus into the preview. Press Delete, Ctrl+D and F2.~//xas/x, sogo,copy toandmove toact outside home #1997: turn 10xer on, outside home. Pressgand type~//x. Separately, select a file, pressCand type~//zzqa, where nozzqa*folder exists in home.Expected result:
sub, notalpha.0.mdstays focused and selected, Delete trashes0.md, and every Columns row shows its own name.goshows only matches under home, andcopy tofinds no folders, so nothing is copied.Related issue
Closes #1993
Closes #1994
Closes #1995
Closes #1996
Closes #1997