FUTO Notes

FUTO Notes 2.0.0 — a new editor

The editor, rebuilt from the ground up: native on iPhone and Android, one Rust core deciding what every line is on every platform, and Linedown, our new Markdown dialect.

Today marks the most significant release for FUTO Notes since the project started. We’ve rebuilt the editor from the ground up to be more reliable, native, performant, and pleasant to use on every platform. We’re also introducing Linedown, our new Markdown dialect.

On desktop, a note called "Food in Lisbon" gets a heading, a bold "pastel de nata" and a task from the toolbar and the / menu, while the .md file shown beside it gains only ##, ** and - [ ]. On iPhone, three typed lines are selected by double-tapping a word and dragging the selection handle down, and one tap on Bullet list turns them into a list, written to the file as three lines starting with - .

Why build a new editor?

The previous editor was based on Milkdown, a WYSIWYG Markdown editor. It’s an excellent project, but a poor fit for FUTO Notes. The goal with FUTO Notes was always to provide a high-quality “rich text”-like experience while using Markdown under the hood. In theory, this is exactly what Milkdown aims to do! The problem stems from our second goal: to keep files on disk as the ultimate source of truth. Milkdown uses a tree-based model and aggressively parses and reformats documents to fit its exact Markdown dialect. For our use case, this meant that when you opened your notes, we had to reconcile two sources of truth, and Milkdown would try to rewrite your document even if you didn’t make any changes. It was trying to get the document back to its exact standards. We kept bolting on plugins and fixes to work around this, but after some time we realized that we were fighting an uphill battle to build an editor we weren’t 100% happy with anyway.

Going full native on mobile

Even with a small team, we’re proud to say that our mobile apps are built using native UI frameworks, not a web wrapper. However, we kept the editor shared across platforms, the thought being that building the editor, the most complex part of the app, separately on each platform would be too much work.

We did it anyway.

Of course, this wouldn’t have been possible without the help of coding agents. We only have two software engineers on the team, yet we’ve launched a fully native editor for iOS and Android. We’re still using a webview on desktop, but even that is likely to change in the near future. We’re keeping an eye on GPUI.

A note written on Android and on iPhone with only the toolbar above the keyboard: a heading, a bold "pastel de nata", a bullet list, and a checklist item that is ticked once the keyboard is put away. No Markdown symbol is typed on either phone, and the note is saved as plain Markdown.

But we’re still reusing a lot of code, just not in the presentation layer. We moved the editor logic into our Rust core, where we already keep all our other shared code, like sync and storage. The Rust core interprets .md files, decides which blocks and elements to show, hides the Markdown syntax, handles edits to the file, and more. It’s quite performant, and it means the only part we have to rewrite for each platform is the presentation layer.

Linedown

We also built a new Markdown dialect we’re calling Linedown.

Linedown makes a few tweaks to CommonMark and similar dialects. We built it after running into problems following the letter of the law in the CommonMark and GitHub Flavored Markdown specs.

A line’s meaning never changes because of a line after it.

You may be thinking, does Markdown usually do this? And yes, it does, in certain circumstances.

Let’s look at CommonMark. In CommonMark, this note has a heading in it:

grocery list
-

The - on the second line turns “grocery list” into a heading. In Linedown, “grocery list” is a plain line, and it stays one whatever you type below it. Once you add a space, the second line is an empty bullet.

Every line break is a line break.

There are no paragraphs. This note is two lines, and it shows as two lines:

foo
bar

In CommonMark, this becomes one line.

In Linedown, a blank line is an empty line. Three blank lines show as three empty lines. Most Markdown editors will remove these extra lines.

Linedown is not tied to HTML.

CommonMark defines Markdown by the HTML it produces. Linedown defines what each line is: a heading, a bullet at some indent, a run of bold text. HTML is one way to draw that, and a native text view is another. Nothing in Linedown depends on HTML, and no rule exists because of how HTML would render it.

The full rules are in the Linedown reference.

Also in 2.0

  • Renaming or moving a note now reaches your other devices as a rename, even if you did it offline, rather than as a deleted note and a new one.
  • When two devices edit different words of the same paragraph, sync keeps both edits instead of making a conflict copy.
  • If another device deletes a note you have unsaved edits in, your edits are kept and the note comes back.
  • On iPhone and Android you can delete a folder with or without its notes. “Folder only” moves its notes up a level. On iPhone they’re tinted for a moment so you can see where they went.
  • Moving or renaming a folder whose notes link to each other is much faster. Moving 34 notes in a 1,000-note vault went from 4 seconds to under one.
  • Desktop Settings opens as a dialog in the middle of the window, the window has a minimum size so it can’t be shrunk to a sliver, and the desktop app’s text is now set in Plus Jakarta Sans.
  • On Linux, logging out or shutting down with the app open saves your last edits. On macOS, deleting a note no longer hangs when Finder doesn’t respond.
  • A #tag inside code no longer counts as a tag in the note list or in search.
  • Android: creating a note no longer crashes on some 32-bit Android 9 and 10 phones, and sync no longer reports a false “save failed”.

What’s next?

Right now we’re working on a major visual redesign and standing up a hosted sync server, so that anyone can have encrypted sync without running their own server.

We’d love to hear how the new editor feels to you. Settings → Send feedback reaches us directly.

Download FUTO Notes