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

fix: change the way sessions are sorted #1347

Merged
merged 3 commits into from
Apr 29, 2022
Merged

fix: change the way sessions are sorted #1347

merged 3 commits into from
Apr 29, 2022

Conversation

jaeheonji
Copy link
Member

@jaeheonji jaeheonji commented Apr 26, 2022

This PR resolve #1339

Problem

Depending on some platforms and types of file systems, it may not be possible to get the metadata creation time.
For example, the btrfs file system, or when using WSL.

The simplest way to solve this problem is to use a modified time instead of a creation time.

By default, session files (socket files) do not change the time of metadata after the session is created.

Therefore, there will be no problem even if the modified time is used.
Also, in the case of mtime, most major filesystems are supported.

@jaeheonji jaeheonji changed the title chore: add TODO comment fix: change the way sessions are sorted Apr 26, 2022
@jaeheonji jaeheonji marked this pull request as ready for review April 29, 2022 12:28
@jaeheonji jaeheonji merged commit 510964e into zellij-org:main Apr 29, 2022
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.

Error when trying to attach by index
1 participant