Profile avatar
hamburger.cloud
Father of two children and countless software bugs Currently working on the text editor used in the very core of the @Sanity.io Content Operating System: https://github.com/portabletext/editor.
80 posts 142 followers 98 following
Regular Contributor
Active Commenter

My MacBook from 2007. Still boots. And I still hate computers.

It really is a special feeling sitting in your car, listening to a podcast, as you've done so many times before, but this time YOU'RE THE GUEST! Thank you, @simeongriggs.dev, for inviting me on to talk about Portable Text, text editors, Behaviours, Gherkin and state machines and more.

Very soon, you'll be able to hear @simeongriggs.dev and me talk about the Portable Text Editor—the challenges behind the scenes, as well as the cool new APIs we're cooking up.

The Behavior API for @sanity.io's Portable Text Editor will allow you to configure the editor in ways that where previously not possible. Behaviors can be bundled in Plugins to easily turn them on and off. Here's an example of a simple <OneLinePlugin /> that restricts the editor to one block.

Why is the first cup of coffee always an emergency?

Trying to use Copilot for a simple, boring task

So cool that we can finally ship this as the first step towards a more pleasant and modern writing experience in the @sanity.io Studio. For the interested, here's a link to the source code of the markdown behaviours found in the Portable Text Editor repository: github.com/portabletext...

Me releasing I've spent the past 10 years writing JavaScript full-time

Opened up my work laptop after almost two weeks off and this is the first thing that meets me. I guess I left in the middle of a debug session?

I keep toggling bold on and off again

Setting up a WYSIWYG editor in React is new to me—and a real neat UI challenge at the same time. Build this with Tailwind, Typography & Headless UI. That editing pane just has the `prose` class on it. Sick! 👏 @hamburger.cloud this is immense work! www.portabletext.org

So proud of this and can't wait to take it even further.

git: I'm dying me: git checkout -b docs-fix-typo-2

I wish GitHub (git?) was better at showing stacked diffs. Me: Let me carefully and surgically refactor this function in one commit and then rename it in the next commit GitHub: EVERYTHING CHANGED

Two-step username/password forms Can we please stop with that

React v19 *just* dropped and @codey.bsky.social already made sure our Portable Text Editor is up-to-date 💙 github.com/portabletext...

I've used Little Snitch for 16 years. Of course I'm going to upgrade when they release a new major version.

Today, I released the library we use to drive >200 tests using Gherkin to make sure @sanity.io's Portable Text Editor behaves correctly. Pkg: www.npmjs.com/package/race... Src: github.com/portabletext... PTE Gherkin spec: github.com/portabletext... PTE Gherkin test suite: github.com/portabletext...

This was really good www.youtube.com/watch?v=YCjN...

Let's just say, we've been cooking

The moment I became an adult was the moment I turned off code ligatures and started writing JavaScript with semicolons.