[TxMt] Re: Batch delete of lines

Hans-Jörg Bibiko bibiko at eva.mpg.de
Sun Aug 24 08:55:19 UTC 2008


On 23.08.2008, at 19:05, Ritesh Nadhani wrote:

> Hello All
>
> For my work, I have to regularly delete lines in a range. I can do  
> it in VIM using:
>
> :2,4d
>
> Is there anything similar to this in TextMate?
>
> -- 
> Ritesh
> http://www.riteshn.com
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

Write a bash tmCommand:
input: entire document
output: replace document
command:
sed '2,4d'

The same you can do via:
TextMate menu: Text > Filter through Command

--Hans





More information about the textmate mailing list