Sublime Forum

BufferScroll

#61

Thank you anyway for fast reaction. Working good

0 Likes

#62

good? thatā€™s good for you? :smiley:

0 Likes

#63

Hi,

Is this working in ST3? Doesnā€™t seem to work in mine :neutral_face: Hoping for an update soon. thanks

0 Likes

#64

Here: github.com/SublimeText/BufferScroll/tree/st3

Semi working ā€“ ST insist to restore scroll at funny positions

0 Likes

#65

[quote=ā€œtitoā€]Here: github.com/SublimeText/BufferScroll/tree/st3

Semi working ā€“ ST insist to restore scroll at funny positions[/quote]

Thanks!!!

0 Likes

#66

tito,

Thanks for looking into this already. Now that ST3 is in open beta, Iā€™m trying to get set up with it to write and BufferScroll is essential (I have been using it daily since you got it to its current level of functionality, all that time ago, thanks).

Now in ST3 (Iā€™m running Win7x64, if that makes a difference) and I can get typewriter scrolling working fine, but no scroll sync. It will appear to scroll sync briefly if I erase the user settings file and throw in a fresh copy of the default settings file for the plugin, but the only file Iā€™ve seen scroll sync even then has been the default settings file (Iā€™ve had a long plaintext and a short plaintext file open and ready to go for testing but neither have responded), and even that behavior subsides quickly.

Seems suspicious to me, like maybe something in ST3 is changed or broken, but right now, ST3 is nearly useless (funny how the lack of your plugin cripples the whole thing for this particular user).

Any thoughts on what might be going on here? Iā€™ve made sure to try removing the file type specific settings you made as examples in the default setting file and also leaving them be and setting scroll sync for plaintext to true. Iā€™ve also gone in with fresh copies of the default settings, copied the whole thing over to user, then set them all to true, just in case there was some conflict. Obviously some folk have it working, and Iā€™ve seen it fire a couple times here, so I donā€™t know what else I might be doing wrong.

Thanks,
Kensai

0 Likes

#67

Alright, after much futzing around with things (basically just trying the same things over and over, restarting ST3, over and over, yada yada yada), it seems to be working properly now. For now ;-p Of course, having to be this stubborn to get a plugin to activate still seems to suggest some small incompatibility between BS and ST3 or beta bugs just on ST3s side. Hereā€™s hoping it keeps working, because other than this little headache, ST3 is looking like even more of a hotrod than ST2 was after Iā€™d tricked it out.

Thanks tito.

0 Likes

#68

Kensai,

I think is not your fault, but a malfunctioning of the package. I reviewed the last days the functionality and made a little tweak to the sync scroll logic. Maybe you want to update, and let me know if still present issues. I was able to reproduce the problem at first, but not lately, so I *think *is fixed.
github.com/SublimeText/BufferScroll/tree/st3

Regards,

0 Likes

#69

How are you guys installing this for Sublime Text 3? ST3 appears to want itā€™s packages as .sublime-package files and BufferScroll does not install like that when cloned from GitHub.

Are there some instructions on how to do it somewhere?

0 Likes

#70

Whether we can make a selection with:

  • only folded region
  • only non-folded region (simply excluded fold-marker)
    ?
0 Likes

#71

Done :slight_smile:

0 Likes

#72

Whao, thatā€™s so fast, thank you.
window.run_command(ā€œbuffer_scroll_fold_select_foldedā€)
window.run_command(ā€œbuffer_scroll_fold_select_unfoldedā€)

0 Likes

#73

I suggest changing BufferScrollFoldSelectUnfolded to:

class BufferScrollFoldSelectUnfolded(sublime_plugin.TextCommand): def run(self, view): folds = [item.a, item.b] for item in self.view.folded_regions()] if folds: self.view.sel().clear() prev = 0 for fold in folds: # sublime.message_dialog(self.view.substr(fold[0])) self.view.sel().add(sublime.Region(prev, int(fold[0]))) if self.view.substr(fold[1]) == "\n": prev = int(fold[1]) + 1 else: prev = int(fold[1]) self.view.sel().add(sublime.Region(prev, self.view.size()))

0 Likes

#74

Done, thanks :slight_smile: Didnā€™t test it :stuck_out_tongue:

0 Likes

#75

Is ST2 no longer supported for this plugin?

0 Likes

#76

Nope, if possible consider upgrading, not only it works better and faster, you will also support work invested into new versions. Unless there is one of the few bug that may affect your setup, just upgrade.

0 Likes

#77

I made some updates, and recovered some lost functionality. In theory it should restore scroll and selections in all the situationsā€¦ did I broke something!?

0 Likes

#78

Just started using Sublime text recently. I was wondering if you (Tito) would be willing to post the zip for the latest compatible bufferscroll for Sublime text 2, as you did for sidebar enhancements. I will eventually try out sb 3, but am new to advanced text editors, and have only started setting up sb 2, so I donā€™t want to jump ship just yet. Either way, thanks for your efforts. This package sure does look useful! Thanks!

0 Likes

#79

Iā€™d suggest you to go dirrectly on ST3. Despite its beta status, itā€™s super stable.

Besides that, you will find ST2 compatible packages harder and harder :smile:

0 Likes

#80

Yes, be safe and use ST3. :slight_smile:

0 Likes