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

Add features for Trash management #855

Closed
Schweber opened this issue Mar 13, 2024 · 2 comments · Fixed by #882
Closed

Add features for Trash management #855

Schweber opened this issue Mar 13, 2024 · 2 comments · Fixed by #882
Labels
enhancement New feature or request

Comments

@Schweber
Copy link
Contributor

Schweber commented Mar 13, 2024

As broot now includes the trashy crate for the :trash internal (if i understand it correctly), it could make use of more of its features for managing the Trash.

I would like to have commands to

  • cd into the system trash directory
  • restore files
  • clear the Trash directory

This way, broot could replace trashy, which is not up-to-date anyway.

@Schweber Schweber added the enhancement New feature or request label Mar 13, 2024
@Canop
Copy link
Owner

Canop commented Mar 13, 2024

It makes sense

@Canop Canop mentioned this issue May 27, 2024
@Canop
Copy link
Owner

Canop commented May 27, 2024

@Schweber tests of the PR welcome

Canop added a commit that referenced this issue May 29, 2024
`:open_trash` shows the content of the trash.

Other new internals & verbs: `:delete_trashed_file`, `:restore_trashed_file`, `:purge_trash`.

All this is available only when broot is compiled with the `trash` feature.

Fix #855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants