Home Download Buy Blog Forum Support

Is it possible to select text and drag it to a new location

Is it possible to select text and drag it to a new location

Postby jasondavis on Tue Jan 10, 2012 1:49 am

I LOVE sublimetext and it is serious my favorite program as of right now, however I find myself still using old editors a lot because of 1 feature that is missing.

When I select some text in a document, in my other editors I am able to click down n the mouse and drag the selected text to a new location in the document, it is something I use all the time as it is so much easier then "select text, copy text, delete selected text, go to new location and paste text) Keep in mind I am not talking about dragging selected text to a new document, I mean all in the same document, just re-arranging text by selectings it, clicking down on it and dragging it, once you release the click, the text is dropped where ever the mouse pointer has moved.


Is this something that is currently possible by changing a settings? If not, is it something that is possible to get added in?
jasondavis
 
Posts: 23
Joined: Thu Sep 01, 2011 12:52 am

Re: Is it possible to select text and drag it to a new location

Postby C0D312 on Tue Jan 10, 2012 2:21 am

It's currently not possible and is unlikely to be included.


"select text, copy text, delete selected text, go to new location and paste text)

Why not just select some text, press command/control + x then go to the new location and press command/control + v?
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Is it possible to select text and drag it to a new location

Postby svenax on Tue Jan 10, 2012 10:04 am

C0D312 wrote:
"select text, copy text, delete selected text, go to new location and paste text)

Why not just select some text, press command/control + x then go to the new location and press command/control + v?


Because it sometimes would be more convenient to drag text around. It is also a standard feature of almost all modern editors.
svenax
 
Posts: 152
Joined: Tue Dec 20, 2011 12:47 pm

Re: Is it possible to select text and drag it to a new location

Postby C0D312 on Tue Jan 10, 2012 2:18 pm

svenax wrote:
C0D312 wrote:
"select text, copy text, delete selected text, go to new location and paste text)

Why not just select some text, press command/control + x then go to the new location and press command/control + v?


Because it sometimes would be more convenient to drag text around. It is also a standard feature of almost all modern editors.


I understand the use of the feature, I was merely implying that jasondavis could use keyboard shortcuts to speed up the cut and paste process. Also because he said "copy text then delete text" which could be simplified to cut.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Is it possible to select text and drag it to a new location

Postby craigpatik on Tue Jan 24, 2012 6:22 pm

Dragging text avoids overwriting the clipboard. Cutting and pasting isn't the same thing. Yes, there's a clipboard history plugin, but that's just not the same.
craigpatik
 
Posts: 12
Joined: Mon Jan 09, 2012 2:26 pm

Re: Is it possible to select text and drag it to a new location

Postby Clams on Sun Jan 29, 2012 5:34 pm

I made a plugin to provide an equivalent to the drag or ctrl+drag function : https://bitbucket.org/Clams/pasteselonclick/
Instead of dragging you just alt+right click to move selection or alt+ctrl+right click to copy selection where you click : it's not perfect but at least it provides the basic functionnality of being able to copy or move a bunch of text without overwritting the clipboard.
This does not support the copy from one tab to another, i'll have to understand better the API for that ... (if some have an idea, please share :) )
Clams
 
Posts: 47
Joined: Fri Dec 30, 2011 7:44 am

Re: Is it possible to select text and drag it to a new location

Postby cgibby on Wed Feb 08, 2012 7:05 pm

+1 for this feature request. One of my favorite features of Notepad++ that is missing from Sublime Text. craigpatik is dead right -- I've often got something ELSE in my clipboard that I don't want to overwrite, just move the current text around. Ctrl-shift-up/Ctrl-shift-down are good too, but sometimes I just want to drag with the mouse.
cgibby
 
Posts: 5
Joined: Thu Feb 02, 2012 3:54 pm

Re: Is it possible to select text and drag it to a new location

Postby strong_epoxy on Sat Feb 18, 2012 10:26 pm

I came here looking for the same feature.

What's funny is that the EXACT same conversion can be found in the Eclipse forums when it was young and immature. OP, Cut/Paste suggestion, plugin offerings, everything :)

The 3.0+ builds (I think?) included the feature and I immediately switched to it from other editors. (I'm considering sublime as Eclipse is a bit heavy weight for simple tasks.)

Please include this feature ASAP. Copy/Paste is not an alternative.
strong_epoxy
 
Posts: 1
Joined: Sat Feb 18, 2012 10:20 pm

Re: Is it possible to select text and drag it to a new location

Postby segfault on Mon Feb 20, 2012 3:17 am

Ctrl+Shift+Up and Ctrl+Shift+Down works pretty well. It will move the line or block up and down in the documents, passing through the other lines.
segfault
 
Posts: 7
Joined: Thu Feb 02, 2012 2:37 pm

Re: Is it possible to select text and drag it to a new location

Postby kabadesu on Sun Mar 04, 2012 12:58 am

+1 from me too. I miss this feature.
kabadesu
 
Posts: 31
Joined: Wed Feb 29, 2012 9:28 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 31 guests