Skip to content

Hover over the pasted file or folder. #1706

Closed Locked Answered by sxyazi
ze0987 asked this question in 1. Q&A
Discussion options

You must be logged in to vote

I think because nnn is synchronous — users can't do any other actions until the copy operation is completed, so it can handle things this way.

However, Yazi's copy operations are asynchronous — they run in the background. This means that during copying, the user may have done other actions, like moving the cursor and getting ready to press "d" to delete a file. If the background copy task finishes at that moment and resets the cursor, the user might accidentally select the wrong file to delete, which poses a certain safety risk.

Additionally, Yazi can have multiple task queues running concurrently in the background, and if they finish one after the other, the cursor would be reset multipl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ze0987
Comment options

Answer selected by ze0987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants