drag-drop-text package for the Atom editor
Drag and drop text (and cut/copy/paste) with only the mouse. No keyboard is needed, not even the modifier keys.
Are you looking for just a simple drag and drop?
There is a sister package to this one, simple-drag-drop-text
. It has less features but it is simpler to use and follows the standard drag/drop behavior of other editors.
No keys were pressed when making this gif ...
Installation
Enter atom install drag-drop-text
or use the settings page.
Usage
There is no Atom command. Actions are triggered by holding down the mouse in the text editor without moving for a certain duration. The duration defaults to 750 MS but can be changed in settings.
Operations fall into two categories. There are drag & drop text operations and normal cut/copy/paste operations. All operations use the normal clipboard. Instructions for each operation follow ...
Drag & Drop Copy
- Click and hold on selected text or double-click to select word and hold
- Wait until selected text has a red border
- Drag cursor to destination position and release
Drag & Drop Move
- Click and hold on selected text or double-click to select word and hold
- Wait until selected text disappears
- Drag cursor to destination position and release
Cut & Paste
- Click and hold on selected text or double-click to select word and hold
- Wait until selected text disappears (cut)
- Release mouse without moving
- Move mouse to new position, press and hold (paste)
Copy & Paste
- Click and hold on selected text or double-click to select word and hold
- Wait until selected text has a red border (copy)
- Release mouse without moving
- Move mouse to new position, press and hold (paste)
License
Copyright Mark Hahn using the MIT license