Home Download Buy Blog Forum Support

Ctrl + scroll wheel to control text zoom level

Ctrl + scroll wheel to control text zoom level

Postby Kensai on Thu Oct 22, 2009 8:11 pm

Like in other text editors and word processors. I'm in the habit of fiddling with the apparent size of my text. I use a variety of displays, from a 12" laptop to a 21" desktop to a 37" TV from the couch, and I need to be able to get the best legibility out of my text without pulling up the proper config file and typing in different values. If Sublime is in a multipane layout, this zooming should be independent among the panes to assist in setting up my custom workspace.

What say?

Kensai
Kensai
 
Posts: 33
Joined: Mon Aug 24, 2009 8:19 pm

Re: Ctrl + scroll wheel to control text zoom level

Postby EJ12N on Fri Oct 23, 2009 2:36 pm

the PowerUser package takes care of that, or do a search about "zoom" in forums you'll find the code for that part of the plugin.
Anyways sublime doesn't let you bind to scroll wheels, so I use autohotkey for that, again the script for autohotkey is there too in the PowerUser.py comments
and yes the zoom/in/out is pane independent.
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: Ctrl + scroll wheel to control text zoom level

Postby rootey on Sun Nov 01, 2009 12:47 pm

For anyone who needs it; here is the autohotkey code from the PowerUser.py:
Code: Select all
;=========================================================
;Sublime ZoomIn/ZoomOut
;=========================================================
^WheelUp::
  IfWinActive, ahk_class SKMainWindowClass
    Send !{=}
    return
^WheelDown::
  IfWinActive, ahk_class SKMainWindowClass
    Send !{-}
    return
;=========================================================
;END Sublime ZoomIn/ZoomOut
;=========================================================

So, just use Ctrl+mouseWheel to zoom in/out.
rootey
 
Posts: 5
Joined: Sun Nov 01, 2009 12:40 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Google [Bot] and 10 guests