ckardaris / ucollage

An extensible command line image viewer inspired by vim
GNU General Public License v3.0
210 stars 3 forks source link

[Feature request] Option to load image sorted by modified date #6

Closed KevCui closed 3 years ago

KevCui commented 3 years ago

Using ucollage to open all images in a folder, the current behavior is to load all images sorted alphabetically by file name. It would be great to have another option to sort files by modified date, the most recent modified one showing at the first place.

ckardaris commented 3 years ago

We could do something like

filelist=($(ls -c "$@"))
ckardaris commented 3 years ago

@KevCui Do you want to work on this?

KevCui commented 3 years ago

@ckardaris Sure, I'll try, but not promise that it will be done soon 🙂

ckardaris commented 3 years ago

Ok, we should have an exported variable UCOLLAGE_SORT with accepted values {name, time and anything else} You should modify the README at the end and the relevant parts in functions parse_config and set_defaults