edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Feature: Drag & drop from selected text in MacVim to another application #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Highlight text with mouse or cursor, and use any key combination with click
and drag to try to bring the text to another application without having to
use copy-paste.

What is the expected output? What do you see instead?

The possibility, directly or using the command button or option button or
some button as a modifier, to drag selected text to another Mac OS X
application.  No matter what I press I just lose or start to redo my selection.

What version of MacVim and OS X are you using?

Version 7.2 stable 1.2 (33.3)
Mac OS X 10.5.6, Build 9G55

Please provide any additional information below.

Yes I have a strange addiction to drag and drop and should get help but I
tried and am not coping well without it.  Nevertheless, thanks for the
overall fantastic enhancement to Vim!

Original issue reported on code.google.com by pwgdarch...@gmail.com on 22 Jan 2009 at 6:08

GoogleCodeExporter commented 9 years ago
(This should be listed as an enhancement but I was unable to make that listing.)

Original comment by pwgdarch...@gmail.com on 22 Jan 2009 at 6:09

GoogleCodeExporter commented 9 years ago
This seems like a good feature but it may be a bit tricky to implement since 
Vim does not support this type of 
drag-n-drop (at least to my knowledge it does not).

I'll add it to my TODO though.

Original comment by bjorn.winckler@gmail.com on 31 Jan 2009 at 12:10

GoogleCodeExporter commented 9 years ago
I think I should clarify that this request is not for drag and drop *within* vim
(where dd and p serve quite well, and which might be difficult) but for 
dragging *out
of* MacVim into other Mac applications (which I would think would be a good bit
easier, or at least not have to mess with the way vim does anything).

Drag and drop *into* MacVim already works.

Thanks so much!

Original comment by pwgdarch...@gmail.com on 6 Feb 2009 at 12:58

GoogleCodeExporter commented 9 years ago
FYI: The problem is that MacVim only has the text that is currently displayed 
in the window in memory; lines that 
are currently not visiible are in a child vim process. Hence, if you select a 
block of text that is partially invisible 
(e.g. because it's scrolled out-of-view), then MacVim would have to send a "get 
the currently selected text" 
message to vim, receive the result, and then hand the text to OS X for the drag 
source handling. This is possible, 
but it _is_ a bit of work.

Dropping into MacVim on the other hand is just like entering text, which is 
roughly speaking why it already 
works.

Original comment by nicotha...@gmail.com on 6 Feb 2009 at 3:56

GoogleCodeExporter commented 9 years ago
"Buggy" drag & drop that only works for currently visible window would be 
mighty fine!

Original comment by pwgdarch...@gmail.com on 11 Feb 2009 at 6:08