On 12/13/2017, at 02:45, Vlad Ghitulescu <[email protected] <mailto:[email protected]>> wrote: > If you want to do this with a text-filter then it's quite straightforward: >> >> #!/usr/bin/env bash >> sort -k2,2 >> >> * Babe I'm Gonna Live You - Led Zeppelin >> - Blackbird - The Beatles >> - Blackbird - The Beatles >> * End Of The Line - The Traveling Willburys >> ... > > Hmmm… I'm ashamed to ask, but I forgot: How/Where do I define a new > text-filter?
Hey Vlad, Text filters are installed here: ~/Library/Application Support/BBEdit/Text Filters/ Text filters are run from: BBEdit Menu Bar > Text > Apply Text Filter > <your_filter> And of course you can give them keyboard shortcuts in BBEdit's Menus & Shortcuts preferences. >> Personally I'm going to prefer a table to be nicely formatted by column, so >> I'll do something like this: >> >> #!/usr/bin/env bash >> sed -E $'s! - !\t-\t!' | sort -k2,2 | column -t -s $'\t' >> >> * Babe I'm Gonna Live You - Led Zeppelin >> - Blackbird - The Beatles >> - Blackbird - The Beatles >> * End Of The Line - The Traveling Willburys >> ... > > That looks nice too, yes - but I like the older style more for this very list. > But: Could you please explain me the command? It could be useful for other > list I have. I'm replacing the “ - ” separator with “SpaceLiteralTab-LiteralTabSpace”. Then I'm sorting on the 2nd column. Then I'm creating a text column with tab as the delimiter. If you want to know more then be more specific. :) -- Take Care, 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.
