Closed mgunyho closed 2 years ago
Mind if I work on this feature?
Hi!
Sure, go ahead! I haven't implemented this mostly because it requires figuring out quite a few details which I've been too busy/lazy to decide on:
vim
can sort by name, extension, size, and time (which I assume means modified time). The file Metadata provided by Rust also has info on last access and creation time (though the latter doesn't work on Ubuntu by default).
tere
is mostly for browsing folders, so maybe size and extension are not so important? What do we report as the size of folders?my_folder 2022-09-16 12:34
is quite easy to understand.Alt-S
.But please go ahead and make a PR and let's see where this goes.
Note: if you start working on this, see #62 (should be merged soon) which adds some functionality for handling changes to settings that affect the directory listing. I'm also working on some bug fixes related to the drawing of the main screen (I'll do a PR about these soon), which might conflict with this, but we can figure it out.
Hey, so I had the some of the same questions about the details.
--files-first
--folders-first
--mixed
. In my opinion, symlinks should ideally be treated like whichever type they point to.name
column and a modified date
(or abbreviated form) column.Fixed by #64
Currently the listing is always sorted by name. Would be nice to also sort by e.g. date, although I have not had much use for this. In that case, should also add a date column to the listing. Should be configurable whether the sorting stays the same when entering a folder.