Is there currently any type of command/etc to get the character count in current doc or selection?
I see the command in the Text Bundle 'Statistics for Document (word count)' but this doesn't report the char count...
thanks!
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools http://scan.dalo.us
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.
B.
On Apr 22, 2007, at 11:21 AM, Todd Ditchendorf wrote:
Is there currently any type of command/etc to get the character count in current doc or selection?
I see the command in the Text Bundle 'Statistics for Document (word count)' but this doesn't report the char count...
thanks!
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools http://scan.dalo.us
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
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
Refer to: http://comox.textdrive.com/pipermail/textmate/2007-April/019272.html
Xavier Cambar
Le 22 avr. 07 à 20:21, Todd Ditchendorf a écrit :
Is there currently any type of command/etc to get the character count in current doc or selection?