• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

drag-drop-text

Drag and drop text (and cut/copy/paste) with only the mouse.
keni8em
1.1.0 7,586
17
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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 ...

Image inserted by Atom editor package auto-host-markdown-image


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

Image inserted by Atom editor package auto-host-markdown-image


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

Image inserted by Atom editor package auto-host-markdown-image


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)

Image inserted by Atom editor package auto-host-markdown-image


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)

Image inserted by Atom editor package auto-host-markdown-image


License

Copyright Mark Hahn using the MIT license

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by