JulianEberius / Textmate-Minimap

A minimap plugin for TextMate.
http://julianeberius.github.com/Textmate-Minimap/
Other
180 stars 11 forks source link

Drag the selection box in the minimap #29

Open jacob-carlborg opened 13 years ago

jacob-carlborg commented 13 years ago

I think it would be nice if it would be possible to drag the selection box in the minimap. I'm think like how it works in Sublime Text: http://www.sublimetext.com/

JulianEberius commented 13 years ago

Hi,

Sorry, but at the moment I dont have the time to actively work on TM-Minimap anymore, especially since I myself have switched to Sublime Text 2. Furthermore an Alpha of TextMate 2 is announced for December, so this plugin will have to completely rewritten anyway (if that will be possible or necessary at all in TM2).

If you really want this fixed, have a look at an earlier commit (two commits ago 732b0fae7beff2fc8f849b8573dc8bdd0c5a7a6d) In the mousedown methods of MinimapView.m Also take a look at - (void)selectFromLine:(unsigned int)fromLine toLine:(unsigned int)toLine in NSWindowController+Minimap.m

The feature you're looking for was partly implemented in earlier versions of the plugin, but would work only with Soft Wrapping disabled, and work partly with Soft Wrapping. I removed half-working features such as this in the last version of TM-Minimap to get a stable version with less support overhead.

So, if you want, fork the plugin and re-add this feature for yourself, I will not be able to do it in the near future.

Sorry, Julian

jacob-carlborg commented 13 years ago

Ok, I see.

JulianEberius commented 13 years ago

Wow, I misunderstood you again... I thought "selection box" meant the actual text selection (as in selecting text using the minimap). This feature was implemented in earlier versions. Synchronously moving text view and minimap by dragging in the minimap (as ST2 does) should be possible, but also time-consuming to implemented...

I'll keep this open anyway, maybe there will be more time someday :-)

Julian

jacob-carlborg commented 13 years ago

Hehe, no problem. I probably wasn't clearly enough on what I was referring to.