[TxMt] get character count in current doc or selection?
Andy Armstrong
andy at hexten.net
Sun Apr 22 18:39:24 UTC 2007
On 22 Apr 2007, at 19:34, Brooks Seymore wrote:
>
> The number of bytes in your document is a pretty close
> approximation to how many characters are in your document. The
> string 12345678910 is eleven bytes, but when you hit return a new
> line character is created so your document would then have twelve
> bytes. Accented characters, such as é count as two bytes. This
> probably all goes out the window when one gets to Japanese and any
> other non-Roman language.
Filter Through Command -> wc
or create a command that does this:
wc $TM_FILENAME | pre
--
Andy Armstrong, hexten.net
More information about the textmate
mailing list