News for hackers. Stuff that matters.
Re:Use Vim with Google Docs by Adaptive on Thursday March 29, 2012 @12:12PM (#3771673)
I've been using googlecl for quite a while to edit google docs in vim, but there are bugs/issues, specifically ongoing issues with newlines:

http://code.google.com/p/googlecl/issues/detail?id=301

When this post's site is back up, it will be interesting to see if a) their method is as simple as googlecl and b) if it utilizes googlecl, whether that newline issue has been addressed.

EDIT: ok, saw the google cached version. Still subject to newline issue as far as I can tell.

Re:Use Vim with Google Docs by slurgfest on Thursday March 29, 2012 @08:14PM (#3773869)
There already exists a great sort of generic API for working with data, it is called a filesystem... expose Google docs as a filesystem rather than making me type special overly-long commands
Re:Use Vim with Google Docs by andybak on Friday March 30, 2012 @04:34AM (#3775008)
Re:Use Vim with Google Docs by hirenj on Thursday March 29, 2012 @02:35PM (#3772422)
I hacked together a pipe tool for Google spreadsheets a few weeks ago. I need to get data from spreadsheets from other people, and then spit them back again. I wrote the pipe tool so that I can go

    googlepipe --command get --document $DOC_ID | $SCRIPT | googlepipe --command update --document $OUT_DOC_ID
It's a pretty neat way to work, and being able to revision control all of the input data, scripts and output data is a godsend.
Re:Use Vim with Google Docs by eric-hu on Thursday March 29, 2012 @03:57PM (#3772822)
For anyone wanting to try this on OS X Lion, I believe you have to install googlecl with Python gdata 2.0.14 [1] or you'll see something like the following after running "google docs <cmd>"

  File "/Library/Python/2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/docs/client.py", line 55, in DocsClientCL
    DOCLIST_FEED_URI = gdata.docs.client.DOCLIST_FEED_URI
This started to look like a rabbit hole so I gave up there.

[1] http://code.google.com/p/googlecl/issues/detail?id=468

Re:Use Vim with Google Docs by neilc on Thursday March 29, 2012 @10:55PM (#3774282)
Apparently the current svn sources of googlecl work with more recent versions of Python gdata.
Re:Use Vim with Google Docs by andybak on Friday March 30, 2012 @04:33AM (#3775005)
Didn't for me.

I installed an earlier gdata thusly:

sudo pip install http://gdata-python-client.googlecode.com/files/gdata-2.0.14...

Re:Use Vim with Google Docs by christiangenco on Thursday March 29, 2012 @01:23PM (#3772048)
Here's my shortcut for adding things to google calendar (something I do about twenty times a day): https://gist.github.com/2240229

    $ gcal Party Today
    Event created...
Re:Use Vim with Google Docs by vivekjishtu on Thursday March 29, 2012 @12:06PM (#3771634)
Its returning a 404 here is the content from Google Cache http://webcache.googleusercontent.com/search?q=cache:blog.mi...
Re:Use Vim with Google Docs by icebraining on Thursday March 29, 2012 @06:45PM (#3773512)

    I hope to soon see something like:

    cat ~/message.txt | google mail --to "[email protected]" --subject "Awesome!"
You can do that now:

    aptitude install sendEmail
    alias google-mail='sendEmail -f [email protected] \
    -s smtp.gmail.com:587 -xu username -xp password'
Then

    cat ~/message.txt | google-mail -t "[email protected]" -u "Awesome!"
Sure, pre-defined command would be nicer, but if you use VIM, I assume this isn't too much for you ;)
Re:Use Vim with Google Docs by darxius on Thursday March 29, 2012 @12:06PM (#3771636)
Website is 404'ing. Wayback machine saved this back in August:

http://web.archive.org/web/20100815081530/http://blog.milfor...

Re:Use Vim with Google Docs by oellegaard on Thursday March 29, 2012 @12:07PM (#3771645)
I managed to have a look at it just before it went down (closed due to too much trafic?)

However, the googlecl seems to be rather old and it doesn't even work for me anymore (probably a compatibility issue with python gdata)

Re:Use Vim with Google Docs by nmilford on Thursday March 29, 2012 @12:15PM (#3771688)
Sorry about the 404s, switching to a different caching plugin :P
Re:Use Vim with Google Docs by jff on Thursday March 29, 2012 @05:59PM (#3773310)
Works fine out of the box on Plan 9, too. Pretty slick!