Skip to content

feat: confirm on bulk rename#2704

Open
TD-Sky wants to merge 5 commits into
sxyazi:mainfrom
TD-Sky:bulk-rename-confirm
Open

feat: confirm on bulk rename#2704
TD-Sky wants to merge 5 commits into
sxyazi:mainfrom
TD-Sky:bulk-rename-confirm

Conversation

@TD-Sky

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

Copy link
Copy Markdown
Contributor

No description provided.

@TD-Sky

TD-Sky commented May 1, 2025

Copy link
Copy Markdown
Contributor Author

图片

@sxyazi

sxyazi commented May 1, 2025

Copy link
Copy Markdown
Owner

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

TD-Sky commented May 1, 2025

Copy link
Copy Markdown
Contributor Author

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.

@sxyazi sxyazi left a comment

Copy link
Copy Markdown
Owner

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

@sxyazi sxyazi force-pushed the main branch 6 times, most recently from 00e4151 to 7a51626 Compare May 28, 2026 04: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.

2 participants