Repository navigation
Merge upstream Arkha: operations window, thumbnails, search fixes - #2
Merged
Merged
Conversation
A queued job that starts gets a running entry of its own, which was added at the end of the list, below the jobs still waiting: the next of those then looked first in line (the jobs did run in order). Running entries now go above the waiting ones. tools/gui-tests/ops-order.sh queues three copies and checks the order in the File Operations window once the second has started; a11y.py can now press buttons and read texts in a window by its title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switching tabs set the actions while GTK still reported the tab left as the current one: with search results there, Paste stayed off in the tab switched to, so files cut from the results didn't paste with Ctrl+V (the context menu, which sets the actions itself, worked). The actions are now set for the tab switched to. tools/gui-tests/search-paste.sh cuts search results in one tab and pastes them with Ctrl+V in another. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Search results have no folder monitor, so files moved away from them stayed listed until the search ran again. When a move, trashing or deleting ends, every tab showing search results now hears what went (ops::on_moved): results that left the folder searched, were trashed or deleted, or were in a folder that did, are dropped; moved to another place within it, they're shown there. tools/gui-tests/search-paste.sh checks both: moved out, and moved to a folder within the one searched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thumbnail that failed while its file was still arriving was noted with the file's time only, in seconds: if the copy ended in that second, the finished file had the noted time and was never tried again (moving it elsewhere was the only way). The note now has the file's size too (Thumb::Size), and only a note with both still matching counts; older notes without a size don't, so files stuck so far get one more try. The memory of thumbnails queued had the same blind spot, and grew as long as Arkha ran: it's keyed by size too, and a job leaves it when it's done (the thumbnail or the note then does its part). Asked for one that exists already, the views get it at once. tools/gui-tests/thumb-retry.sh: half a video fails, the whole one with the same time gets its thumbnail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thumbnails are named after their file's URI, so a moved or renamed file got a new one and the old one stayed in ~/.cache/thumbnails for good, as did those of files deleted. As the thumbnail spec suggests, a file moved or renamed in Arkha now takes its thumbnails along (every size, also those of everything in a moved folder; Thumb::URI updated without decoding the picture, written to a file beside it and renamed), each as soon as it's moved, before the folder shown asks for them. Deleting permanently and emptying the trash remove them (a trashed item's are found by where it came from); trashing keeps them for a restore, and a replaced file's go. Files changed by other programs aren't known. The new src/thumbcache.rs does it, with unit tests; tools/gui-tests/thumb-move.sh moves, renames, deletes, trashes and empties the trash, checking no thumbnail is made again and none is left. a11y.py's press also finds buttons in message boxes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GTK's license notice is gone but for its first sentence, "This program comes with absolutely no warranty." (with the description; GPLv3's legal notices ask for it). At the bottom left, a License button opens the GPLv3 page the notice linked to, and a Source Code button the repository; Close stays at the right. GTK made all the window's texts selectable: only the version is now, the one worth copying for a bug report. German: "Für dieses Programm besteht keinerlei Garantie.", "Lizenz", "Quellcode". The .po and .pot files also have the line references brought up to date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A job from the queue was listed a moment after its waiting entry was removed: the list was empty in between, the operations button hid, and the popover, open to follow the queue, closed. Such a job is now listed at once. tools/gui-tests/ops-popover.sh keeps the popover open while the first of two copies ends and checks it still shows the second. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preferences → Behavior → File Operations, "Show file operations in their own window" (off by default): the location bar's operations button and its popover don't appear; the File Operations window opens when an operation takes a while (again if it was closed meanwhile) and closes when the last one is done. Turned on while operations run, the window opens at once. With it off, nothing changes. German: "Dateivorgänge in einem eigenen Fenster anzeigen". tools/gui-tests/ops-window.sh: the window opens by itself, no button, closed at the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a fast machine the first copy was sometimes done before the second was pasted, which then started at once instead of being queued (seen on Wayland). The first copy is now paused from the operations popover until the second is queued, then resumed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes over: file operations can have their own window, the operations popover stays open while a queued job takes over, thumbnails go with moved files and are tried again once a failed file is complete, search results follow moved files, Ctrl+V in a tab switched to from search results, and the About dialog's License and Source Code buttons. Names are Voyager's. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Takes over the 9 new commits of dekart811/arkha (operations window setting and popover, thumbnails that go with files and are retried, search results following moved files, paste after search, About buttons), with Voyager's names; the translations of the new texts come from Arkha's German file. Checked locally: clippy, 174 tests, release build, and the screenshot run on a headless X server.
🤖 Generated with Claude Code