Feature request: --verbose flag
cmessias opened this issue · 4 comments
Hi there, I've been using this program for the last couple of weeks and I've been loving it so far. One of the things I think is missing from rm is a --verbose flag.
I think this flag is super useful for interactive use in the terminal, and I think it would be useful here too. In rm it simply prints the removed files after the fact, like so:
$ touch file file2 file3
$ rm --verbose file*
removed 'file'
removed 'file2'
removed 'file3'
In trashy, I think it could be done similarly, or to maintain consistency with the other subcommands, a confirmation prompt could be used, like how it is already done with the empty subcommand:
$ trash empty file
3 items will be emptied
╭───┬────────────────┬──────────────────────────╮
│ i │ Time │ Path │
├───┼────────────────┼──────────────────────────┤
│ 2 │ now │ /home/caio/desktop/file │
│ 1 │ now │ /home/caio/desktop/file3 │
│ 0 │ now │ /home/caio/desktop/file2 │
╰───┴────────────────┴──────────────────────────╯
Are you sure? [y/n]
What do you think? Do you think it makes sense adding this flag?
I could help with the development if needed.
Thanks.
I think we could add this flag. I don't know if we should add a confirmation prompt, as trash
is a lot less destructive than trash empty
, trash restore
, or rm
. Also, --verbose
only implies more output, not a confirmation prompt.
I agree that just having more output seems better for this
Any update on this? Would also love to see that!
Great application!