GithubHelp home page GithubHelp logo

djjcast / sublime-toggleminimaponscroll Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 1.0 15 KB

A Sublime Text package that toggles the minimap on when scrolling and toggles it off when not scrolling.

Python 100.00%

sublime-toggleminimaponscroll's People

Contributors

djjcast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

benjaminma

sublime-toggleminimaponscroll's Issues

Disable toggle_minimap on horizontal scroll

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.

Appearance of minimap causes reflow in wide documents

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.

Two or more columns/lines view

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 :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.