Closed Susensio closed 5 months ago
Thank for your code!
Can you also add a --sort={none,date}
option?
For now none should be the default.
I'll look into it. I've seen that trash-restore
does this sorting as well. Maybe it's a good idea to refactor both and share the code for list generation. What do you think?
Choose the way you feel more comfortable with, for me is ok.
If you can refactor in order to prevent duplication between trash-restore
and trash-list
it would be great, but is not mandatory, I can remove duplication later.
The trash-restore code for sorting of date is not tested yet. If you decide to refactor trash-restore please use extra care in checking that the sort will continue working. If you can also add test for date sorting ti would be great.
Thank you, but I see some conflicts.
Fixes #266 I had to consume the generated list to be able to sort it and print it afterwards.