This package provides:
This package consumes:
Made for Pulsar!
This package was written specifically for Pulsar and did not exist in the Atom package repository.
Native Windows clipboard operations for tree-view files and folders.

<name> - Copy (n)<ext>.To install windows-clip search for windows-clip in the Install pane of the Pulsar settings or run ppm install windows-clip. Alternatively, you can run ppm install asiloisad/pulsar-windows-clip to install a package directly from the GitHub repository.
Commands available in .platform-win32 .tree-view:
windows-clip:cut: (Shift+X) cut selected files/folders to clipboard,windows-clip:copy: (Shift+C) copy selected files/folders to clipboard,windows-clip:paste: (Shift+V) paste from clipboard (auto-rename if exists),windows-clip:force: (Shift+B) paste from clipboard (overwrite if exists).windows-clipProvides native Windows clipboard access for file operations. Other packages can read/write file paths and drop effects directly from the Windows clipboard.
In your package.json:
{
"consumedServices": {
"windows-clip": {
"versions": {
"1.0.0": "consumeWindowsClip"
}
}
}
}
In your main module:
module.exports = {
consumeWindowsClip(windowsClip) {
// Constants for drop effect
windowsClip.DROP_EFFECT_NONE // 0
windowsClip.DROP_EFFECT_COPY // 1
windowsClip.DROP_EFFECT_MOVE // 2
windowsClip.DROP_EFFECT_LINK // 4
// Read file paths from Windows clipboard
const paths = windowsClip.readFilePaths()
// Read the drop effect (copy/move/link)
const effect = windowsClip.readDropEffect()
// Write file paths to clipboard with drop effect
windowsClip.writeFilePaths(['/path/to/file'], windowsClip.DROP_EFFECT_COPY)
// Clear the clipboard
windowsClip.clear()
}
}
Got ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback's welcome!