Weeknotes 2024 W51: I am Gemini

December 16​–​22, 2024
 
1000 words

Quick bits:


Shower thoughts:


I’ve been making good progress with D★Scribe.

I’ve rewritten the whole thing in Preact, making good use of Preact’s signals. I am much happier with D★Scribe’s implementation now, in a way that I couldn’t have achieved with Svelte.

The UI has evolved a bit too:

A screenshot of an open D★Scribe window. It shows some Markdown text in the center part of the window, flanked by a sidebar on the left, and an inspector on the right.

It really does look like Scrivener, does it not? Scrivener’s a good app. I can’t help but steal be inspired.

The new implementation has undo/redo support, too. To achieve this, I hooked an undo manager into all signals that represent app state, so that every new bit of state automatically gets undo/redo support. The undo manager coalesces updates so that a single ⌘Z undoes the last batch of typing, rather than undoing each single character one by one.

The “compile” function works, too: it generates a Markdown file from all the individual documents in the sidebar, with the proper heading levels. This means that this word processor is now ready to be used for real writing, I suppose.

Still, I did not manage to port over everything from the Svelte version. Drag-and-drop is missing from the new version. As a stop-gap measure, I’ve added a “parent document” dropdown and “move up”/“move down” buttons instead.

There is a lot more to be done. My list of ideas is long.

I have now been working on this project for a month, and this is its fifth major version (fourth major rewrite), ignoring all the small experiments I did along the way. It’s a lot of work discarded, but I learnt a lot on the way.

I did not think I’d be creating GUI apps with Electron any time soon, but here we are.


Entertainment:


Links:

Entertainment links:

Work links:

Tech links:


  1. In the northern hemisphere, that is. ↩︎

  2. Stupid Fucking Bird, directed by Adam Ludwig, written by Aaron Posner (2024). ↩︎

  3. La Caja, directed by Lorenzo Vigas, written by Paula Markovitch, Laura Santullo and Lorenzo Vigas (Teorema, Ivanhoe Pictures, Labodigital, 2022). ↩︎

  4. ELEX (Piranha Bytes, 2017), published by THQ Nordic. ↩︎

You can reply to this weeknotes entry by email. I’d love to hear your thoughts!
If you like what I write, stick your email address below and subscribe. I send out my weeknotes every Sunday morning. Alternatively, subscribe to the web feed.