-
Couldn't load subscription status.
- Fork 630
feat: confirm on bulk rename #2704
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
base: main
Are you sure you want to change the base?
Conversation
|
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? |
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please format the code as per https://github.com/sxyazi/yazi/blob/main/CONTRIBUTING.md#development-setup
| if !succeeded.is_empty() { | ||
| Pubsub::pub_from_bulk(succeeded.iter().map(|(o, n)| (o, &n.url)).collect()); | ||
| FilesOp::rename(succeeded); | ||
| } | ||
| drop(permit); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
d1efbb8 to
a0ab614
Compare
35d9907 to
2768fd2
Compare
9f077f9 to
60a2382
Compare

No description provided.