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

Trash state #882

Merged
merged 2 commits into from
May 29, 2024
Merged

Trash state #882

merged 2 commits into from
May 29, 2024

Conversation

Canop
Copy link
Owner

@Canop Canop commented May 27, 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

@FrancescElies
Copy link
Contributor

works fine on linux + gnome + nushell.

When calling :open_trash is it possible to see the dates the files where deleted and sort them to see what was recently deleted?

@Canop
Copy link
Owner Author

Canop commented May 28, 2024

When calling :open_trash is it possible to see the dates the files where deleted and sort them to see what was recently deleted?

Not yet. It's on the todo list but it's probable I'll do that later because of a deep broot change I'm working on.

@FrancescElies
Copy link
Contributor

works fine on windows 11 + nushell (test: cargo r -F trash, trash a file, restore and empty trash)

@Canop
Copy link
Owner Author

Canop commented May 28, 2024

You just taught me that it was possible to shorten cargo run --features in cargo r -F... I had no idea...

@Canop Canop merged commit b50161f into main May 29, 2024
1 check passed
@Canop Canop deleted the trash-state branch May 29, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add features for Trash management
2 participants