-
Notifications
You must be signed in to change notification settings - Fork 39k
Explorer: allow to paste files from the clipboard into target folder #130036
Copy link
Copy link
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityfile-explorerExplorer widget issuesExplorer widget issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesIssue/pull request mentioned in release noteson-testplanworkbench-dndDrag-and-drop issuesDrag-and-drop issues
Milestone
Description
Looks like Chrome 91 (the same version we now use in Electron 13) provides read access to files in the clipboard:
https://www.chromestatus.com/feature/5671807392677888
async function onPaste(e) {
let file = e.clipboardData.files[0];
let contents = await file.text();
}This would open the door to allowing a user to copy files from a local folder and paste into the explorer to copy (desktop) or upload (web) them there.
I think we already have a handler for pasting but it is scoped to operations within the file explorer only.
Reactions are currently unavailable
Metadata
Metadata
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityfile-explorerExplorer widget issuesExplorer widget issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesIssue/pull request mentioned in release noteson-testplanworkbench-dndDrag-and-drop issuesDrag-and-drop issues