Sublime Forum

BufferScroll

#35

Fixed. Thanks for reporting.

0 Likes

#36

Hi,

have a small issue that you plugin might be able to resolve, relating to bookmarks (which I use a lot) and cloned files (which I use a lot for double views)

Trouble is a cloned file doesnā€™t have the bookmarks in itā€¦ and then if you close the original fileā€¦ yesā€¦ youā€™ve lost all the bookmarks.

Ideally for me, cloned files would have all the bookmarks too, but possibly due to ST2 standard way of working this is not possibleā€¦ any thoughts?

cheers.

0 Likes

#37

This has been fixed.

0 Likes

#38

A problem you may found is that the same file may have different saved data depending on position.

file.txt has 1 bookmark on column 1 position 1
file.txt has 2 bookmarks on column 2 position 1
file.txt has 4 bookmarks con column 1 position 2

When you open file.txt, the package will look into the position to restore the bookmarks.

0 Likes

#39

Hey,

thanks, thats much better :smile:

Is it possibly to make it so that when I put a bookmark in a file, it also appears simultaneously in any cloned file? This would resolve bookmarks getting out of synch in cloned files (and save having to put bookmarks in twice, or close files in the correct order!)

0 Likes

#40

Hey tito!

Can i have a feature request? Ahh sorry this was too direct, can i give you a hint? :wink:

[quote=ā€œS0undā€]So my question, is there any way to set a file name specific syntax highlight color scheme?
I have a script that i use for daily work, exp.: workscript.ahk When i adding new features to the script i use a new file like: workscript_beta.ahk. But sometimes i got confused - since the code mostly identical - and sometimes iā€™m changing the ā€œwrongā€ file, aka. the normal daily work file. Is that possible to use 2 different color scheme for each file?[/quote]

[quote=ā€œjbjornsonā€]On a given view, you can set the color_scheme setting for a specific file, but it wonā€™t be remembered if you close it and open it again. Maybe you could save this as a plugin and make sure you execute it each time you open your productive fileā€¦

view.settings().set('color_scheme', 'Packages/Color Scheme - Default/Solarized (Dark).tmTheme') [/quote]

So can you save the color scheme for each opened file? + an option to turn this feature on and off, which is off by default.

0 Likes

#41

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.

0 Likes

#42

yay, thanks soo much, works great!

0 Likes

#43

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.

0 Likes

#44

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.

0 Likes

#45

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?

0 Likes

#46

[quote]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.
[/quote]

Correct!

Request or search the forum for this problem.

0 Likes

#47

hi,
ty for the plugin but lastly it doesnā€™t auto scrool to the line in which thereā€™s the caretā€¦

tips? ty

0 Likes

#48

Sorry I have no idea what are you talking about. Some step by step instructions will help.

0 Likes

#49

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.

0 Likes

#50

@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.

Alex

0 Likes

#51

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

macosxguru

0 Likes

#52

[quote=ā€œquodlibetā€]@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.

Alex[/quote]

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

0 Likes

#53

Hope BufferScroll can support sublime text 3.

0 Likes

#54

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.

0 Likes