Here is the code:
http://github.com/xclricky/yue/blob/b29e54ea2bb8bc50463c65f179f15c8ec2f8ef43/yue.js

Or you can subscribe here: http://yue.yimudi.org/help , and it works
with a google app engine service I wrote.

Several things I managed to do are not obvious, so I want to discuss
here and see alternate options.

1. limit one ajax call for preview even though you keep typing:
I did this by registering a persistent hash outside of the
createcommand function. And it seems I better prefix the outside hash,
as it could affect other commands.

2. communicate between preview and execute (or share the data)
I didn't achieve this, what I end up doing is sharing the function,
and the function is claimed outside of the CreateCommand. What I
really want is sharing the parsed data. I think I can manage this by
putting the result global, but there will be too much overhead. I
guess this may be an edge case for ubiquity to use the same data
between preview and execute. But I would hope there can be some
mechanism to do things similar. Probably command piping is something
similar.

3. distinguish the input coming from user input and selection on page.
By doing this, I also killed those magic words(this, it, etc.), almost
I wrote my own parser, and I didn't use the modifier as well. I know
it's kinda in clash with ubiquity's idea on natural language. But I
think there is a need to distinguish between user input and web
selections.

I would like to hear your opinions/suggestions, and if you start to
use my "yue" command, and have any critics/suggestions, do let me
know, as you can see the site (http://yue.yimudi.org) is in its very
early alpha.

In any sense, ubiquity is great and powerful. I love it.
Charlie

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to