Some years ago I published a demo of a Floats plugin that creates draggable, resizable containers in TiddlyWiki. At the time there wasn’t much interest, so the development went its own way as a custom plugin that I’ve been using regularly over the years. The downside is that it became too tightly integrated with my other plugins to be easily shared.
As part of exploring potential improvements to the eventcatcher widget, I decided to rewrite the same functionality completely from scratch. It’ll probably be a few weeks before I can continue working on this, so I’m sharing it here in case it’s useful or interesting to others.
Background
If you’re curious, here’s the very first demo from way back.
The new version is written almost entirely in WikiText, with a little help from:
- An extended version of the eventcatcher widget (which I think could be a core candidate)
- New
$:/info/
tiddlers that report window dimensions, via the Window Resize plugin (also a core candidate) - (Optional) the Links Context Menu plugin, which lets you right-click a tiddler link and open it directly in a float
Demo: TiddlyWiki v5.3.8 — a non-linear personal web notebook
To Do
- Make float persistence configurable (how many remembered, across reloads, etc.)
- Minimize / restore
- Headerless floats
- Pinning
- Keyboard shortcuts to hide/restore all floats
- Size & position as percentages of the window size
- Snap-to-grid
- Keep floats visible within the window (on resize or when opened from context menu)