At practically Fri, May 28, 2010 at 9:24 AM, Jesse Keating
<[email protected]> communicated:

> On Fri, 2010-05-28 at 06:52 -0700, Bri Hatch wrote:
>> (I may modify my its-all-text vi wrapper to inline gpg sign emails,
>> but it's uglier and not as standards-supported.)
>
> You've got an its-all-text for chrome?   I've been waiting for that for a
> while, one of the things that keeps me on Firefox...   care to share?

Ok, I should have been more clear.

On Firefox I used its-all-text, which I loved.  Chrome doesn't allow
extensions to do exec, so that's not an option.

Chrome does allow xmlHTTPRequest, however, so you can get something
roughly equivalent but you need to be running an HTTP server on
your desktop/laptop.  This daemon accepts requests from the extension
and then pops up your editor (gvim/etc) on your screen.  You'd want
to run the daemon on localhost such that only local users could hit
it.  If someone locally maliciously connects, the 'worst' that will
happen is that you get a DoS because of all these text editors
popping up on your display.  (Of course, if your daemon is buggy, then
they could exploit it directly and take over your account.)

I've seen two chrome extensions that "work"

  TextAid - allows you to map keys (I use ctrl-space) that will pop up
     your editor when a textarea has focus.  Problem: on gmail you get
     four popup warnings about it not having saved your changes, and
     yet it has and things work fine.  On linux you get used to just
     hitting space four times after every edit on gmail.  On mac, as
     I'm finding out, you need to use that mouse thing and it's much
     more annoying.

   Edit in Emacs - don't let the emacs word scare you, you can use any
     editor you want.  You need to click on the 'edit' button that looks
     like the one from its-all-text.  Doesn't catch as many textarea boxes
     as does TextAid, but doesn't have the annoying gmail false warning
     boxes.  Doesn't have support to map a key combination.  Also puts
     an emacs icon on your extension bar, which makes us vi folks feel
     dirty.

Both projects call your HTTP daemon an 'edit server', and both can be
used almost interchangably.  I keep wanting to sit down and write one
(that's not dependent on my home directory customizations) that works
out of the box for both.  Someone prod me sufficiently and maybe I'll
get to it.



-- 
Bri Hatch, Systems and Security Engineer. http://www.ifokr.org/bri/

Madness takes its toll.  Please have exact change ready.

Reply via email to