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

Allow sorting by atime and ctime as well as mtime. #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

atsampson
Copy link
Contributor

I often want to sort by ctime. (I'm not sure how useful atime is... but "with Times" did show it already.)

The changes are straightforward enough, but I'm a bit antsy about the impact this has on the translations, hence the split commits to optionally keep "Sort by Date" intact.

In addition to the new sort types, this also adds atime and ctime
columns to the list view -- which makes sense, given that the details
view shows atime/ctime when times are shown. I've kept mtime first
because it's the one you're most likely to be interested in.

For consistency, it would make sense to rename "Sort by Date" to "Sort
by Last Modified" (and SORT_DATE to SORT_MTIME), but that would need
changes to all the translations too.
This means we're consistent with the "mtime, atime, ctime" order
everywhere.
... and SORT_DATE to SORT_MTIME. List View already called this column
"Last Modified", so this means the terminology is consistent between the
views, although it'll need changes to the translations.

Backwards compatibility: the numeric value of the option is the same, so
existing Options files will still work, and remote mode accepts "Date"
to mean the same as "LastModified".
@atsampson
Copy link
Contributor Author

I did finally find a use for sort-by-atime a couple of weeks ago, so it's not completely useless!

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