Thanks Chris. More elegant than my solution. It does pad more spaces before the equals than I would like but there may be options in the column to adjust this.
On Thursday, July 26, 2018 at 10:29:35 PM UTC-4, Christopher Stone wrote: > > On 07/26/2018, at 20:23, Simdude <[email protected] <javascript:>> > wrote: > > One of the plugins for vim I loved was Align. I used it to keep assignment > statements aligned. I didn't see a way to do this in BBedit so I threw > together a short Python script I thought I would share. > > ------------------------------ > > Hey Mark, > > I'm quite happy to see how to do that in Python, but basic column > alignment is simple to do in the shell: > > #!/usr/bin/env bash > sed -E $'s! = !\\\t=\\\t!' | column -t -s$'\\\t' > > I'm using c-string structures to enable expansion of the \t tokens, > because Apple uses generally archaic versions of Unix executables -- and > the token travels better in email than a literal tab. > > -- > 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]. Visit this group at https://groups.google.com/group/bbedit.
