Follow

Here we go. A public functional beta be careful please prototype of my notes app based on Notational Velocity hyprnote.com/write – data sync via @remotestorage, some Sublime Text keyboard shortcuts, [[double-bracket interlinking]], works nicely offline and on mobile too. Yellah habibi.

- accesskey n: new note
- Tab: toggle editor focus
- Enter: create note from filter text
- ArrowDown/ArrowUp: next/previous note
- Command+Enter or Ctrl+Enter: open link
- accesskey r: jump to markdown heading

Shake to undo doesn't work on mobile, so avoid making mistakes if you can't ctrl/cmd-z

I would appreciate any feedback, especially bugs.

This one has the slowest cooking time but it's also the tastiest.

One more little video because it still amazes me that this Sublime-style text manipulation has been possible in a browser for so many years and I can just drop it into my notes app - thank you @marijn for CodeMirror 🙏🏽

@rosano is this with codemirror 5 or 6? I’ve been meaning to play with codemirror some more but the library rewrite is giving me pause

@amorphous It's an older version of 5 from last year or something. I might swap it with ProseMirror until 6 is released if I can make it respond the same way. Still a solid library though.

@rosano Lovely thing! Especially the way you implemented wiki-linking is very nice. This way it could very well become a replacement for litewrite.net for me.

Unfortunately I cannot make my 5apps.com account to work. It throws:

DiscoveryError: No storage information found for this user address.

The browser console reveals that the requests to

- 5apps.com/.well-known/webfinge
- 5apps.com/.well-known/host-met
- 5apps.com/.well-known/host-met

are blocked due to CORS mixed content, trying to access HTTP from HTTPS.

@yala Oh no! It's the first time I've heard that and I always use 5apps. Which browser is it? When I try with your address (from the last link there) on macOS Safari it takes me to the 5apps login page. Maybe there's interference from an ad blocker or something?

@rosano Yes, clicking these links will redirect you to the pages, since they are HTTP requests.

CORS requests are constrained by the scheme of the origin. All requests should go to HTTPS endpoints alike.

Can @5apps.com be expanded to 5apps.com/... instead?

@yala I'm just passing the login to the `connect` method of the remotestorage library remotestoragejs.readthedocs.io in the same way as the official widget (no processing of the input whatsoever) so it's strange that it behaves differently for you. Could you test in another browser, or maybe a private window? I just copied the account 'email' part from that url and tried to login and it successfully started the oauth dance.

@rosano Chrome and Firefox both show the same behaviour: Your write site is served via HTTPS, and the client tries to connect to an HTTP service, which is forbidden due to mixed content errors in CORS.

@yala Ok I was able to replicate this in Firefox by disallowing insecure requests. Not sure where to fix this but I'm looking into it.

I noticed litewrite.net also fails similarly but with

> The Same Origin Policy disallows reading the remote resource at 5apps.com/.well-known/webfinge. (Reason: CORS request did not succeed)

And if I understand correctly, webfinger.js will try http if https fails.

@rosano Now that you mention it, it's weird. Before trying to access the HTTP URLs, indeed it tries HTTPS, but says the CORS request failed.

ignoring cors [object Request] sw.js:25:20

Maybe I should file this as an issue in ... wait; of CO(u)RS(e); there was another plugin next to uMatrix, the infamous Privacy Badger, taking care of my belongings; and blocking.

Pardon me all the hazzle; now it's solved.

@yala That message is from my duct-taped service worker implementation, gotta clean that up.

Well, glad it's all good. I will try to ask on the forums anyway if anyone knows where to fix that because it really should function on pure HTTPS.

Really looking forward to any feedback you might have. 👍🏽🙂

@yala I also notice that the first link says 'user@5apps.com' - when I try to put in a random address to force a failure, it outputs the random address 3 times without 'user@5apps.com' (I tend to debug from the back end of the donkey…)

@rosano I'm using almereyda@5apps.com for that matter.

@rosano awesome ! I am using too NV as main note system and was looking for a web solution. and it is written in Svelte as well. sweet :)

would love some HTML5 History support to be able to go back/forward using browser shortcuts

had some weird bugs (new notes missing from UI, cannot move cursor) but I was unable to replicate.

Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them. Check out our Patreon to see our donations.