Home Download Buy Blog Forum Support

Scroll Offset

Scroll Offset

Postby adzenith on Fri Feb 18, 2011 2:22 am

Hey guys I made a new plugin—it makes it so the view scrolls before the cursor gets to the edge. Check it out:
https://github.com/adzenith/Sublime-plu ... _offset.py
(theoretically this link should always point to the most recent version)

The only known bug is that it's hard to use to the mouse to select things near the edge of the screen. I was kind of thinking of ways to fix this but I haven't come up with anything simple.

Let me know if you've got any questions or have any problems.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Scroll Offset

Postby theblacklion on Sat Feb 19, 2011 6:02 am

Hmm.. I've done a different approach to this some days ago:
https://bitbucket.org/theblacklion/subl ... _offset.py

But I haven't made any attempt for centering the view horizontally. Do you use/need that?
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: Scroll Offset

Postby adzenith on Mon Feb 21, 2011 7:29 am

It comes in handy to have it scroll horizontally too. I edit files that have long lines, and it's helpful to have a horizontal scroll offset.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Scroll Offset

Postby whoshallsucceed on Fri Jul 06, 2012 1:13 pm

Hi folks!

Is there a reason I do not see any effects using it with ST2?
whoshallsucceed
 
Posts: 5
Joined: Tue Jan 25, 2011 12:27 pm

Re: Scroll Offset

Postby adzenith on Fri Jul 06, 2012 4:17 pm

I've heard tell it doesn't work if you have word wrap enabled.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Scroll Offset

Postby Grant on Fri Nov 30, 2012 2:02 pm

Grant
 
Posts: 68
Joined: Fri Jan 20, 2012 2:42 pm

Re: Scroll Offset

Postby highend on Fri Nov 30, 2012 2:34 pm

Even after disabling word wrap, installing Scroll Offset and Mouse Event Listener and restarting ST2, I can't see difference when scrolling. The cursor always hits the last line (top / bottom) before it scrolls...
highend
 
Posts: 93
Joined: Fri Jan 20, 2012 2:47 pm

Re: Scroll Offset

Postby adzenith on Sat Dec 01, 2012 3:49 am

Huh. Does your console say anything?
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Scroll Offset

Postby highend on Sat Dec 01, 2012 9:01 am

Huh. Does your console say anything?


There aren't any entries in the console (from either of these two plugins) when I actually scroll and apart from that, after starting up ST2, only the usual entries that they have been loaded.

E.g.:
Reloading plugin D:\Tools\Sublime Text\Data\Packages\MouseEventListener\mouse_event_listener.py
Reloading plugin D:\Tools\Sublime Text\Data\Packages\ScrollOffset\scroll_offset.py
highend
 
Posts: 93
Joined: Fri Jan 20, 2012 2:47 pm

Re: Scroll Offset

Postby adzenith on Sat Dec 01, 2012 7:54 pm

Huh... not sure what else to check. It definitely works over here.
Try adding "show_debug_guides": True to your Scroll Offset.sublime-settings?
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 14 guests