djjcast / sublime-toggleminimaponscroll Goto Github PK
View Code? Open in Web Editor NEWA Sublime Text package that toggles the minimap on when scrolling and toggles it off when not scrolling.
A Sublime Text package that toggles the minimap on when scrolling and toggles it off when not scrolling.
I was wondering, if it might be possible to toggle minimap only on vertical scroll, not horizontal scroll.
Consider the following test case. There is a very long text, that doesn't fit into a single line of the current view (thus requiring horizontal scroll to view the different parts of the line). If one wants to move from the beginning of the line to the end (e.g. via pressing the End
key), it will cause horizontal scroll, but the minimap will be toggled anyway, overlaying the actual end of the text line (which isn't useful). So, it might make seance to add some option like toggle_minimap_disable_on_horizontal_scroll
to prevent this unwanted behavior.
I think it can be implemented with some kind of combination of viewport_scrolled()
and cursor_line_changed()
functions (i.e. viewport_scrolled() == true and cursor_line_changed() == false
). Unfortunately, I'm not proficient in Python and not familiar with sublimetext package development environment. My attempts to play with the existing code weren't successful.
Does it make sense to anyone and, if so, is it possible to have the minimap overlay the content, maybe with some kind of transparency?
I often have wider files because I keep comments off to the right of the code and when I scroll in an area where I might have a longer comment, the appearance of the minimap causes the comment to break onto two lines and a jump in the document layout when its reflowed.
The title says it all :)
If I disable the minimap (using the View: Toggle Minimap from the Command palette) the minimap will show up when not scrolling, and be hide during scrolling.
Hi,
The plugin doesn't work properly when you have a layout with 2 or more columns/lines.
The minimap appears or disappears only when you scroll on the last file (the leftmost or downmost file).
Thank's for your work :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.