Home Download Buy Blog Forum Support

Drag and drop text with mouse

Drag and drop text with mouse

Postby j_p on Sat Aug 27, 2011 11:12 pm

Hi.

I do a lot of moving text about with the mouse, and find using ctrl+C and crtl+V cumbersome - are there any plans to implement this feature in the future?
j_p
 
Posts: 2
Joined: Sat Aug 27, 2011 11:06 pm

Re: Drag and drop text with mouse

Postby iamntz on Sun Aug 28, 2011 4:26 am

I'm also interested on thin functionality.
My py skills are too low to build a plugin and the time is limited.
iamntz
 
Posts: 908
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Drag and drop text with mouse

Postby j_p on Sun Aug 28, 2011 9:16 pm

Thanks for the reply sublimator. Unfortunately I'm in the same boat as iamntz, and haven't got the necessary skills to create a plugin.
j_p
 
Posts: 2
Joined: Sat Aug 27, 2011 11:06 pm

Re: Drag and drop text with mouse

Postby oliverseal on Tue Sep 06, 2011 4:04 pm

Yeah, it's been requested multiple times, I think. (for example: viewtopic.php?f=2&t=865&p=10442)

Interesting tip on implementing a plugin. I'll see if it's something that can be done quickly.
oliverseal
 
Posts: 4
Joined: Fri Jun 24, 2011 7:47 pm

Re: Drag and drop text with mouse (plugin attempt)

Postby oliverseal on Tue Sep 06, 2011 7:30 pm

Does anyone know what the scope/context is for the "drag_select" command that is used in mousemaps?
I'm working on a click-drag plugin, and the first thing I need to be able to do is allow for a normal click event to happen if their's no selection. I can't fire the 'drag_select' command, though.
Tried the following:
Code: Select all
import sublime, sublime_plugin
class DragSelectionCommand(sublime_plugin.TextCommand):
    def run(self, edit):
       self.view.run_command('drag_select')
        self.view.window().run_command('drag_select')


Nothing works. I could be missing args. Console has no output. Input anyone?
oliverseal
 
Posts: 4
Joined: Fri Jun 24, 2011 7:47 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 15 guests