Skip to content

Selection: fixed selection on Linux with virtual folders like /dev#429

Merged
warpdesign merged 1 commit into
masterfrom
fix-file-selection
Apr 23, 2024
Merged

Selection: fixed selection on Linux with virtual folders like /dev#429
warpdesign merged 1 commit into
masterfrom
fix-file-selection

Conversation

@warpdesign
Copy link
Copy Markdown
Owner

We were incorrectly using {ino,dev} as file ID but on Linux there may be virtual folders that have
no unique ino like /proc, /dev.

This broke selection/navigation on / on Linux / WSL since several folders could end up having the same ID.

This PRs still uses ino + dev when possible and falls back to the string ${ino}-${dev}-${path} for virtual folders.

This fixes the navigation on / on *nix while still keeping nice features, like renaming a selected file will still reselect the correct file when the folder is refreshed.

We were incorrectly using {ino,dev} as file ID but on Linux
there may be virtual folders that have no unique ino like /proc, /dev.

This broke selection/navigation on `/` on Linux / WSL since several
folders could end up having the same ID.

This PRs still uses ino + dev when possible and falls back
to the string `${ino}-${dev}-${path}` for virtual folders.

This fixes the navigation on `/` on *nix while still keeping
nice features, like renaming a selected file will still reselect
the correct file when the folder is refreshed.
@warpdesign warpdesign merged commit e3b9718 into master Apr 23, 2024
@warpdesign warpdesign deleted the fix-file-selection branch April 23, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant