A really simple command

1 view
Skip to first unread message

Benjamin

unread,
Aug 27, 2008, 2:01:32 AM8/27/08
to ubiquity-firefox

I want to be able to ubiq to evernote. I have no idea how to write
code, but it would be as easy as setting up some sort of command that
automatically sent the selection to a specific email address.

basically it would ubiq the following... "email this to
myac...@evernote.com"

Sort of embarrasing that I have to ask how to do this, but I'd
appreciate it if you someone could help me out!

Thanks,

Ben.

PS it would be the same as having a command titled 'Dad' that simply
emailed him what was selected instead of typing out 'mail this to
dad'.

compulsiveguile

unread,
Aug 27, 2008, 3:08:47 AM8/27/08
to ubiquity-firefox
I second the Evernote idea.

On Aug 26, 11:01 pm, Benjamin <Benjamin.Go...@gmail.com> wrote:
> I want to be able to ubiq to evernote. I have no idea how to write
> code, but it would be as easy as setting up some sort of command that
> automatically sent the selection to a specific email address.
>
> basically it would ubiq the following...  "email this to
> myacco...@evernote.com"

Abi

unread,
Aug 27, 2008, 4:18:30 AM8/27/08
to ubiquity-firefox
Hey Ben,

I added your suggestion to the wiki (http://wiki.mozilla.org/Labs/
Ubiquity/Ubiquity_Command_Suggestions). Hopefully, someone will write
that command soon.

But I think your suggestion also brings another related issue of being
able to abbreviate long commands or commands with specified modifiers
into shorter commands (as you said, like abbreviating "email this to
xx" into "evernote"). This would also allow people to rename commands
(maybe, I prefer calling the "define" command "lookup" instead). I
think this will be a very good feature for Ubiquity to have.

-Abi

Havvy

unread,
Aug 27, 2008, 5:27:42 AM8/27/08
to ubiquity-firefox


On Aug 27, 1:18 am, Abi <abimanyur...@gmail.com> wrote:

> But I think your suggestion also brings another related issue of being
> able to abbreviate long commands or commands with specified modifiers
> into shorter commands (as you said, like abbreviating "email this to
> xx" into "evernote"). This would also allow people to rename commands
> (maybe, I prefer calling the "define" command "lookup" instead). I
> think this will be a very good feature for Ubiquity to have.
>
> -Abi

I second this request for aliases.

Fernando Takai

unread,
Aug 27, 2008, 7:08:48 AM8/27/08
to ubiquity...@googlegroups.com
Well, i'll try to develop something for evernote this week... i'll try to make the command as easy as possible.


Cheers!

Blair McBride

unread,
Aug 27, 2008, 8:12:22 AM8/27/08
to ubiquity-firefox
I've thought about alias a few times before too - would be very
helpful. Might look into it tomorrow if I have time.

- Blair

Mikedeboer.nl

unread,
Aug 27, 2008, 12:01:48 PM8/27/08
to ubiquity-firefox
I just created a 'mail' command that uses the mailto: interface to
send an email instead of GMail, so you can use your desktop mail
application.
It's a little bit rough around the edges maybe, might need some more
tender loving care, but it works like a charm!

It works just like the 'email' command. Get the subscription link from
my blog article: http://www.mikedeboer.nl

On Aug 27, 10:18 am, Abi <abimanyur...@gmail.com> wrote:
> Hey Ben,
>
> I added your suggestion to the wiki (http://wiki.mozilla.org/Labs/
> Ubiquity/Ubiquity_Command_Suggestions). Hopefully, someone will write
> that command soon.
>
> But I think your suggestion also brings another related issue of being
> able to abbreviate long commands or commands with specified modifiers
> into shorter commands (as you said, like abbreviating "emailthis to
> xx" into "evernote"). This would also allow people to rename commands
> (maybe, I prefer calling the "define" command "lookup" instead). I
> think this will be a very good feature for Ubiquity to have.
>
> -Abi
>
> On Aug 27, 3:08 pm, compulsiveguile <gloesch....@gmail.com> wrote:
>
> > I second the Evernote idea.
>
> > On Aug 26, 11:01 pm, Benjamin <Benjamin.Go...@gmail.com> wrote:
>
> > > I want to be able to ubiq to evernote. I have no idea how to write
> > > code, but it would be as easy as setting up some sort of command that
> > > automatically sent the selection to a specificemailaddress.
>
> > > basically it would ubiq the following...  "emailthis to

Zerocool

unread,
Aug 27, 2008, 7:07:32 PM8/27/08
to ubiquity-firefox
If anyone is working on this, it might be helpful to note that
Evernote has a small javascript to quickly import selected text into a
new note. Its probably more than is needed, but it should speed the
process:

Code is as follows:

javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var
%20x=document.createElement('SCRIPT');x.type='text/
javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new
%20Date().getTime()/100000);document.getElementsByTagName('head')
[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?
url='+encodeURIComponent(location.href)
+'&title='+encodeURIComponent(document.title);}})();

Giles

unread,
Sep 5, 2008, 1:46:20 PM9/5/08
to ubiquity-firefox
Command aliases is definitely something I would like to see.
The example that immediately springs to mind is that I would want map
to use openstreetmap.org, not google maps.

On Aug 27, 1:12 pm, Blair McBride <unfocu...@gmail.com> wrote:
> I've thought aboutaliasa few times before too - would be very

Giles

unread,
Sep 5, 2008, 1:47:39 PM9/5/08
to ubiquity-firefox
Aliases could also be a handy way of aggregating commonly used command
combinations.

On Sep 5, 6:46 pm, Giles <Giles.Wea...@googlemail.com> wrote:
> Commandaliases is definitely something I would like to see.

Dean Landolt

unread,
Sep 5, 2008, 3:03:28 PM9/5/08
to ubiquity...@googlegroups.com
On Fri, Sep 5, 2008 at 1:47 PM, Giles <Giles....@googlemail.com> wrote:

Aliases could also be a handy way of aggregating commonly used command
combinations.

On Sep 5, 6:46 pm, Giles <Giles.Wea...@googlemail.com> wrote:
> Commandaliases is definitely something I would like to see.
> The example that immediately springs to mind is that I would want map
> to use openstreetmap.org, not google maps.

This is something I've been thinking about. Down the road (and based on the fervor of command development activity, perhaps quite soon), we're going to start running into serious namespace issues with commands. I saw a recommendation for a via modifier -- something like via or with could alleviate this problem, especially if users can set their own defaults. If would be able to change your map command to default map this to map this with openstreetmap a lot of these namespace issues can go away, and command developers may even start converging on a consistent set of nouns.

msk...@gmail.com

unread,
Sep 8, 2008, 6:13:01 AM9/8/08
to ubiquity...@googlegroups.com
Just thinking (and typing) out aloud here. How about being able to set a "default" search engine?

For instance, the "map" currently maps using google maps. But how about

map this using openstreetmap as default

maps *and* sets (say) openstreetmap as the default to be used from next time onward. Or if you just want to change the default:

map using openstreetmap as default

The "factory default" can be reset using (say):

map reset

- Mayuresh

Dean Landolt

unread,
Sep 8, 2008, 7:32:34 AM9/8/08
to ubiquity...@googlegroups.com

Just thinking (and typing) out aloud here. How about being able to set a "default" search engine?

For instance, the "map" currently maps using google maps. But how about

map this using openstreetmap as default

maps *and* sets (say) openstreetmap as the default to be used from next time onward. Or if you just want to change the default:

map using openstreetmap as default

The "factory default" can be reset using (say):

map reset

I was envisioning some kind of config gui in chrome for this, but this is way better. Of course, having a gui for settings in addition to this lcli (linguistic command line interface) could probably help with explorability for the uninitiated. Having to keep it up to date is a real problem though -- perhaps it could be generated automagically based on the metadata already available.

msk...@gmail.com

unread,
Sep 8, 2008, 8:17:53 AM9/8/08
to ubiquity...@googlegroups.com
Thanks Dean. For the uninitiated, how about:

map help

(on the same line as ubiquity-ing help) and it takes them to a hopefully well-written wiki/web page that explains different options with examples? As a matter of fact, it would be nice if most commands had this.

imho, adding GUI would make the command "heavier".

- Mayuresh
--
Mayuresh

Dean Landolt

unread,
Sep 8, 2008, 8:49:48 AM9/8/08
to ubiquity...@googlegroups.com
I don't mean adding a gui to the command -- but to ubiquity itself. I wasn't thinking anything heavyweight -- just something that could introspect the currently installed commands and associated metadata and expose and allow people to click around to explore options -- more of a learning tool to help expose the art of the possible to the unfortunate masses so used to dropdowns and checkboxes.

I've been meaning to explore the guts of the ubiquity extensions anyway as I want to look at enhancing command authoring. If I can get a prototype together I'll be sure to share my patches.

As for your help suggestion, help is already an attribute embedded at the top of many commands, thus it is already possible for a command-help command that introspects the available metadata. I wouldn't be surprised if something like this already exists.

Blair McBride

unread,
Sep 9, 2008, 3:58:38 AM9/9/08
to ubiquity...@googlegroups.com
If anything, I think that would be best handled by Ubiquity rather than
by the command. The command should merely provide the relevant data.

So to get help on the map command, it would be "help map" (or something
more grammatically correct) rather than "map help".

- Blair

msk...@gmail.com

unread,
Sep 9, 2008, 5:16:42 AM9/9/08
to ubiquity...@googlegroups.com
I agree. As long as there's some way of getting more help, I dont mind how. The reason i suggested "map help" was because CL users are more used to:

map /?

or

map -h

but then again there's always:

man map

:-)

- Mayuresh
--
Mayuresh
Reply all
Reply to author
Forward
0 new messages