Making text larger/smaller quickly with cmd+ and cmd in a document

2,964 views
Skip to first unread message

Neil Billingham

unread,
Nov 1, 2013, 11:58:13 AM11/1/13
to textwr...@googlegroups.com, neil.bi...@me.com
Hi,

Does anyone know if there's a way to make text larger/small in Textwrangler (or BBEdit) with ease. I'm a software developer and just got hold of a MBPr, previously I had an MBA and never really used this functionality in Terminal (it's done with cmd+ and cmd -) - but with the retina screen it works quite nicely because the fonts are smoother and more readable. It would be great if TextWrangler did this too, if not now maybe in a future version?

Best Regards,
Neil :)

Thomas Fischer

unread,
Nov 1, 2013, 1:58:07 PM11/1/13
to textwr...@googlegroups.com
Hi Neil,

there are two little scripts in TextWrangler's Script Menu: Font -> Bigger and Font -> Smaller.
If you assign keyboard shortcut to them (using the Palettes -> Scripts window) you will get what you need.

Best
Thomas
> --
> This is the TextWrangler Talk public discussion group.
> If you have a feature request or would like to report a problem,
> please email "sup...@barebones.com" instead of posting here.
> ---
> You received this message because you are subscribed to the Google Groups "TextWrangler Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to textwrangler...@googlegroups.com.

Thomas Fischer

unread,
Nov 1, 2013, 2:14:56 PM11/1/13
to textwr...@googlegroups.com
Hi Neil,

here is a second thought: do you really want to enlarge the script? Or do you just want to zoom in?
There is another option in TextWrangler's AppleScript library: display magnification.
So instead of enlarging or reducing the font size you could enlarge or reduce the magnification.
Or you could make both available in different scripts, using the existing scripts as templates.

Best
Thomas

Am 01.11.2013 um 16:58 schrieb Neil Billingham:

Neil Billingham

unread,
Nov 4, 2013, 7:09:54 AM11/4/13
to textwr...@googlegroups.com
Hi Thomas,

I gave this a whirl - zoom is pretty cool - personally I'm going with this. Thanks for the idea :) Here's my scripts incase they're useful to anyone:

zoom_in
======

tell application "TextWrangler"

if (display magnification of text window 1 is greater than 3.9) then

set display magnification of text window 1 to 4

else

set display magnification of text window 1 to ((display magnification of text window 1) + 0.1)

end if

end tell

 
zoom_out
========

tell application "TextWrangler"

if (display magnification of text window 1 is less than 0.6) then

set display magnification of text window 1 to 0.5

else

set display magnification of text window 1 to ((display magnification of text window 1) - 0.1)

end if

end tell


zoom_off
=======

tell application "TextWrangler"

set display magnification of text window 1 to 1

end tell


Cheers,
Neil :)
Reply all
Reply to author
Forward
0 new messages