On Feb 23, 2016, at 08:39, Adam Wise <[email protected] <mailto:[email protected]>>
wrote:
> I'm editing a lot of delimited files in BBEdit & was hoping there was a way
> to space out columns & align them so they look more like an excel sheet...
______________________________________________________________________
Hey Adam,
As Bucky mentions BBEdit does not have variable tab widths.
However you can set the width of fixed tabs on a per document basis with
AppleScript.
tell application "BBEdit"
tell front text window
set tab width to 10
end tell
end tell
I do quit a lot of work with delimited data, and I often want to see it in
tabular format.
To do that I usually run a Text Filter.
#!/usr/bin/env bash
column -t -s',';
* The comma in this case is the delimiter.
Your original text:
Name, City, Zip
John Doe, Washington, 20005
Expands to this:
Name City Zip
John Doe Washington 20005
The spacing between columns will be a minimum of 2 spaces but will expand as
necessary to align the columns.
See “man column” in the Terminal.app for an explanation of the parameters.
Text filters are installed here:
~/Library/Application Support/BBEdit/Text Filters/
(Create the folder if it does not already exist.)
See “Text filters” in the BBEdit User Manual for more information.
--
Best Regards,
Chris
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 post to this group, send email to [email protected].