Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

warpdesign
Copy link
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
1 check failed
@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