[TxMt] Feature Request: Number of Characters Selected

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Jun 25 18:50:00 UTC 2007


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

>
> Greetings.  I saw a neat feature in another editor, and I was  
> wondering if there was similar functionality in TextMate.  If there  
> is, I haven't found it yet and a pointer would be most appreciated.
>
> When making a selection, I was wondering if there was some  
> interface point that easily displayed how many characters were  
> selected.
>
> My use case?  Constructing HTTP Requests and wishing to supply the  
> accurate content length quickly and easily.  I can imagine other  
> use cases as well, but this is the one that I can see needing most  
> often.


Just for completion because someone asked for that :-}

utf-8 support (i.e. also for Japanese, accented characters, etc.)

You can use 'Filter through command' or create a command
Input: Selection
Command: ruby -ne 'print split(//u).size'
Output: Show Tool Tip

Hans





More information about the textmate mailing list