andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.53k stars 177 forks source link

Improvement in `trash-list` #304

Open abhiyandhakal opened 1 year ago

abhiyandhakal commented 1 year ago

Is your feature request related to a problem? Please describe. Let's take an example of a file test which has been trashed. Now I need to permanently delete it. But I don't remember the name of the file on the top of my head. Now I enter trash-list. But it shows all the files in ~/.local/share/Trash/files. I just wanted to find the file in the current directory. But I cannot do that. That only works when I enter trash-restore.

Describe the solution you'd like I would like the addition of following feature: A flag like --currentdir so that only the files trashed from the current directory are displayed.

Describe alternatives you've considered I did consider that trash-list should by default just list the files trashed from the current directory and list all if a flag like --all is passed. But it could cause come confusion among the users. So this method mightn't be suitable.

andreafrancia commented 1 year ago

Good idea.