How to expand tabs to align text

508 views
Skip to first unread message

zoomclub

unread,
May 21, 2012, 12:28:16 AM5/21/12
to BBEdit Talk
I'm pasting a lot of column based test from a spreadsheet and it would
be great to have all the tabs align after pasting the data into
BBEdit. I saw an older script called "Entable" but I do not think it
works in the latest BBEdit I recently upgraded to.

Please let me know if there is a way for me to align text that
contains tabs, thanks.

Allen Hancock

unread,
May 21, 2012, 8:15:31 AM5/21/12
to bbe...@googlegroups.com
Here's the way I was told:

Paste the information into a document, select-all

then choose Show Fonts (Command T) and at the bottom you can set your tab width.

I use this ALL the time, BBEdit is so far superior than Excel or Numbers, for it's ability not to mung the data I'm working with.

If anyone knows how to get varying tab widths in BBEdit, Do speak up!

And if the barebones team ever released a spreadsheet editor, just let me know how much to pay, I'd pay it!
--

Mac Consulting Group, Inc. - 225-933-5311 - Baton Rouge, Louisiana

Apple Support, Service, Sales, and Training
http://macconsultinggroup.com/training


Bruce Van Allen

unread,
May 21, 2012, 9:28:33 AM5/21/12
to bbe...@googlegroups.com
There isn't a way to have columns of different widths. My
workaround is this applescript, which allows me to quickly
adjust the tab width with a keyboard command. Repeating the
command cycles the tab width through successively wider columns
until it hits a maximum (64), then it reverts to default width.

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

Save this script (in Script Editor) to the BBEdit folder in your
Application Support folder in your Library. Then assign a
keyboard command via BBEdit's Scripts menu.

HTH.



- Bruce

_bruce__van_allen__santa_cruz_ca_

Reply all
Reply to author
Forward
0 new messages