Home Download Buy Blog Forum Support

BufferScroll

Re: BufferScroll

Postby tito on Wed Mar 07, 2012 6:25 pm

Interesting to have different views with different color schemes. I've added an option to save the color scheme and also as a plus the syntax. =)

Here how you change a color scheme for a view.

1 - With the preference "remember_color_scheme" set to "true" you change the color scheme. For example by selecting IDLE.
2 - You close the file ( this will save the data for the view )
3 - You select again your previous "color scheme"

Now, every time you open the file IDLE will be set.

But, there is a problem!

Sublime allow to change the "color scheme" for the application. But will not overwrite views with a custom "color scheme" set, which is good.

To change the color scheme from IDLE you need first to "forget the color scheme of the view" by clicking Menu -> Preferences -> Color Scheme Forget.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby S0und on Wed Mar 07, 2012 8:03 pm

yay, thanks soo much, works great!
S0und
 
Posts: 70
Joined: Wed Oct 28, 2009 4:12 pm

Re: BufferScroll

Postby tito on Wed Mar 21, 2012 9:09 pm

I completed a full rewrite of this package some days ago. I fixed some problematic exceptions that were present in previous versions and it works faster.

To remember:
This package started as a project to save the scroll position between sessions.
Now it saves everything about a view. (scroll, bookmarks, folds, marks, selections and syntax )

Additional features:
1 - Has the optional ability ( by default set to false ) to synch bookmarks, folds and marks between cloned views. A bookmark or fold will appear automatically in other cloned views. This was requested by user outer7
2 - if you folded something and then unfolded, with this plugin you can call to "refold" ( if the view content was untouched -- if not fold will appear in funny positions ) This may can be improved a little more.

If you tried this package in the past but were frustrated with the result give it another try and report any problem.

Limitation:
- Currently the data taken by this package is saved when the focus of a view is lost. This is obviously not optimal. This is a limitation of sublime text which is not dispatching the events "on project open/closed" and "on application close"
- There seems to be a problem with sublime text setting scroll position of some file types as xml, html and txt when these are loaded.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby danield on Fri Jul 06, 2012 9:10 pm

Hey,

I'm not sure what's going on but I have a major bug after installing this add-on. If I bookmark one line, then bookmark another above it, the one below it is frozen and can't be toggled. This isn't the exact behavior as sometimes the bookmark can be below but all I know is whenever I add two bookmarks, one after another without toggling, one of them freezes up. I get bookmarks stuck everywhere and I've had to uninstall this add-on.

By the way the only functionality I had on was the save bookmarks. I really like the idea of that feature but the add-on needs to be fixed.
danield
 
Posts: 4
Joined: Tue Jul 03, 2012 5:51 pm

Re: BufferScroll

Postby danield on Fri Jul 06, 2012 9:18 pm

Apparently removing the package didn't fix the problem.

Upon further review I realize the problem is that my bookmarks don't just bookmark the line, but the exact spot in the line (even though there is no indication where that is!). In order to clear the bookmark I have to know exactly what place in the line the cursor was at when I toggled it. Maybe I just never ran into this problem before but is this default Sublime behavior? I think it's terrible design choice, even with indicators of where in the line your bookmark is, you only need a bookmark for the line, not the exact spot in the line.

Is there a way to force bookmarks to only toggle on the line, not the spot within the line?
danield
 
Posts: 4
Joined: Tue Jul 03, 2012 5:51 pm

Re: BufferScroll

Postby tito on Fri Jul 06, 2012 9:31 pm

Upon further review I realize the problem is that my bookmarks don't just bookmark the line, but the exact spot in the line (even though there is no indication where that is!). In order to clear the bookmark I have to know exactly what place in the line the cursor was at when I toggled it. Maybe I just never ran into this problem before but is this default Sublime behavior? I think it's terrible design choice, even with indicators of where in the line your bookmark is, you only need a bookmark for the line, not the exact spot in the line.

Correct!

Is there a way to force bookmarks to only toggle on the line, not the spot within the line?


Request or search the forum for this problem.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby Fed03 on Tue Aug 07, 2012 1:20 pm

hi,
ty for the plugin but lastly it doesn't auto scrool to the line in which there's the caret.....

tips? ty
Fed03
 
Posts: 79
Joined: Sun Oct 16, 2011 6:38 pm

Re: BufferScroll

Postby tito on Tue Aug 07, 2012 3:37 pm

Sorry I have no idea what are you talking about. Some step by step instructions will help.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby macosxguru on Sat Feb 02, 2013 8:30 pm

BufferScroll, at least the typewriter scrolling feature doesn't seem to work in the Sublime Text 3 beta. Does anyone have a fix for that?

Thanks.
macosxguru
 
Posts: 6
Joined: Tue Jan 10, 2012 6:28 pm

Re: BufferScroll

Postby quodlibet on Sun Feb 03, 2013 11:07 pm

@macosxguru For typewriter scrolling I use a plugin made by some forum regulars. I just cleaned it up and pushed it to github [1] for my own use. It works fine for me but doesn't support cloned views and so on. Maybe it will be useful to you until @tito updates BufferScroll.

[1]: https://github.com/alehandrof/Typewriter

Alex
quodlibet
 
Posts: 500
Joined: Sat Jun 18, 2011 5:53 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 10 guests