How Do You Get Drag and Drop Text to Work?


#1

Hi
Just migrating from NP++ and am trying to get the same behavior as for NP++ when dragging and dropping text.
I have installed the Simple Drag and Drop Text package.

In NP++ I can do as follows:

  1. Double Click on a word -> word is selected
  2. Click again and hold (word stays selected)
  3. Drag word to new pos
  4. Release mouse -> word is move to new pos

When I do the same in Atom:

  1. Double Click on a word -> word is selected
  2. Click again and hold -> selection changes from word to line
  3. Drag word to new pos -> selects all text between word and new pos (like shift+drag)
  4. Release mouse -> nothing happens but above multi-line selection is retained

Seems to happen on all the file types I’ve tried .txt, .hs, .cabal, .cson.

Is there a setting or something somewhere I need to change to get this to work?

Thanks
John


#3

Did you try drag-drop-text plugin by same author? that will allow you to dra and drop text with only left mouse button. The simple plugin requires you to hold a modifier key and drag.


#4

Hi @SavageCore
I’ve uninstalled Simple Drag and Drop Text and installed drag-drop-text then I disabled all my other plugins for the purpose of testing.

Still no luck unfortunately - seems to be the line selection on step 2 above that breaks things (I’m on Windows 10).
John