Hi Kerby,

Easily scripted. This what I use to adjust tab widths. I assign it a keyboard 
shortcut, and can quickly cycle through widths depending on what I’m writing or 
viewing (I look at columns of data a lot). Not exactly what you asked for, but 
I think you can get the idea for a simpler one. The script goes in the Scripts 
folder within your Application Support folder for BBEdit, which by default is 
in your user Library (~/Library).

tell application "BBEdit"
        set tabW to tab width of text window 1
        if tabW > 64 then
                set tabW to 4
        else
                set tabW to tabW + 12
        end if
        set tab width of text window 1 to tabW
end tell

HTH

_bruce__van_allen__santa_cruz_ca_
_831_429_1688_p_
_831_332_3649_c_

> On Feb 25, 2022, at 10:05 AM, KerbyLane <[email protected]> wrote:
> 
> Recently I started working with a project that includes a number of files 
> that use a tab size of 2 spaces. Almost everywhere else I'm working it is 4. 
> I'm looking for a faster way to change the "tab width" setting than opening 
> preferences, going into "Editor Defaults" and changing the value. Is there a 
> slider widget or something else that I can expose to make this easier?
> 
> Thanks!
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "[email protected]" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/aee66adb-01ba-41cf-8421-7ef80d6147e5n%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/A54AB7BB-2B22-46A4-BF62-0680EA209CFB%40cruzio.com.

Reply via email to