Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to default to moving to trash #6

Open
ericcornelissen opened this issue Apr 27, 2023 · 1 comment
Open

Option to default to moving to trash #6

ericcornelissen opened this issue Apr 27, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed pending This cannot be worked on yet

Comments

@ericcornelissen
Copy link
Owner

Feature Request

Summary

Some users may prefer to have rm move files to the trash bin by default. Having to use the --trash/-t option constantly can get annoying and it's easy to forget. To this end, an option that makes the default behavior of rm move files to the trash could be helpful. As an alternative behavior flag, an environment variable probably makes the most sense for this feature.

As of writing it's unclear what the --trash/-t option would do when the default is to move files to trash, or how to skip the trash and remove files immediately.

@ericcornelissen ericcornelissen added the enhancement New feature or request label Apr 27, 2023
@ericcornelissen
Copy link
Owner Author

For the time being the following workaround is recommended: alias rm to rust-rm --trash. For example with Bash (and similar shells):

# assuming 'rust-rm' is available on your $PATH
alias rm='rust-rm --trash'

Given this workaround, it's unlikely official support will be added until the "how to skip the trash and remove files immediately" & "what the --trash/-t option would do" problems are resolved.

@ericcornelissen ericcornelissen added the help wanted Extra attention is needed label May 3, 2023
@ericcornelissen ericcornelissen added the pending This cannot be worked on yet label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed pending This cannot be worked on yet
Projects
None yet
Development

No branches or pull requests

1 participant