Show HN: Markdown New Tab – A new tab replacement to jot down notes in Markdown
github.com
github.com
Given that localStorage only has 5MiB available to it, you could try using the localForage library to have a localStorage-like API around IndexedDB, so that people can store even larger notes (you could even support storing pasted images as PNG blobs). Even better: is has automatic localForage fallback.
Alternatively, you might want to either compress the text with LZ-String before storing it[1]. (BTW, version 2.0 is currently in the works and much faster, especially if you use the "Unsafe" version[2])
[0] https://localforage.github.io/localForage/
[1] http://pieroxy.net/blog/pages/lz-string/index.html
[2] https://github.com/pieroxy/lz-string/pull/98#issuecomment-40...
http://www.gutenberg.org/ebooks/1342
:)
Well, then imagine I just suggested it for the image blobs ;)
Another nifty datapoint: the plain text of War and Peace is 3.2 MiB
> Unlimited storage is similar to persistent storage, but it is available only to Chrome apps and extensions (.crx files). The size of unlimited storage is limited only by the availability of space in the user's hard drive. You can ask for the unlimitedStorage permission in the manifest file for an app or extension. At installation, the user is informed of permissions required by the app or extension. By proceeding with the installation, the user implicitly grants permission for all pages whose URLs are listed in the manifest.json file.
[0] https://developer.mozilla.org/en-US/docs/Web/API/Storage
data:text/html, <body contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;">
Alternatively, you could also paste this in your browser URL bar and press enter.I got this code from some GitHub gist, but it has served me well for many years.
Microscopic tweak: white font on black background
data:text/html, <body contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;color:white;background-color:black;">
EDIT: Another tweak: give the body focus automatically data:text/html, <html><body id='.' contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;color:white;background-color:black;"></body><script type="text/javascript">var div = document.getElementById('.');setTimeout(function() {div.focus();}, 0);</script></html>I've seen this kind of thing appear a few times a year and, while they are cool and I like Markdown, I find I stop using them rather quickly in favor of things like the macOS Notes app or Slack because of things like convenience, ease of sharing, better search, more ease of mind that my notes won't one day disappear because of a side effect of clearing history or because the developer didn't understand browser storage API quirks. For example, I used Dillinger.io until the interface was updated and my notes were gone. I seem to remember another one that interacted with gist.github.com until one day it didn't. Hurray.
I think a company around a Markdown based app or extension would be good because other solutions don't embrace Markdown, and the ones that do might be a flash in the pan.
Alternatives: Caret, Typora, Emacs, Vim, VS Code.
Yes, I've been using my CatWiki software for programming and general notes now for several years. https://github.com/cabalamat/catwiki
CatWiki adds extensions to Markdown including code highlighting and MediaWiki-style links: https://github.com/cabalamat/catwiki/blob/master/data/catwik...
And I think one of the reasons I like it is because it is simple..it also has decent support for embedded LaTex, and it handles code snippets well. It does the job well for what I use it for, which is normally lecture notes, TODO lists, and idea captures. I don't really use it for documentation or anything else more formal.
The db is just a file you can choose to sync however you want. I use Resilio[1] to keep work/laptop/desktop machines in sync.
[0]: https://itunes.apple.com/us/app/quiver-take-better-notes/id8...
I take journal-type notes about personal things, and I demand that I have them available conveniently decades from now. I strongly prefer a dark theme. I was going to jump ship entirely to OneNote, but I can't get a dark theme on Desktop and mobile.
Moving to markdown has tremendous benefits. You have proper separation of concerns- "how do I edit on X platform" vs "how do I store my notes".
For storage, I've considered a git repo, but I'm using Dropbox for now. It has 30 day history, so I can correct for any mistake I'd care about.
For editing, I pick an editor on my current platform. Atom on Desktop. IA writer on Android.
I don't currently have great search, but I think I can do that with Dropbox. I'm more concern about future-proofing and dark theme.
Ease of sharing? I use text files (markdown) precisely because it is the most easily shared and portable format to store notes. As far as search, I have not seen anything come close to Emacs with its combination of regex grep, narrowing, and fuzzy FTS possibilities. Your whole org/markdown root folder can be a projectile project.
I agree with you, if you are taking notes for keeps, why use browser storage? Why not just save directly to a sync folder using your favorite editor?
When I do use markdown note apps is if I want to quickly jot down an idea or what I just learned. Four months ago I shared this technique with HN [0].
If I were to adopt a markdown app to use regularly, an important factor would be that it is open source. The reason is that, like you, I'd be worried about losing data due to a developer be mistake. Granted, something like Evernote is not open source, but I'm less worried about losing data.
I moved onto evernote for my work laptop and found it horrendous on windows - it wouldn't let me do something as simple as auto-capitalizing first words of the sentence. I'd run into issues quite often and googling it would amount to someone complaining about it on the forums a couple years back and nothing changing. After that I just moved back to onenote.
The most valuable thing hasn't been any individual feature (though those are nice since I can tailor them to me) but rather the fact that if I don't like the way it works, I can just pop the hood and change it myself.
Been using it for about three years now.
So I'm planning on making my own desktop app that's Apple Notes, but in Markdown, and with some kind of git auto-commit feature. But the nice thing about Markdown + Git is that I'm not locked into using one app! If I ever want to try out another Markdown app in the future I can do so, if I want to make my own I can do so, if I later stop updating my app and need another one I can just switch.
Emacs people kinda figured this out a long time ago with Org-mode.
For a while, I had some trouble with the tooling as most stuff is npm based and authors releasing on npm do not embrace system package managers (install locally vs. globally etc.). Recently, Okular (the KDE document viewer) got Markdown support, but I don't really like the default style and the font is the only thing you can change.
Nevertheless, yesterday I wrote a script and a css file to convert my Markdown files to PDF files from the command line easily (and with a style I like). The conversion to PDF is important for me as some of the humans around me do not seem to appreciate my markdown files ;-)
For synchronization across devices I use my Nextcloud.
I do wonder if it's controlled by the current chrome theme, given that the tab recorded in the window is also dark.
https://chrome.google.com/webstore/detail/mindful-beta/cieek...
plibither8, would you mind adding instructions to load this into Firefox in your README as well as Chrome? Also please upload to addons.mozilla.org as well as the Chrome Store.
Nice work!
[link redacted]
I don't expect it to be bug-free because it is something I made somewhat haphazardly for myself.
They even released an Android App to go along with it: https://play.google.com/store/apps/details?id=org.mozilla.te...
I'm sure there are a few more markdown "WYSIWYM" I'm forgetting...
To build your own see also https://simplemde.com/. Basically CodeMirror is friendly to mixed-font syntax highlighting.
Also yours truly https://mathdown.net
Perhaps this is a silly reason, but I use vim and I like my markdown syntax highlighting. I rather like reading my plaintext markdown + (default) syntax highlighting. I suppose it would be possible to write/use some txt syntax+highlighting (or some .note format, etc.), but I reinvent the wheel in enough other places to not want to do that here.
The syntax is easy to type, it's not verbose, and it actually makes sense in plaintext. Then if I ever want to I have the option to open it in a full-fledged markdown viewer, and sometimes I even copy/paste sections into actual markdown-compatible apps.
It provides a standard method of plain text note organization. If I want to create a list or a subheading, I now do it the same way every time, so I'm internally consistent with all my notes.
The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.
In fact, for certain types of greyhairs like myself, it is extremely readable in source because it is based on the conventions people used in Internet forums that didn't support rick text.
BBS's, Newsgroups, all of the social "networks" adopted a core set of syntaxes that people still use today, such as _emphasis_.
The history behind that is interesting. We started with underlines to suggest emphasis because that was something you could do on a physical typewriter: Back up and add underscores to what you'd already typed.
When typesetting arrived, we switched to italic because it's way easier to read. But _emphasis_ stayed as a way to suggest _underline_, even if we prefer to render it as italics.
There are similar stories behind other formatting choices, like
> Some quoted text
It resembles a way that people typeset quotations, and people got very used to reading that in newsgroups and email editors before it became a thing to create rich email ransom notes in Word.It's markdown compatible so you write in markdown and the text is automatically formatted while you type. It's really clever fix for the problem you are describing
Yes, I do in fact use Orgzly. For a very specific subset of notes it's fine. But for a long bit of documentation, no good editor exists on anything but a desktop / laptop. That is, nobody's reimplemented enough of Emacs on Android yet.
For typing, Termux's "extra keys row" makes ctrl and meta combinations possible with your favorite keyboard: https://wiki.termux.com/wiki/Touch_Keyboard
...or you can just use Hacker's Keyboard (but I find it too cramped).
Git also runs fine under termux if that's what you use to sync your org file.
"Long bit of documentation"? Isn't it the device that's not suited? I sure wouldn't want to do a lot of typing on a handheld device. Emacs shortcuts should be fun.
Don't get me wrong, I love org mode, but there is no real support on Android other that a damn-fine list-making app that uses a subset of org-mode format for its lists.
Even if you only did view them as plaintext, it sure is a handy format for a static blog generator in case you'd like to turn some of your notes into a blog post one day.
This seems to distill the concept down very nicely - quicker to load and straight to the point. Sadly I'd miss the structure of Moo.do but I can definitely see a world in which I'd use it - nice work.
"data:text/html, <textarea style="font-size: 1.2em; width: 100%; height: 100%; border: none; outline: none" autofocus></textarea><script>window.onbeforeunload = function(e) { return 'really close?'; };</script>"
Keep it open as long as you need, and it prompts to confirm before you close it.
It's not a replacement for a notes app. Instead, I'm using it to remind me where I left off on my work. It's helping me stay focused. Instead of seeing the distracting new tab screen, I see what I'm supposed to work on.
alias n='vim ~/Library/Mobile\ Documents/com~apple~CloudDocs/Notes.md'
Then just type n
to access your scratch pad. All nicely synced between devices.data:text/html;charset=utf-8,<title>Notepad</title><style>body{background:#fbfbfb;color:#333;margin:0 auto;width:60rem}textarea{background:#fbfbfb;border:0;color:#333;font-family:monospace;font-size:1.5rem;height:98%;line-height:1.2;margin:0 auto;outline:0;padding:4rem;width:100%}@media (max-width:768px){body{width:100%;padding:0}textarea{padding:10px}}</style><body><textarea contenteditable id=TE spellcheck=false autofocus></textarea>
[1] https://addons.mozilla.org/en-US/firefox/addon/chrome-store-...
It's focused on short lived todo lists but also has some amazing random scenery pictures.
I've never had a more pleasant and welcoming new tab window.
https://chrome.google.com/webstore/detail/momentum/laookkfkn...
data:text/html, <html contenteditable>
It isn't nearly as featureful as a full Markdown editor, and it won't save the contents of the tab to localstorage or anywhere else, but it is about as simple a solution as you can get.*Edit: Yes, I know it's in the name of the extension :-) -- just wish I could change the default.
i've been using a custom new-tab-page extension for a long time, it even comes with an integrated alarm-clock!
Rich formats like Smalltalk's images are vastly superior as long as you stay within the ecosystem. But plain text is "worse is better" at scale. You get more tools, more interoperability, more of everything.
Markdown is the plain text file winner for uncomplicated words. It's somewhat portable between a myriad of tools. When you drop into a "Better" tool like OneNote, you get all sorts of amazing wins... Provided you stay within the walled garden it provides.
Speaking as an author, I blog in markdown, I take notes in markdown, and I publish my books from markdown source for this very reason.
Heck, being able to put my books in GitHub and do pull requests is enough reason all by itself!
---
If you meant, "Why a tab instead of a separate app that works with Markdown," none of what I wrote above applies. I was speaking strictly to why Markdown instead of some proprietary-format notes app.
I'll bet the answer is similar: Everyone already has a browser open and quite a lot of notes are copy-n-pasted from other tabs. Availability, interoperability, etc.
Dropbox Paper does that really nicely.
License Copyright (c) Mihir Chaturvedi. All rights reserved. Licensed under the MIT License.
If Mihir has all rights reserved, what's the purpose of adding MIT with it?
Allow MIT terms
Deny * # all rights reserved (implied)
Am I using it under MIT terms? Allowed. Otherwise not.* http://jdebp.info./FGA/law-copyright-all-rights-reserved.htm...
MIT License starts with copyright notice:
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated
documentation files (the "Software"), to deal ....> To do: Other gimmicks to make it less minimalistic (?)