Closed PHLAK closed 3 years ago
You could always sort them yourself with trash-list | sort
.
@Hund Of course that's possible (and what I do for now), however the current defaults could use improving.
You could always sort them yourself with
trash-list | sort
.
Does it help? It sorts the list of trashed files, but when running trash-restore
you have to pass the number of the file that you want to restore, and you can't obtain easily that number by running trash-list | sort
.
trash-restore since version 0.20.11.7 accept --sort=date as parameter, this was implemented by @Self-Perfection in https://github.com/andreafrancia/trash-cli/pull/135
That's great @andreafrancia! Any reason why is this not the default though?
The reason is that my PR sorts by path by default.
I understand that @Self-Perfection. I'm making the argument that sorting by date would be better as the default since I predict when most users run trash-restore
they are attempting to restore files that were deleted recently.
@PHLAK this makes sense. I'd suggest you create small PR for your suggestion.
Done @Self-Perfection. #179
When running
trash-restore
in a directory with trashed files the files aren't sorted by time/date. It would be convenient for them to be sorted by deleted time/date so the most recently deleted file is at the bottom. This would make it easier to restore recently deleted files which are the files I'm most likely trying to restore.Current Result
Expected Result