Implement copy paste for ProjectPanel

This commit is contained in:
Antonio Scandurra 2022-05-30 14:52:34 +02:00
parent 37a0c7f046
commit 3336bc6ab3
7 changed files with 253 additions and 55 deletions

View file

@ -698,6 +698,11 @@ impl ProjectPanel {
})
.map(|task| task.detach_and_log_err(cx));
} else {
self.project
.update(cx, |project, cx| {
project.copy_entry(clipboard_entry.entry_id(), new_path, cx)
})
.map(|task| task.detach_and_log_err(cx));
}
}
None