[TxMt] Re: How can I delete everything before a certain string...or a tab?

Kai Wood lists at kwood.eu
Wed Jul 15 07:37:45 UTC 2015


> On 15.07.2015, at 08:21, jgalt <jgaltusa at gmail.com> wrote:
> 
> For example, how can I strip away the names of the states in this string and only keep he two character abbreviations?
> 
> (In my file the state names and abbreviations are separated by a tab.)
> 
> Alabama    AL
> Alaska    AK
> Arizona    AZ
> Arkansas    AR
> California    CA
> 
> 
> Also...how could I turn this string:
> 
> AL
> AK
> AZ
> AR
> CA
> 
> 
> into: AL¶AK¶AZ¶AR¶CA

Here’s a small video that shows a simple workflow transforming the text with multiple cursors in one go:

https://www.dropbox.com/s/ns2hdpkivgkjert/TM2%20Multicursor%20workflow%20(1).mp4

Note that I simply paste “¶” at the end, if theres a dedicated key you can substitute with a key press...


More information about the textmate mailing list