396 points · by JCB_K · 15y ago · 50 comments
http://code.google.com/p/googlecl/
I was blown away the first time I edited Google doc using vim, hit ":wq" (save), and saw my changes reflected instantly in my browser, where I had opened the same document.
The Oauth authentication was also pretty cool. Instead of asking for your Google credentials every time / saving them on your machine, the first GoogleCL use opens a browser window, prompts you to log into your Google Account, and asks you to authorize the Google CL client. You may then revoke this permission at any time (like any Oauth token).
A quick google search turns out there exists always a project doing that --- http://gdatafs.sourceforge.net/
"Gdatafs is a FUSE implemtation that mount picassa web and youtube to your filesystem. An experimental implmentation of google docs is also avaiable in trunk. "
You can also specify document-type specific editors ;)
The beauty of googlecl is that, since it's a command line tool, you could always fall back on using a bash alias / bash function, if all else fails.
I didn't had the time to update it, so some things are broken (login, auto complete). And the open source project never caught traction.
You type "cat news" and then are confused that the results involve felines.
edit: emphasized what kind of stuff in /new
Edit: There is no GA tracking on this page even though I use to for my site (other pages) - to keep with the general privacy experience of DDG
Type some commands and hit the back button a few times.
--edit: I was wrong, it wasn't a 500 error, it was a 404. I don't want to cast too much suspicion here, just making a point about being appropriately paranoid about giving out my creds. This site could be totally cool, I want it transparent to me before I login.
From the source:
goosh.module.login = function () {
this.name = "login";
this.aliases = new Array("login");
this.help = "login with your google account *";
this.helptext = "goosh sees only your username";
this.parameters = "";
this.cb = function (A, B) {
if (goosh.ajax.iscontext(A)) {
if (B && B != "guest") {
goosh.lib.cookie.set("loggedin", "1", 365)
}
goosh.config.user = B;
if (goosh.config.user != "guest") {
goosh.gui.outln("You're logged in as: "
+ goosh.config.user + "<br/>");
goosh.set.init();
goosh.gui.updateprompt();
goosh.gui.showinput();
goosh.gui.focusinput();
goosh.gui.scroll()
} else {
goosh.ajax.query("http://goosh.appspot.com/dologin?")
}
goosh.gui.showinput();
goosh.gui.focusinput();
goosh.gui.scroll()
}
};
this.call = function (A) {
goosh.ajax.query("http://goosh.appspot.com/
status?callback=goosh.modobj.login.cb")
}
};
goosh.modules.register("login");:-( fail. But still a really great concept!
There has to be a few easer eggs.