Repository navigation
fix(browser): keep a column's sort on mergerfs and other unremembered folders - #2085
Merged
Merged
Conversation
… folders Rebuilding the column path after an open folder was removed reset every column whose folder sort is not remembered to the default sort. A column that survives the rebuild now keeps its own sort. Local FUSE overlays such as mergerfs and gocryptfs now remember their folder sort and icon size like the drives under them, as the delete dialog already treated them as local. Closes #2084
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
On a mergerfs mount, deleting a subfolder open in the next column reset the parent column to Name, ascending.
Two causes, both fixed:
NavigationState::restore, which gave each one its folder's saved sort or the default. A folder with no remembered sort (remote shares, Trash, Recent, Camera Photos, mergerfs before this change) fell back to the default. A column that survives the rebuild now keeps its own sort when its folder has none remembered. This also fixes the reset on NFS and SMB shares.fuse.*mount exceptfuseblkcounted as a network share, so mergerfs folders never stored their sort or icon size andfolder-views.tomlstayed empty. The newMountTable::is_remote_sharepredicate exempts the local overlays (mergerfs, gocryptfs, bindfs, …) that the delete dialog already treats as local. The delete dialog and folder views now share it, and network-change checks for those mounts are unchanged.docs/preferences.mdnow lists local FUSE overlays among the filesystems that remember folder views.Visual evidence
N/A. The change keeps an existing sort; there is no new UI.
How to test
mergerfs /b1:/b2 /data/test, with a few files and two subfolders, and open it in Columns mode./data/test, then restart Strata and open it again.Expected result:
/data/teststill opens sorted by Modified, descending, and~/.local/state/strata/folder-views.tomlhas an entry for it.Related issue
Closes #2084