trash-cli
trash-cli copied to clipboard
Add a way to trash from stdin
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>
I'd be ready to submit a PR if you agree with the idea
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.