trash-cli icon indicating copy to clipboard operation
trash-cli copied to clipboard

trash-restore should take an optional filename

Open nickthecoder opened this issue 8 years ago • 1 comments

If a filename is specified, then it restores that file without listing anything, or asking for a number. e.g. $ trash-restore myfile.txt

This would have two benefits:

  1. It would be much easier to restore a file immediately after a (mistaken) trash-put
  2. You can use trash-restore programmaticly.

As a bonus, allow multiple filenames to be specified.

nickthecoder avatar Sep 18 '17 15:09 nickthecoder

You can do 1, if you use trash-restore | grep. https://github.com/andreafrancia/trash-cli/issues/117

hrsma2i avatar Mar 23 '18 06:03 hrsma2i