Skip to content

fix(browser): keep a column's sort on mergerfs and other unremembered folders - #2085

Merged
l0gicgate merged 1 commit into
mainfrom
fix/2084-keep-sort-on-fuse-overlays
Nov 7, 2026
Merged

l0gicgate merged 1 commit into
mainfrom
fix/2084-keep-sort-on-fuse-overlays

Conversation

@l0gicgate

Copy link
Copy Markdown
Contributor

Description

On a mergerfs mount, deleting a subfolder open in the next column reset the parent column to Name, ascending.

Two causes, both fixed:

  • Unremembered columns lost their sort when the column path was rebuilt. Removing an open folder rebuilds every column through 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.
  • Local FUSE overlays never remembered folder views. Every fuse.* mount except fuseblk counted as a network share, so mergerfs folders never stored their sort or icon size and folder-views.toml stayed empty. The new MountTable::is_remote_share predicate 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.md now 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

  1. Mount a mergerfs union, e.g. mergerfs /b1:/b2 /data/test, with a few files and two subfolders, and open it in Columns mode.
  2. Set the column sort to Modified, Descending.
  3. Click a subfolder so it opens in the next column, then press Delete.
  4. Open a sibling folder, come back to /data/test, then restart Strata and open it again.
  5. Repeat steps 2–3 on an SMB or NFS share.

Expected result:

  1. After step 3 the column stays sorted by Modified, descending.
  2. After step 4 /data/test still opens sorted by Modified, descending, and ~/.local/state/strata/folder-views.toml has an entry for it.
  3. After step 5 the share's column keeps its sort through the delete. It is still not remembered across navigation.

Related issue

Closes #2084

… 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
@github-actions github-actions Bot added the fix label Nov 7, 2026
@l0gicgate
l0gicgate merged commit 3ae582f into main Nov 7, 2026
18 of 20 checks passed
@l0gicgate
l0gicgate deleted the fix/2084-keep-sort-on-fuse-overlays branch November 7, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sort resets to Name after deleting an open folder on a mergerfs mount

1 participant