Home Download Buy Blog Forum Support

BufferScroll

Re: BufferScroll

Postby macosxguru on Sat Feb 09, 2013 7:10 pm

@quodlibet, thanks for that. I am going to try it out. Thanks again.

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

Re: BufferScroll

Postby macosxguru on Sat Feb 09, 2013 7:19 pm

quodlibet wrote:@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


Thanks again Alex. I installed it, and it works perfectly. Made it possible for me to switch to SublimeText 3 full time. thank you again.

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

Re: BufferScroll

Postby canstar on Mon Mar 11, 2013 7:19 am

Hope BufferScroll can support sublime text 3.
canstar
 
Posts: 3
Joined: Mon Mar 26, 2012 8:00 am

Re: BufferScroll

Postby WPowers on Fri Mar 15, 2013 6:08 pm

I am loving the typewriter scrolling functionality but am wondering if anyone thinks it would be even better if the user could define the location the active line would be at, perhaps through a percentage. I like the to keep my active line at about 33% down from the top of the screen.
WPowers
 
Posts: 1
Joined: Fri Mar 15, 2013 6:05 pm

Re: BufferScroll

Postby tito on Mon Mar 18, 2013 6:03 pm

That's a really good idea : )
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby tito on Tue Mar 26, 2013 10:23 am

I'm happy to announce this plugin nows supports ST3 https://github.com/SublimeText/BufferScroll/tree/st3 The first of the serie :P

There is some bugs, mostly present in ST2: Work in progress.. have hopes.

ヘ The application does not have an event listener for when you swtich, open or close projects, and windows, then this package can't save the data for the focused files. You will lost scroll position of last focused file. By not providing these listeners, this package has suboptimal methods for saving it's data. Such listening change of views, focus lost, file closing, saving, etc. If you don't hit any of these event, the package will lose the data for last focused file.

ヘ For some reason sublime API is not restoring scroll of xml/html documents, including: xml, tpl, html, xhtml See: viewtopic.php?f=3&t=6237&start=0 Also this will and is causing problems for these that use the build screeen with F4. Also, is causing another problem, that you can't request to sublime to open a file at a given row, because this plugin will overwrite the scrolled line. viewtopic.php?f=5&t=3503&start=20#p22324

ヘ There is no event listener for when a view is scrolled, then this package, has another suboptimal way of listening for changes of scroll, such tracking the scroll every x time.

:)
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby pod on Sat Mar 30, 2013 2:32 am

tito wrote:I'm happy to announce this plugin nows supports ST3

Nice, like it very much! One more issue I'm getting - when I close sublime I lose folding in files. Is that in bug list as well?
Also I'm getting following error in console, is there anything I can do to fix it?

Code: Select all
Traceback (most recent call last):
  File "D:\Program Files\Sublime Text 3\Data\Installed Packages\BufferScroll.sublime-package\BufferScroll.py", line 181, in <lambda>
  File "D:\Program Files\Sublime Text 3\Data\Installed Packages\BufferScroll.sublime-package\BufferScroll.py", line 186, in write
  File "X/gzip.py", line 183, in __init__
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Program Files\\Sublime Text 3\\Data/Settings/BufferScroll.bin.gz'
pod
 
Posts: 37
Joined: Sun Nov 07, 2010 3:32 am

Re: BufferScroll

Postby tito on Sat Mar 30, 2013 2:50 am

Ahh, may the folder does not exists?

Please update and let me know.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BufferScroll

Postby pod on Sat Mar 30, 2013 8:51 pm

tito wrote:Please update and let me know.

Yep, no errors - folder and file were created. Almost perfect! :)

Here are steps to reproduce minor issue with folding:
1) Open file where you can add foldings
2) Fold piece of code
3) Save
4) Just close sublime without closing file first
5) Open sublime - you'll see that foldings are not remembered

If in step 4 you close the file before closing sublime then, after sublime restart, when you open the file foldings will be in place.
Other than that it is great, thanks man!
pod
 
Posts: 37
Joined: Sun Nov 07, 2010 3:32 am

Re: BufferScroll

Postby tito on Sat Mar 30, 2013 9:26 pm

Imposible to restore something if on_load is not dispatched when opening the application.
https://github.com/SublimeText/BufferSc ... dbe251a4be

Code: Select all
+  # TODO the application is not sendinng on_load when opening a window,
+  # then there is this hack which will simulate on_load when you open the application
+  # since this is just a hack, there is a terrible noticeable delay, which just sucks, thank you.
+  for view in sublime.active_window().views():
+    BufferScrollAPI.on_load(view)
+
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 5 guests