[TxMt] Feature Request: Number of Characters Selected

Soryu Soryu at serenity.de
Mon Jun 25 18:34:13 UTC 2007


On 25.06.2007, at 19:51, Robert M. Zigweid wrote:

> When making a selection, I was wondering if there was some  
> interface point that easily displayed how many characters were  
> selected.

Just for completeness’ sake:

Or yo can press ⇧⌃N [Text Bundle → Statistics for Document /  
Selection (Word Count)] which does the following behind the scenes:

     wc -lwc|tr \  \\n|grep '..*'|rev|perl -pe 's/\d{3}(?=.)/$&,/g'| 
rev|{
       for unit in lines words bytes; do
         read cnt
         printf "%11.11s %s\n" $cnt $unit
       done
     }

So, yes, it is already built in.

regards,
Soryu.






More information about the textmate mailing list