News for hackers. Stuff that matters.
Re:Show HN: Poor man's Google Docs by cwkoss on Tuesday August 30, 2016 @01:39PM (#12392156)
Looks pretty good.

For an even-poorer-man's google docs, I like to keep this bookmarked:

    data:text/html, <html contenteditable>
If you navigate to that string in your browser it gives you a blank, editable page. No saving or any fancy features, but it is pretty convenient to be able to quickly spin up a scratch pad sometimes.
Re:Show HN: Poor man's Google Docs by ianlevesque on Tuesday August 30, 2016 @02:00PM (#12392342)
Clever, but why? Notepad.exe, TextEdit.app, Gedit, nano are all already there - and do save if you want to after. TextEdit will even just let you quit and come back without saving and the draft is there. Leave the browser sometimes man!
Re:Show HN: Poor man's Google Docs by zatkin on Tuesday August 30, 2016 @03:40PM (#12393220)
How dare you forget my favorite text editor in your list.
Re:Show HN: Poor man's Google Docs by dcgoss on Tuesday August 30, 2016 @06:34PM (#12394506)
Which is?
Re:Show HN: Poor man's Google Docs by gravypod on Tuesday August 30, 2016 @08:02PM (#12394921)
Cat, Awk, Grep, and unix pipes
Re:Show HN: Poor man's Google Docs by wingless on Tuesday August 30, 2016 @07:48PM (#12394874)
ed.
Re:Show HN: Poor man's Google Docs by nathell on Wednesday August 31, 2016 @05:45AM (#12397147)
Butterflies.
Re:Show HN: Poor man's Google Docs by dcgoss on Wednesday August 31, 2016 @02:02PM (#12400207)
https://xkcd.com/378/ For those confused
Re:Show HN: Poor man's Google Docs by francium_ on Tuesday August 30, 2016 @07:50PM (#12394884)
vim
Re:Show HN: Poor man's Google Docs by gumby on Tuesday August 30, 2016 @08:02PM (#12394922)
Emacs. In TECO.
Re:Show HN: Poor man's Google Docs by bbcbasic on Monday September 05, 2016 @07:40AM (#12429589)
Visual Studio
Re:Show HN: Poor man's Google Docs by m-r-r on Sunday September 04, 2016 @07:35AM (#12423823)
Neovim
Re:Show HN: Poor man's Google Docs by contingencies on Wednesday August 31, 2016 @05:09AM (#12396980)
copy con
Re:Show HN: Poor man's Google Docs by dvfjsdhgfv on Wednesday August 31, 2016 @03:53AM (#12396661)
Zile
Re:Show HN: Poor man's Google Docs by pvdebbe on Thursday September 01, 2016 @02:46AM (#12403483)
acme
Re:Show HN: Poor man's Google Docs by andrewla on Tuesday August 30, 2016 @03:28PM (#12393129)
The nicest thing with using a shortcut like the one above is that all formatting is preserved, tables especially, but also other html elements with styling (mostly). This is very handy in a lot of contexts.
Re:Show HN: Poor man's Google Docs by sigjuice on Tuesday August 30, 2016 @03:40PM (#12393221)
Also, a quick way to get a scratch pad in Emacs is to switch to a non-existent buffer. C-x b foo RET and type away in a buffer called foo.
Re:Show HN: Poor man's Google Docs by aji on Tuesday August 30, 2016 @01:59PM (#12392331)
this reminds me of something I made once that was basically exactly this, but included a button you could click that would run, more or less

    window.location = "data:text/html," + document.documentElement.outerHTML
functioning as a kind of lame save button
Re:Show HN: Poor man's Google Docs by edroche on Tuesday August 30, 2016 @03:31PM (#12393151)
Very cool tip, although I use notepad++ for this because even if I shut everything down it saves any new tabs I opened as temp files without me giving it a second thought.
Re:Show HN: Poor man's Google Docs by wyldfire on Tuesday August 30, 2016 @02:04PM (#12392381)
Whatever you do, don't fat-finger ctrl-w or similar. :(
Re:Show HN: Poor man's Google Docs by koolba on Tuesday August 30, 2016 @03:31PM (#12393152)
> Whatever you do, don't fat-finger ctrl-w or similar. :(

You could add a onbeforeunload handler to prevent that. You'll immediately recognize it from every other annoying web page that adds uses.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/WindowEvent...

Re:Show HN: Poor man's Google Docs by nitrogen on Tuesday August 30, 2016 @09:22PM (#12395237)
Also, Ctrl-Shift-T will usually bring back the tab you just closed with its state intact. Some JS-heavy pages don't restore cleanly, though.
Re:Show HN: Poor man's Google Docs by agumonkey on Wednesday August 31, 2016 @04:14AM (#12396752)
GP bookmarklet isn't restored under Chrome
Re:Show HN: Poor man's Google Docs by wyldfire on Wednesday August 31, 2016 @08:45AM (#12397863)
In this case, it won't bring back your html editable. :(
Re:Show HN: Poor man's Google Docs by nedwin on Tuesday August 30, 2016 @03:07PM (#12392945)
I use this Chrome extension and it has been awesome. text area + edit + save whenever you open a new tab.