Noice! UX suggestion. You don't need the "as read only" save options if when you do a normal save the page tells you if it has been changed. That'll get you down to 2 menu options and make me think less.
The "as read only" options produce an HTML document that lacks the editor features - when you open that file from your computer, you'll see static content (although it just changes a couple of HTML attributes and leaves all the JavaScript in, inactive). The normal options re-create the entire page - editor, content and all.
Show HN: Nash, I made a standalone note with single HTML file
81–90 of 153 posts
Re: Show HN: Nash, I made a standalone note with single HTML file
#82Great work.
Re: Show HN: Nash, I made a standalone note with single HTML file
#83Earlier quoted context omitted.
Sorry I didn't mean to offend anyone. That said, I'm genuinely interested in understanding why you felt that way, is using VSCode considered something to be ashamed of or something, is it because it's a Microsoft product? PS: I have a strong positive bias towards VSCode due to personal history, so just trying to understand the developer perspective :)
> Sorry I didn't mean to offend anyone. I know, and it's nothing that needs an apology from you. Sometimes people (like me) feel offended over nothing, and it's more interesting for them to question why that is, instead of blamig the other party. That's not to say the reverse can't be true, just that it's tempting and too easy to project one's own offendedness if one isn't careful. But back to the interesting questio…
I got the courage to ask because I felt that you sounded open for a bit of self-introspection. Thanks for taking the time to describe something that's difficult to describe!
When I joined Microsoft in 2007, Visual Studio was at a state that it didn't even have syntax highlighting for Javascript. Many years later, I got so excited when Microsoft hired Erich Gamma from IBM's Eclipse IDE project (long story) because I knew what was coming. VSCode was originally called Monaco editor, built on top of WinJS library, and was just a little web component. Over the years, it changed significantly to become what it is today.
From your perspective of VSCode being a "Microsoft product", I totally get what you're saying, but VSCode has been one of the few exceptions for me for the reasons explained, and more.
Re: Show HN: Nash, I made a standalone note with single HTML file
#84Great 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
#85I wish browsers had better support for local web apps. If local files can access persistent storage easily, this can open it up a lot of opportunities for quick and easy GUI apps. Basically the opposite of electron.
How file can access anything? It is just data. It can not do anything.
Re: Show HN: Nash, I made a standalone note with single HTML file
#86Much of the heavy lifting is done by this simple but powerful attribute, something surprisingly few developers seem to know about. It's been around for quite a while.
I love this. Once made a pdf editor by converting a doc to HTML then throwing in contenteditable="true" in the top-most div lol
Turns out that it creates two representations of the PDF content - one is text, which has 0 opacity and another is prerendered image of the same layered on top of it. The latter is what's displayed. So while you can enable contenteditable and get the editing cursor, no changes you make will be shown. Oh, well.
Re: Show HN: Nash, I made a standalone note with single HTML file
#87Does this support Chrome's filesystem API?
Good idea, that's available on many browsers: https://developer.mozilla.org/en-US/docs/Web/API/FileSystem
https://developer.mozilla.org/en-US/docs/Web/API/File_System...
This is one that Firefox refuses to implement (a personal gripe for me)
Re: Show HN: Nash, I made a standalone note with single HTML file
#88Re: Show HN: Nash, I made a standalone note with single HTML file
#89Much of the heavy lifting is done by this simple but powerful attribute, something surprisingly few developers seem to know about. It's been around for quite a while.
Yeah, it's pretty amazing. Back in 2016 I was still doing a lot of custom sites for small/mid businesses, and realized that almost all of this could be done with WP or something except (1) WP styling is really annoying and I don't want to maintain that, (2) I didn't want to rely on plugin functionality and upgrading WP, and (3) I wanted people with different levels of access to be able to edit different parts of the…
Under the hood it was about as shit as every other enterprise CMS of the era, but our users fucking loved it.