Skip to content

Conversation

@TD-Sky
Copy link
Contributor

@TD-Sky TD-Sky commented May 1, 2025

No description provided.

@TD-Sky
Copy link
Contributor Author

TD-Sky commented May 1, 2025

图片

@sxyazi
Copy link
Owner

sxyazi commented May 1, 2025

Thanks for the PR, but the bulk renaming deliberately doesn't use the confirm component, see #2246 (comment).

Could you explain how this PR addresses the problems I mentioned in that issue?

@TD-Sky
Copy link
Contributor Author

TD-Sky commented May 1, 2025

It needs a new PR. Confirm component wouldn't be a question anymore if yazi could copy items easily like terminal. For example, interacting with failed tasks like interacting normal files in yazi.

Copy link
Owner

@sxyazi sxyazi left a comment

Choose a reason for hiding this comment

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

Comment on lines -104 to -108
if !succeeded.is_empty() {
Pubsub::pub_from_bulk(succeeded.iter().map(|(o, n)| (o, &n.url)).collect());
FilesOp::rename(succeeded);
}
drop(permit);
Copy link
Owner

Choose a reason for hiding this comment

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

Where did these codes go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's my fault. Let me add it back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not familiar with the pubsub api so I didn't reuse BodyBulk in Pump::serve. Any suggestions?

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.

2 participants