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

feat: add new move, trash, and delete event kinds to DDS #880

Merged
merged 13 commits into from
Apr 10, 2024
3 changes: 2 additions & 1 deletion yazi-scheduler/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ impl Scheduler {
let file = self.file.clone();
_ = self.micro.try_send(
async move {
file.trash(FileOpTrash { id, target, length: 0 }).await.ok();
file.trash(FileOpTrash { id, target: target.clone(), length: 0 }).await.ok();
Pump::push_delete(target);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like adding trash to delete because they're two different concepts, I think it deserves a new trash event kind.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll add a new event kind. It should be much simpler after the latest changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok it's done now and seems to work
image

}
.boxed(),
LOW,
Expand Down