Lurker News

Comments (144) 66 threads

Earlier comments
chdir2 replies#
Any chance of making a plugin for Sublime Text?
thebouv#
That I could get behind. Often I have to use Sublime's regex find/replace to build my own data munging things that a plugin like this could solve.
mekazu#
I'd usually use 'perl -n -e' if I needed something like this. Not suggesting that perl is a better alternative but it's a reason why I'd never need to use that tool.

Here's the corresponding perl program using the same data and output as on the transformy home page:

  pbpaste | perl -p -e 's/(\d+), (\w+) (\w+), (\w+), (\w+)/@{[uc($3)]}, jersey number $1/'
To use that (pbpaste I think is a mac only feature) first copy / paste that into your terminal, then copy the list, then hit enter in the terminal.
tomaskafka1 reply#
This! I wanted this feature to be in every text editor for years :)). Like http://nimbletext.com but show and tell instead of expressions :).

Thanks!!!

xienze#
This is what Vim macros are all about. You record the macro on a single item and repeat it on all the others.
bluishgreen#
Can I make a script out of the learned transform operation? Ideally it will be a function that I can paste into some script, and call map on each row.

Load more comments