JulianEberius / Textmate-Minimap

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

Smooth scroll #32

Open ghost opened 12 years ago

ghost commented 12 years ago

Hi, I think the mini-map should scroll just like Sublime Text, mousewheel over the mini-map and I can quickly scan my file.

JulianEberius commented 12 years ago

Thanks for your suggestion.

At the moment I do not work on TM-Minimap anymore, mainly because I have switched to Sublime Text 2. Furthermore, with the Textmate 2 Alpha out, this plugin would have to be updated (an probably completely rewritten) to work with TM2. I will not have the time to do any of that in the near future.

If you know some Objective-C, you can have a look at Minimap.h line 256 (void)scrollWheel and try to change the scrolling behaviour in the way you want it. At the moment, the TM-Minimap is scrolled independently of the textview when the document is to long to be displayed in the minimap (Try it out with a very long file). As far as I can see, the Sublime Text 2 minimap just scrolls synchronously with the textview. Isn't this just the same as what you get in TM if you scroll with the mouse over the textview?

Any way, Good Luck!

ghost commented 12 years ago

Hi Julian, thanks for replying. Yes, you're right - however I tend to also click & drag within Sublime's minimap quite a lot. This doesn't work in Textmate. Not to worry, we'll see what the future holds for Textmate with v2.