Live data from Hacker News

Turn your browser into a notepad with one line

coderwall.com

21–30 of 186 posts

Re: Turn your browser into a notepad with one line

#21
post #18
post #6

Now I just need some javascript to listen for Ctrl+S and save it as a text file in ~/Documents/scratchpads. Time to get crackin'

How do you save stuff in files from the browser? I've googled around about this a couple times and not found anything good, so if anyone can point to some clear documentation I'd appreciate it.

I found this very helpful: http://www.html5rocks.com/en/tutorials/file/filesystem/

Re: Turn your browser into a notepad with one line

#22
post #18
post #6

Now I just need some javascript to listen for Ctrl+S and save it as a text file in ~/Documents/scratchpads. Time to get crackin'

How do you save stuff in files from the browser? I've googled around about this a couple times and not found anything good, so if anyone can point to some clear documentation I'd appreciate it.

I'm on mobile so I can write to much accompanying text, but start here:

http://www.html5rocks.com/en/tutorials/file/filesystem/

Re: Turn your browser into a notepad with one line

#24

Personally I'm more interested in the concept of typing gibberish to clear your mind. What particular kind of gibberish? Doggerel verse? Blind keyboard mashing?

I often do an exercise that I've started referring to as a "brain dump". Sometimes when I feel overwhelmed, for whatever reason, it helps to just simply start typing. I start by just saying whatever is most present on my mind, and each new thought starts on a new line. More often than not I end up drilling down to some kind of inner conflict buried pretty deep in my mind.

What's really amazing is when seemingly unrelated stressful moments in your life are revealed to be from the same source.

Re: Turn your browser into a notepad with one line

#26

I use Workflowy for this. In the url bar, I type: w Or, if you're a a super-organized shortcut-type, w "@misc" Bonus points -- combine with ctrl+T and ctrl+W for command-line-fu-like syntax on whichever page you're currently browsing!

I use workflowy too, but I'm not sure what you're talking about. `w ` is going to send you to the first site with w in the name (which in my case is 'wikipedia.com' - I have to type 'wor' for workflowy.com to be selected).

The ` @misc` part also doesn't make sense. That just does a search for tags, it doesn't put you in a mode to just write, which is what the OP's solution does.

Last but not least, a little pro-tip for ya, since you like the command line (or keyboard shortcuts as they are also called:) : Command-L puts the cursor in the location bar. So you can do +L w . Also, shift back to a previous tab with cmd+shift+[ and +].

Re: Turn your browser into a notepad with one line

#28
Forgive me for the shameless plug...but thought this might be useful for other HNers and related to OP.

I put together a little project that uses the browsers localstorage so you can jot notes down and come back to them, I find it useful as I'm always in the browser, hope you do too: http://a5.gg

Re: Turn your browser into a notepad with one line

#29

I use Workflowy for this. In the url bar, I type: w Or, if you're a a super-organized shortcut-type, w "@misc" Bonus points -- combine with ctrl+T and ctrl+W for command-line-fu-like syntax on whichever page you're currently browsing!

I use workflowy too, but I'm not sure what you're talking about. `w ` is going to send you to the first site with w in the name (which in my case is 'wikipedia.com' - I have to type 'wor' for workflowy.com to be selected). The ` @misc` part also doesn't make sense. That just does a search for tags, it doesn't put you in a mode to just write, which is what the OP's solution does. Last but not least, a little pro-tip f…

I'm simply describing my workflow -- Workflowy is easily my #1 "w", so that's why this works for me. Probably not very helpful -- I just thought I'd illustrate the "exact" same steps I take to achieve the same effect.

Same goes for "@misc". When I want to brain-dump some gibberish, as in the OP's use case, the @misc tag contains a big dump of stuff that I generally refine or delete later.

I don't know why I don't use ctrl+l -- i usually use ctrl+e or ctrl+k and then backspace (why do these do the same thing in chrome?). But yeah, thanks for the advice.

Post reply on HN