Now that Ubiquity 0.5 is out, Erik’s Character Count Command no longer works. So I have updated it and if you have Ubiquity Firefox, the command bar should have appeared on top for you. Here is the code:
CmdUtils.CreateCommand({
names: ['char-count'],
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'text to count chars in'}],
preview: function( pblock, args ) {
//pblock.innerHTML = argText.object.length;
pblock.innerHTML = "The number of characters is: "+ args.object.text.length;
}
});
Hope you found it useful!
Thanks Bhagwad.
In reply to Sajid
I didn't know you were using Ubiquity Sajid :) What do you mainly use it for?
Thank you, guy. This command is very useful to me.
Really cool char count tool, it helps me with my work.
You helped me to explore and learn the new world of Ubiquity
it crushed my browser when i first tried it but it works fine now
Thanks
It crushes Firefox browser when i pasted 89 words from this blog's Tweeter updates. Probably because it had some strange characters or some character limit.
@ice machines
That's odd. Were you trying to count the number of characters in the Twitter Updates? In which case, simply select them without copying, bring up Ubiquity and type the char-count command. No need to paste it – I got 493 characters.
Nevertheless, I tried pasting and it worked – very strange. I anyone else facing this problem?
Thanks for the command!
Works great!
Thank you, I’ve recently been searching for info approximately this topic for a long time and yours is the best I’ve discovered so far.
But, what about the conclusion? Are you sure about the supply?