sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
11.43k stars 266 forks source link

Is it possible to make copy / move tasks sequential sometimes? #1231

Closed ShawnMcCool closed 2 days ago

ShawnMcCool commented 2 days ago

Please describe the problem you're trying to solve

When I'm transferring over a slow USB connection, having a bunch of concurrent copies slows down all operations.

Would you be willing to contribute this feature?

Describe the solution you'd like

I'd like to be able to ask yazi to process these operations sequentially while doing this kind of work.

Additional context

No response

sxyazi commented 2 days ago

Hey, it's possible.

In Yazi, copying and cutting are considered macro tasks. You can adjust them using macro_workers - you might need to gradually lower this value to find a suitable balance.

For more information on micro tasks and macro tasks, see: https://yazi-rs.github.io/blog#async-task-scheduling

Closing as already supported.

ShawnMcCool commented 2 days ago

Thank you for the resource. I'm looking forward to continuing to learn and use Yazi. =)