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

Add a way to trash from stdin

Open iTrooz opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I often use my trash for things categorised as "I probably won't ever need this again, but I'll quickly store it just in case". This often applies to text I have stored in my clipboard

Describe the solution you'd like A way to trash text easily, without manually creating a file before

An implementation could be making trash-put - or trash-put --stdin read from stdin. The - character has already been used like this: https://stackoverflow.com/a/8045495

Describe alternatives you've considered Creating a file with nano and trashing it instantly

Additional context The name of the file trashed could be trashcli_stdin_<random letters>

iTrooz avatar Jun 13 '24 09:06 iTrooz

I'd be ready to submit a PR if you agree with the idea

iTrooz avatar Jun 13 '24 09:06 iTrooz

I can't pre-approve PR, you need that functionality go ahead and implement it. Implement for you not for trash-cli. If the design is sound, the use case useful, used or requested I will pull it by myself.

andreafrancia avatar Jul 08 '24 19:07 andreafrancia