Sublime Forum

Use mouse wheel to scroll menus

#1

I have been using Sublimetext for awhile now and there are several times when I bring up a menu, that I find myself trying to use the mouse wheel to scroll through a long menu.

For me this is currently especially noticeable when I am using the new Stino (arduino plug in) which is getting better and better. But there are several cases, like when I am looking through the Sketch folder, or Examples or Include library, that I may have menus with lots of items and I find having to move to the top or bottom of the screen and hold down the mouse button on the scrolling items is a bit cumbersome.

So it would be great if I could somehow use the mouse wheel in the SublimeText editor the same way I use it in menus in most other Windows apps.

Thanks

1 Like

#2

It can be surely done via plugin, it shouldn’t be too difficult, I have it in my todo list for a thing I’m working on.

0 Likes

#3

Thanks,

So far I have not done any of my own plugin’s and have not done much with python (more of a C/C++) person.

So hopefully someone will beat me to it :smile:

Thanks again

0 Likes

#4

You can do it already, actually. You need:

Quick Panel Enhanced

If this isn’t enough, get:
PackageResourceViewer

With Resource Viewer open Default\mousemap, paste this and save:

{ "button": "scroll_down", "command": "quick_panel_page_up", "context":
    [
        { "key": "overlay_visible", "operator": "equal", "operand": true },
        { "key": "setting.is_widget", "operator": "equal", "operand": true },
        { "key": "panel_has_focus", "operator": "equal", "operand": false }
    ]
},
{ "button": "scroll_up", "command": "quick_panel_page_down", "context":
    [
        { "key": "overlay_visible", "operator": "equal", "operand": true },
        { "key": "setting.is_widget", "operator": "equal", "operand": true },
        { "key": "panel_has_focus", "operator": "equal", "operand": false }
    ]
},
1 Like

#5

Thanks, will try these out

0 Likes