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!
How dare you forget my favorite text editor in your list.
Which is?
Cat, Awk, Grep, and unix pipes
ed.
Butterflies.
https://xkcd.com/378/ For those confused
vim
Emacs. In TECO.
Visual Studio
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
acme
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.
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.
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 buttonVery 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.
Whatever you do, don't fat-finger ctrl-w or similar. :(
> 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...
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.
GP bookmarklet isn't restored under Chrome
In this case, it won't bring back your html editable. :(
For an even-poorer-man's google docs, I like to keep this bookmarked:
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.