Sublime Forum

Drag and drop text with mouse

#1

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?

0 Likes

BibDesk and Sublime Text 2
#2

I’m also interested on thin functionality.
My py skills are too low to build a plugin and the time is limited.

0 Likes

#3

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.

0 Likes

#4

Yeah, it’s been requested multiple times, I think. (for example: Drag selection?)

Interesting tip on implementing a plugin. I’ll see if it’s something that can be done quickly.

0 Likes

#5

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:

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?

0 Likes