Live data from Hacker News

Show HN: Nash, I made a standalone note with single HTML file

keepworking.github.io

41–50 of 153 posts

Re: Show HN: Nash, I made a standalone note with single HTML file

#43
post #40

I actually was hoping to find something like this, but that uses local storage as a backend so it can be plugged into my reframe [1]. It would be nice to have a reasonably nice text editor for notes and whatnot everytime I open a new tab. [1] https://reframe.canine.sh/czhu12

[deleted]

Re: Show HN: Nash, I made a standalone note with single HTML file

#44

This is quite cool, but I am not sure I understand the difference between 'Save' and 'Share'. They both seem to just save a file.

Save uses an a href (link) with download attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#...), which will usually trigger a normal file download.

Share uses Navigator.share (https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...), which should invoke the browser’s “share” menu if it has one.

Re: Show HN: Nash, I made a standalone note with single HTML file

#46
post #28

Thanks for making this. Sometimes I want to just write a quick note and serve as a static html file and this is very useful for that purpose.

Would the use case here be like a dirt simple splash page / redirect / under construction page?

a simple download page for beta software in a closed group, a birthday invite with all the relevant info

Re: Show HN: Nash, I made a standalone note with single HTML file

#47

This is so good. Thank you for this.

If I write a url like news.google.com and select it, then click you linkurl button It should use my text. I just had to re-enter the link. So if I highlight something please accept that as a link, even if I didn't put https:// at the front.

There's a lot of value in these kinds of things to manage your own bookmarks if you choose to without having to expose them to Google and a Google doc or something. Of course you risk losing your file.

Re: Show HN: Nash, I made a standalone note with single HTML file

#48
post #22

You could make this self contained and truly portable with "real" save using https://rpdillon.net/redbean-tiddlywiki-saver.html

Yes, please make it offer to save a file. That gets us much closer to the capability of having private bookmarks if we want to

Re: Show HN: Nash, I made a standalone note with single HTML file

#49
post #9

Great work. Consider changing the behavior so that when the page is opened in the browser from the local disk, then it opens edit mode automatically, but when it's published to someone's website and accessed on the open web (check if the address is http/https), then it's a normal, read-only view expected from most pages. Of course: 1. there should be a way to override this (a query string param or magic URL fragment)…

I actually really like the idea of websites that allow you to edit the content and save it locally... IMO, this is brilliant and should stay as is.

Re: Show HN: Nash, I made a standalone note with single HTML file

#50
post #37

Earlier quoted context omitted.

HTML is underrated. Most of the screens we look at daily, including our code editor are HTML pages.

Eh, no? My Code editor is NeoVim or it's IntelliJ But there is no HTML page involved at all. What I want to hint at: You're extrapolating the usage of VSCode.

As a side joke regarding vim; I have a theory that my exposure to typewriters as a kid prevented me from adopting vim as an editor :)

Pressing the letter keys for anything other than typing feels so weird to me. My brain might still be thinking of the SHIFT key as a physical modifier that literally shifts the typewriter letters from uppercase to lowercase position.

I admire fast vim users, it's a joy to watch them code.

Post reply on HN