>From the blog post comments:
ssn:
"I love the idea of namespace, but I think concise is also beautiful.
I'd like to suggest something about "paraphrase list", which allow any
user (not only Command Developer) to choise whether to allow for
shorten representation.
Any user couldn't only choice whether "google" means "search google",
but also add new idiom, as if "translate to russian using google-
translate" be restated as "russify". Someone might think "close" is
not "close window" and should be "close tab". Of course, the "google"
substituted for "search google" is served with "search"-siblings e.g.
"search yahoo". This is mere paraphrase.
Every man after his fashion about paraphrase.
So, I just think every man should be able to choice the paraphrase."
My suggestion here is to create an addon for this that hooks into
Ubiquity's database.
Wanna remap "search" to Yahoo? Open the Ubiquity Remapper's list of
overlord verbs and set the default for "search" to Yahoo.
It could work like this - in search.js:
declare() {
name="search"
overlord="search"
defaultProvider="Google"
}
if (overrideProvider="true") {
defaultProvider=overrideVariableName
}
Want to set "google whatever" do the same as "search on google for
whatever"?
Then just set a "shortcut"/"nickname" that is named "google", and
passes on all input that comes after it to "search on google for".
Does this seems like a decent solution?
The addon should also be able to disable commands that you never use
(without deleting them).
It could be useful when two people working with different things want
the same command but want to use different names for it.
A scientist might use one word in a special way, and get confused/
ennoyed when Ubiquity always suggest a completely different command
for that word.
Then he could set a nickname for that command that makes more sense
for him, and "disable" the "original name" for it.
On 4 Juni, 14:15, Natanael L <[email protected]> wrote:
> I'm thinking about something like this in the JavaScript:
>
> declare() {
> commandname="sample"
> overlord="test"
> subcommand"sample command"
>
> }
>
> I'm a total programming newbie, but I think that might be useful and
> easy.
> This would respond to printing "test sample command", and any input
> after that would be stored in a variable named something like
> "input" (for obvious reasons ;).
> I think Regular Expressions should be allowed too.
>
> Something like this:
> overlord=Go|Open|Load|Start
>
> Then that command would respond to each of those, and Ubiquity would
> have a database that keeps track of which overlord words that are in
> use and which command that uses which.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---