flodo 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Michelle Mayes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,598 @@
1
+ <div align="center">
2
+
3
+ <img src="docs/images/icon.png" alt="" width="96">
4
+
5
+ # Flodo
6
+
7
+ A small floating to-do list for macOS, Linux, and Windows.
8
+
9
+ [![CI](https://github.com/Geozstevenzz/flodo/actions/workflows/ci.yml/badge.svg)](https://github.com/Geozstevenzz/flodo/actions/workflows/ci.yml)
10
+ [![Release](https://github.com/Geozstevenzz/flodo/actions/workflows/release.yml/badge.svg)](https://github.com/Geozstevenzz/flodo/actions/workflows/release.yml)
11
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
12
+ ![Rust](https://img.shields.io/badge/rust-stable-orange.svg)
13
+ ![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey.svg)
14
+
15
+ <img src="docs/images/hero.png" alt="Flodo showing a short to-do list with one item checked off" width="380">
16
+
17
+ </div>
18
+
19
+ ---
20
+
21
+ Flodo is a frameless panel that floats above your other windows. It holds one
22
+ list: add a to-do, check it off, and hide the completed ones when you want to.
23
+
24
+ This fork of [michellemayes/flodo](https://github.com/michellemayes/flodo)
25
+ adds importance flags, larger resize targets, stable drag reordering, and npm installation.
26
+
27
+ ## What it does
28
+
29
+ | Area | Detail |
30
+ |---|---|
31
+ | Window | Frameless and always-on-top. Drag it by the title bar or anywhere that isn't a control; unpin it when it's in the way. |
32
+ | Resize | Grab any edge or corner. Resize targets cover eight logical pixels along each edge, with longer corner targets. |
33
+ | Importance | Click a row's flag to choose no flag, low (blue), medium (amber), or high (red). Flags persist without changing your chosen row order. |
34
+ | Reordering | Drag the row handle to a drop indicator, then release. Rows stay still during the gesture. |
35
+ | Bodies | A to-do is one line, but can carry a collapsible markdown description underneath, including fenced code snippets. <kbd>⌘</kbd><kbd>⏎</kbd> or the chevron opens one. |
36
+ | Appearance | Eight accent colours, light and dark, plus font, code font, text size, row spacing, and opacity. |
37
+ | Keyboard | The composer keeps focus after <kbd>Enter</kbd>, so several to-dos can be added without using the mouse. <kbd>↓</kbd> walks into the list, <kbd>Space</kbd> checks off, and typing anywhere goes to the composer. Every shortcut is listed in the settings sheet, and the one for whatever the pointer is on appears in the title bar. |
38
+ | Paste | Paste a list — bullets, numbers, or `- [ ]` checkboxes — and every line becomes a to-do. |
39
+ | Checking off | A small burst out of the checkbox, a bigger one for a run, and a proper one when the list is done. |
40
+ | Quick capture | Double-tap <kbd>⇧</kbd> anywhere to summon Flodo and write down whatever text you had selected. Off by default; macOS only. |
41
+ | Undo | Deletes, check-offs, clears and pastes all go back with <kbd>⌘</kbd><kbd>Z</kbd>, as many steps as you like. A delete is also announced and offered back for a few seconds. |
42
+ | Size | A single binary, around 8 MB. No webview, no background service, no account. |
43
+ | Storage | Two JSON files you can read, edit, and sync. |
44
+ | Scripting | A CLI over the same list, and an optional Claude skill for agents. |
45
+
46
+ ## Install
47
+
48
+ ### npm
49
+
50
+ Requires Node.js 20 or newer. Install and launch:
51
+
52
+ ```sh
53
+ npm install -g flodo
54
+ flodo
55
+ ```
56
+
57
+ For a project-local install, use `npm install flodo`, then `npx flodo`.
58
+ Supports Windows x64, Linux x64 with glibc, and macOS Intel/Apple Silicon.
59
+ The package includes the compiled applications, so installing needs no Rust
60
+ toolchain or install scripts. Linux requires a desktop session and the usual
61
+ OpenGL, X11 or Wayland runtime libraries.
62
+
63
+ ### Keep your existing to-dos
64
+
65
+ The fork uses the original Flodo data directory and reads existing `todos.json`
66
+ and `settings.json` directly. On Windows this is `%APPDATA%\Flodo\`.
67
+ Existing items start with no importance flag; their IDs, order, completion state,
68
+ descriptions and unknown fields are preserved. Installation and uninstallation
69
+ do not write to your data directory. If you use a custom `FLODO_STATE_DIR`, keep
70
+ that environment variable set when launching the fork.
71
+
72
+ Quit the old Flodo before launching the fork so two open copies cannot overwrite
73
+ each other's changes. See **Your data** below for the macOS and Linux locations.
74
+
75
+ ### Standalone download
76
+
77
+ Download the latest [release](https://github.com/Geozstevenzz/flodo/releases).
78
+
79
+ **macOS** — unzip and drag `Flodo.app` to Applications. Builds are ad-hoc signed
80
+ but not notarized, so the first launch needs right-click → **Open**, or:
81
+
82
+ ```sh
83
+ xattr -dr com.apple.quarantine /Applications/Flodo.app
84
+ ```
85
+
86
+ **Linux / Windows** — unpack the archive and run `flodo`.
87
+
88
+ **From source** — needs a stable Rust toolchain:
89
+
90
+ ```sh
91
+ git clone https://github.com/Geozstevenzz/flodo
92
+ cd flodo
93
+ cargo run --release
94
+ ```
95
+
96
+ On macOS, build the bundle rather than keeping the bare binary — it is what
97
+ carries the icon, and what a released Flodo is:
98
+
99
+ ```sh
100
+ ./scripts/bundle-macos.sh # → dist/Flodo.app
101
+ ```
102
+
103
+ <details>
104
+ <summary>Linux build dependencies</summary>
105
+
106
+ ```sh
107
+ sudo apt install libgtk-3-dev libxkbcommon-dev libgl1-mesa-dev \
108
+ libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
109
+ ```
110
+ </details>
111
+
112
+ ## Using it
113
+
114
+ Type in the box at the top and press <kbd>Enter</kbd>. The new to-do appears on
115
+ the line directly below, and the field keeps focus, so adding several in a row
116
+ is uninterrupted typing.
117
+
118
+ Click the circle to check something off. Completed to-dos stay in place, dimmed
119
+ and struck through, so the list doesn't reorder under the cursor. The eye in the
120
+ title bar hides them, and the mark in the top-left fills as the list gets done.
121
+
122
+ <div align="center">
123
+ <img src="docs/images/light.png" alt="Flodo in light mode with a blue accent" width="340">
124
+ </div>
125
+
126
+ Rows light up under the cursor, which is where the drag handle and the delete
127
+ button appear. Deleting says so, and offers the to-do back for a few seconds:
128
+
129
+ <div align="center">
130
+ <img src="docs/images/undo.png" alt="A deleted to-do offered back by a small strip at the bottom of the window reading Deleted 'Book the dentist', with an Undo link" width="340">
131
+ </div>
132
+
133
+ Once anything is done, a quiet line under the list counts the completed ones
134
+ and clears them in one click, <kbd>⌘</kbd><kbd>⇧</kbd><kbd>⌫</kbd> from the
135
+ keyboard. That too goes back with <kbd>⌘</kbd><kbd>Z</kbd>.
136
+
137
+ ### Checking things off
138
+
139
+ Ticking something off is the moment a to-do list exists for, so it gets a
140
+ little ceremony: the line crosses itself out, and a burst in your accent
141
+ colour comes out of the checkbox. Check several off in a row and the bursts
142
+ grow, with a count of the run floating up beside them:
143
+
144
+ <div align="center">
145
+ <img src="docs/images/celebrate.png" alt="Two to-dos just checked off in a row, each with a burst of pink sparks around its checkbox and a small ×2 floating beside them" width="340">
146
+ </div>
147
+
148
+ Finish the whole list and the title-bar mark bursts too, and Flodo offers to
149
+ clear the finished list away:
150
+
151
+ <div align="center">
152
+ <img src="docs/images/finale.png" alt="Every to-do checked off, with a large burst around the last checkbox, a ring out of the title-bar mark, and a toast reading All 3 done with a Clear them link" width="340">
153
+ </div>
154
+
155
+ It is all painted over the list rather than in it, so nothing moves under the
156
+ cursor. **Celebrate check-offs** in the settings sheet turns it off.
157
+
158
+ ### Never reaching for the mouse
159
+
160
+ The keyboard can do everything the pointer can:
161
+
162
+ - <kbd>↓</kbd> from the composer steps into the list, and <kbd>↑</kbd> past
163
+ the top steps back out. The selected row carries the accent edge.
164
+ - <kbd>Space</kbd> checks it off, <kbd>Enter</kbd> edits it,
165
+ <kbd>⌘</kbd><kbd>⏎</kbd> opens its description, <kbd>⌫</kbd> deletes it,
166
+ and <kbd>⌘</kbd><kbd>↑</kbd> / <kbd>⌘</kbd><kbd>↓</kbd> move it.
167
+ - Just start typing. Wherever the keyboard is, letters land in the composer.
168
+ - Paste a list and each line becomes a to-do, in order. Bullets, numbers and
169
+ checkboxes are stripped, and `- [x]` lines arrive already done. A single
170
+ line pastes as ordinary text.
171
+
172
+ New rows glow briefly in the accent colour, so a pasted list, a quick capture,
173
+ or an undone delete is easy to spot.
174
+
175
+ An empty list is the one place Flodo explains itself, and then never again:
176
+
177
+ <div align="center">
178
+ <img src="docs/images/empty.png" alt="The empty list, showing Nothing yet and two lines of keyboard hints" width="300">
179
+ </div>
180
+
181
+ ### Markdown
182
+
183
+ Titles and bodies are markdown. While you're typing you see the raw source;
184
+ click away and it renders. There is no formatting toolbar.
185
+
186
+ | While you're typing | After you click away |
187
+ |---|---|
188
+ | <img src="docs/images/editing.png" alt="A to-do being edited, showing raw markdown asterisks" width="330"> | <img src="docs/images/rendered.png" alt="The same to-do rendered, with bold and inline code" width="330"> |
189
+
190
+ ### Bodies
191
+
192
+ Every row has a chevron on the right; click it to open a body. It holds the
193
+ detail: a note, a link, a stack trace, a command.
194
+
195
+ Or never touch the mouse. <kbd>⌘</kbd><kbd>⏎</kbd> is the same thing from the
196
+ keyboard, and it means the same thing everywhere: in the composer it adds the
197
+ to-do and drops you into its body, in a title it moves down to the body, and in
198
+ a body it finishes and puts you back in the composer. A to-do with a note is
199
+ one uninterrupted run of typing.
200
+
201
+ <div align="center">
202
+ <img src="docs/images/markdown.png" alt="A to-do expanded to show a markdown body with a heading, a link, a Rust code block, nested lists and a blockquote" width="380">
203
+ </div>
204
+
205
+ Bodies support headings, **bold**, *italic*, `inline code`, fenced code blocks
206
+ with a language label and a copy button, nested lists, links, blockquotes,
207
+ horizontal rules, and ~~strikethrough~~.
208
+
209
+ Code blocks scroll sideways rather than wrapping:
210
+
211
+ ````markdown
212
+ Races on the session cookie. Reproduce with:
213
+
214
+ ```sh
215
+ cargo test --test login -- --test-threads=1
216
+ ```
217
+
218
+ - [the flaky run](https://ci.example.com/12345)
219
+ - probably the `SameSite` change
220
+ ````
221
+
222
+ ### Appearance
223
+
224
+ <div align="center">
225
+ <img src="docs/images/settings.png" alt="The settings sheet showing accent swatches, appearance, font pickers and sliders" width="340">
226
+ </div>
227
+
228
+ A handful of settings on one screen, opened with <kbd>⌘</kbd><kbd>,</kbd>.
229
+
230
+ The accent colour tints the whole panel, not just the checkbox: background,
231
+ surfaces, and borders all shift toward its hue at low saturation.
232
+
233
+ | Pink · dark | Green · light | Amber · dark | Purple · light |
234
+ |---|---|---|---|
235
+ | <img src="docs/images/accent-pink.png" alt="Flodo with a pink accent in dark mode" width="220"> | <img src="docs/images/accent-green.png" alt="Flodo with a green accent in light mode" width="220"> | <img src="docs/images/accent-amber.png" alt="Flodo with an amber accent in dark mode" width="220"> | <img src="docs/images/accent-purple.png" alt="Flodo with a purple accent in light mode" width="220"> |
236
+
237
+ All eight accents are contrast-tested in both light and dark. A unit test
238
+ asserts WCAG AA for body text against the background.
239
+
240
+ ## Keyboard
241
+
242
+ | Shortcut | Action |
243
+ |---|---|
244
+ | <kbd>Enter</kbd> | Add the to-do and keep focus for the next one, or edit the selected one |
245
+ | <kbd>⌘</kbd><kbd>⏎</kbd> | Add or edit the description, then come back |
246
+ | <kbd>↑</kbd> / <kbd>↓</kbd> | Walk the list; up past the top returns to the composer |
247
+ | <kbd>Space</kbd> | Check off the selected to-do |
248
+ | <kbd>⌫</kbd> | Delete the selected to-do |
249
+ | <kbd>⌘</kbd><kbd>N</kbd> | Jump to the composer |
250
+ | <kbd>⌘</kbd><kbd>E</kbd> | Show / hide completed |
251
+ | <kbd>⌘</kbd><kbd>⇧</kbd><kbd>⌫</kbd> | Clear completed |
252
+ | <kbd>⌘</kbd><kbd>P</kbd> | Pin / unpin from always-on-top |
253
+ | <kbd>⌘</kbd><kbd>,</kbd> | Settings |
254
+ | <kbd>⌘</kbd><kbd>Z</kbd> | Undo the last change — delete, check-off, clear, or paste |
255
+ | <kbd>⌘</kbd><kbd>↑</kbd> / <kbd>⌘</kbd><kbd>↓</kbd> | Move the selected or edited to-do |
256
+ | <kbd>⌘</kbd><kbd>⌫</kbd> | Delete |
257
+ | <kbd>Esc</kbd> | Stop editing, leave the list, clear the composer, or close settings |
258
+ | <kbd>⌥</kbd><kbd>Space</kbd> | Summon or hide Flodo from anywhere |
259
+ | <kbd>⇧</kbd> <kbd>⇧</kbd> | Summon, and keep the selected text — off by default, see below |
260
+
261
+ Use <kbd>Ctrl</kbd> instead of <kbd>⌘</kbd> on Linux and Windows. Drag the
262
+ handle on the left of a row to reorder it.
263
+
264
+ The same list is at the bottom of the settings sheet, spelled for the platform
265
+ you are on, so it isn't something you have to come back here for:
266
+
267
+ <div align="center">
268
+ <img src="docs/images/shortcuts.png" alt="The settings sheet scrolled to the keyboard shortcuts section, listing every shortcut against what it does" width="300">
269
+ </div>
270
+
271
+ ## Quick capture
272
+
273
+ <kbd>⌥</kbd><kbd>Space</kbd> brings Flodo forward from anywhere and works out
274
+ of the box. Quick capture is the same gesture without the chord, and it brings
275
+ something with it: **double-tap <kbd>⇧</kbd>** and Flodo comes forward with
276
+ whatever text you had selected already written down as a to-do.
277
+
278
+ Nothing selected? Then it is just a summon, with the cursor in the composer.
279
+
280
+ Turn it on under **Quick capture** in the settings sheet, where the same row
281
+ picks the modifier: <kbd>⇧</kbd>, <kbd>⌃</kbd>, <kbd>⌥</kbd>, or <kbd>⌘</kbd>.
282
+
283
+ ### What it costs
284
+
285
+ It is the only part of Flodo that asks the system for anything, which is why
286
+ it is off until you switch it on:
287
+
288
+ - **Accessibility permission.** A bare <kbd>⇧</kbd> can't be registered as a
289
+ shortcut the way <kbd>⌥</kbd><kbd>Space</kbd> can, so hearing one means a
290
+ listen-only event tap; reading the selection means asking the focused app.
291
+ macOS gates both. You will be prompted the first time you switch it on.
292
+ - **macOS only, for now.** X11, Wayland, and Windows each need a different
293
+ answer, and Flodo would rather say so than half-answer it. The
294
+ <kbd>⌥</kbd><kbd>Space</kbd> summon works everywhere, unchanged.
295
+
296
+ Two things it deliberately does not do. It never touches your clipboard —
297
+ reading the selection goes through the Accessibility API rather than a
298
+ synthetic <kbd>⌘</kbd><kbd>C</kbd>, so whatever you had copied stays copied.
299
+ And it only ever watches the one modifier you chose: the letters you type are
300
+ not inspected, and nothing is recorded.
301
+
302
+ ### How the text lands
303
+
304
+ A one-line selection becomes the title. A longer one puts the first line in
305
+ the title and the rest in the description, and if that first line is itself
306
+ longer than a title should be, it is cut short in the row and kept whole in
307
+ the description — nothing selected is dropped. Very long selections stop at
308
+ 2000 characters; this is a to-do list, not an archive.
309
+
310
+ ### Tuning
311
+
312
+ The double-tap speed defaults to 400 ms and lives in `settings.json` rather
313
+ than the sheet, which is short on purpose:
314
+
315
+ ```json
316
+ {
317
+ "quick_capture": { "enabled": true, "key": "shift", "window_ms": 400 }
318
+ }
319
+ ```
320
+
321
+ `key` is one of `shift`, `control`, `alt`, `command`; `window_ms` is clamped
322
+ to 150–900.
323
+
324
+ Some apps will not report a selection — a few Electron and Java apps, and
325
+ browsers until their own accessibility support is switched on. Those still
326
+ summon; they just arrive empty.
327
+
328
+ ## Command line
329
+
330
+ The same binary is also a CLI over the same list, for scripts and coding
331
+ agents.
332
+
333
+ ```console
334
+ $ flodo add Buy oat milk
335
+ 7312124937646080
336
+
337
+ $ flodo add "Fix the flaky login_test" --body "Races on the session cookie."
338
+ 7312124937695232
339
+
340
+ $ flodo list
341
+ - [ ] Fix the flaky login_test (7312124937695232)
342
+ Races on the session cookie.
343
+ - [ ] Buy oat milk (7312124937646080)
344
+
345
+ $ flodo done 7312124937646080
346
+
347
+ $ flodo list --count
348
+ 1
349
+ ```
350
+
351
+ | Command | What it does |
352
+ |---|---|
353
+ | `flodo list` | Open to-dos as markdown checkboxes |
354
+ | `flodo list --json` | Machine-readable array |
355
+ | `flodo list --all` | Include completed |
356
+ | `flodo list --count` | Just the number |
357
+ | `flodo add <text> [--body <text>]` | Add one, print its id |
358
+ | `flodo done <id>...` | Mark complete |
359
+ | `flodo undone <id>...` | Mark not complete |
360
+ | `flodo rm <id>...` | Delete |
361
+
362
+ `--json` gives a stable record shape — internal fields never leak into it:
363
+
364
+ ```json
365
+ [
366
+ {
367
+ "id": 7312124937695232,
368
+ "title": "Fix the flaky `login_test`",
369
+ "body": "Races on the session cookie.",
370
+ "done": false,
371
+ "created_at": 1785186752,
372
+ "completed_at": null
373
+ }
374
+ ]
375
+ ```
376
+
377
+ Writes are safe while the app is open: it polls the file and picks up outside
378
+ edits within a second, so it won't overwrite what the CLI wrote. Two further
379
+ guarantees:
380
+
381
+ - **Unknown ids change nothing.** `flodo done 1 2 999` with one bad id exits
382
+ non-zero having applied none of them, rather than leaving the first two
383
+ half-done.
384
+ - **A file that fails to parse is never written over.** The CLI exits non-zero
385
+ instead of starting from an empty list and overwriting the real one.
386
+
387
+ ## Claude skill
388
+
389
+ Optional, installed with one command. It documents the CLI for Claude:
390
+ fetching ids from `--json` before changing anything, and asking rather than
391
+ guessing when a title is ambiguous.
392
+
393
+ ```sh
394
+ ./scripts/install-skill.sh # global: ~/.claude/skills/flodo
395
+ ./scripts/install-skill.sh --project # this repo only: ./.claude/skills/flodo
396
+ ./scripts/install-skill.sh --link # symlink, so it tracks the repo
397
+ ./scripts/install-skill.sh --uninstall
398
+ ```
399
+
400
+ Then just ask, in Claude Code or the Claude app:
401
+
402
+ > what's on my to-do list?
403
+ >
404
+ > add "renew the domain" to my list
405
+ >
406
+ > mark the dentist one done
407
+
408
+ The skill is a single file, [`skills/flodo/SKILL.md`](skills/flodo/SKILL.md),
409
+ so you can read what Claude is being told before installing it. Flodo does not
410
+ require it.
411
+
412
+ > [!NOTE]
413
+ > The skill runs `flodo`, so the binary needs to be on your `PATH`
414
+ > (`cargo install --path .` does that). The installer warns you if it isn't.
415
+
416
+ ## Your data
417
+
418
+ | Platform | Location |
419
+ |---|---|
420
+ | macOS | `~/Library/Application Support/Flodo/` |
421
+ | Linux | `~/.local/share/flodo/` |
422
+ | Windows | `%APPDATA%\Flodo\` |
423
+
424
+ Two plain JSON files. `todos.json` looks like this:
425
+
426
+ ```json
427
+ {
428
+ "version": 1,
429
+ "todos": [
430
+ {
431
+ "id": 7318429184000,
432
+ "title": "Fix the flaky `login_test`",
433
+ "body": "Races on the session cookie.",
434
+ "done": false,
435
+ "created_at": 1785192000,
436
+ "expanded": false
437
+ }
438
+ ]
439
+ }
440
+ ```
441
+
442
+ It is an ordinary file: edit it by hand, keep it in a git repo, or sync it.
443
+ `FLODO_STATE_DIR` points Flodo somewhere else.
444
+
445
+ Three properties protect it:
446
+
447
+ - Saves are **atomic**: written to a temp file and renamed into place, so a
448
+ crash mid-write cannot leave a partial list.
449
+ - A file that fails to parse is **quarantined**, never overwritten. The
450
+ original bytes are kept as `todos.json.corrupt-<timestamp>`, and the app
451
+ shows a notice.
452
+ - Unknown fields **round-trip**, so an older build will not strip fields a
453
+ newer one wrote.
454
+
455
+ ## Known limitations
456
+
457
+ - **Emoji render in monochrome.** epaint has no COLR/sbix path, so Apple Color
458
+ Emoji falls back to a bundled monochrome font.
459
+ - **Bold and italic need real font faces.** egui has no synthetic emphasis.
460
+ Flodo uses a family's real bold/italic/oblique faces, and can instance a
461
+ variable `wght` or `slnt` axis where one exists (this covers SF Pro and
462
+ Inter). A family with no bold face renders `**bold**` as regular.
463
+ - **Text editing is egui's, not the system's** — no spellcheck, no emoji picker,
464
+ no dictation, and only partial IME support.
465
+ - **Flodo appears in the Dock and in ⌘-Tab.** A menu-bar-only accessory mode is
466
+ a plausible future change, not a current one.
467
+ - **macOS builds are not notarized**, which is why the first launch needs
468
+ right-click → Open.
469
+ - **Quick capture is macOS-only**, and macOS grants its permission to a
470
+ *signature*, not a path — so a bare `cargo run` binary and `Flodo.app` are
471
+ two different applications as far as System Settings is concerned, and
472
+ replacing the binary can mean granting it again.
473
+
474
+ ## Development
475
+
476
+ ```sh
477
+ cargo test # 147 tests
478
+ cargo clippy --all-targets --all-features -- -D warnings
479
+ cargo fmt --all -- --check
480
+ ```
481
+
482
+ Tests cover what can be checked without a screen: the model, atomic writes and
483
+ corruption handling, settings clamping, the markdown parser (including a
484
+ no-panic sweep over pathological input), CLI argument parsing and output shape,
485
+ hotkey parsing, font validation, palette contrast, and the icon rasteriser and
486
+ its PNG output.
487
+
488
+ Quick capture is split so that most of it is testable the same way: the
489
+ double-tap state machine and the selection-to-to-do split are pure functions
490
+ in `src/capture/mod.rs`, unit tested on every platform, while
491
+ `src/capture/macos.rs` is only the binding that feeds them. The tests are the
492
+ place to check that typing a capital letter isn't a double-tap.
493
+
494
+ The GUI is checked by screenshot. `eframe` has a built-in hook that renders a
495
+ couple of frames, writes a PNG, and exits, so nothing beyond Xvfb is needed:
496
+
497
+ ```sh
498
+ xvfb-run -a -s "-screen 0 700x900x24" \
499
+ env LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe \
500
+ FLODO_STATE_DIR=/tmp/flodo-shots \
501
+ FLODO_DEMO=showcase \
502
+ EFRAME_SCREENSHOT_TO=/tmp/flodo.png \
503
+ cargo run --features screenshot
504
+ ```
505
+
506
+ `FLODO_DEMO` seeds a scenario in memory without touching the real list:
507
+ `hero`, `showcase`, `editing`, `rendered`, `settings`, `empty`, `long`, `body`.
508
+
509
+ Every screenshot in this README is produced that way, and
510
+ `scripts/screenshots.sh` regenerates all of them. It writes a settings file per
511
+ shot, so the window size, accent and light/dark are pinned rather than
512
+ inherited from whoever ran it last, and the output is byte-for-byte
513
+ reproducible.
514
+
515
+ ```sh
516
+ ./scripts/screenshots.sh # all of them
517
+ ./scripts/screenshots.sh hero light # just these
518
+ ```
519
+
520
+ > [!NOTE]
521
+ > The build uses the glow backend rather than wgpu. eframe's screenshot hook is
522
+ > glow-only, and wgpu needs a Vulkan or GLES adapter that headless CI often
523
+ > lacks, so switching backends would cost this screenshot workflow.
524
+
525
+ ### The icon
526
+
527
+ `src/icon.rs` draws the icon rather than loading one — a check mark in the
528
+ clouds: distance fields for the rounded square, the cloud and the check mark,
529
+ supersampled, plus a small PNG writer. The cloud stops short of white and parts
530
+ around the mark, so the mark stays the front-most thing in the picture. The
531
+ window icon, the `.icns` in the bundle, and the image at the top of this file
532
+ all come out of it, and each size is rasterised at its own resolution instead
533
+ of being scaled down from one bitmap, which is what keeps the 16px version
534
+ legible.
535
+
536
+ ```sh
537
+ flodo icon /tmp # /tmp/Flodo.iconset, ready for iconutil
538
+ ```
539
+
540
+ Its PNGs store pixels uncompressed — a few lines instead of a deflate
541
+ implementation — so `bundle-macos.sh` runs each one through `sips` on the way
542
+ into the `.icns`. The image at the top of this file is the 128px member, put
543
+ through the same pass:
544
+
545
+ ```sh
546
+ sips -s format png /tmp/Flodo.iconset/icon_128x128.png --out docs/images/icon.png
547
+ ```
548
+
549
+ ### macOS bundling
550
+
551
+ `scripts/bundle-macos.sh` builds `dist/Flodo.app`: the binary (optionally
552
+ universal), the icon, `macos/Info.plist` with the version stamped in, and an
553
+ ad-hoc signature.
554
+
555
+ `macos/Info.plist` is also linked into the binary's `__TEXT,__info_plist`
556
+ section by `build.rs`. An executable outside an `.app` has no `Info.plist`, and
557
+ a macOS process without one is treated as not Retina-capable — it renders at 1x
558
+ and is scaled up, which is why a plain `cargo run` build used to look soft.
559
+ Embedding the plist gives the loose binary the same bundle dictionary the app
560
+ has.
561
+
562
+ ### Releasing
563
+
564
+ Bump `version` in `Cargo.toml`, refresh `Cargo.lock`, commit, then tag that
565
+ commit:
566
+
567
+ ```sh
568
+ git tag -a v0.1.0 -m "Flodo v0.1.0"
569
+ git push origin v0.1.0
570
+ ```
571
+
572
+ The leading `v` is optional; `0.1.0` triggers the same workflow. The tag and
573
+ `Cargo.toml` have to agree — the workflow refuses to build otherwise, because
574
+ the binary reports `CARGO_PKG_VERSION` and would contradict the archive it
575
+ ships in.
576
+
577
+ A release can also be built from the Actions tab (Release → Run workflow), but
578
+ only for a tag that already exists: the workflow builds tags, it does not
579
+ create them. Pushing the tag is what normally starts it anyway.
580
+
581
+ This builds a universal macOS `.app` (arm64 + x86_64, ad-hoc signed) plus Linux
582
+ and Windows archives, and publishes them to a GitHub Release with
583
+ `SHA256SUMS.txt`. Tags containing a hyphen, such as `v0.1.0-rc.1`, publish as
584
+ pre-releases.
585
+
586
+ ## Built with
587
+
588
+ [egui](https://github.com/emilk/egui) ·
589
+ [eframe](https://github.com/emilk/egui/tree/master/crates/eframe) ·
590
+ [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) ·
591
+ [fontdb](https://github.com/RazrFalcon/fontdb) ·
592
+ [skrifa](https://github.com/googlefonts/fontations) ·
593
+ [global-hotkey](https://github.com/tauri-apps/global-hotkey) ·
594
+ [serde](https://serde.rs)
595
+
596
+ ## License
597
+
598
+ [MIT](LICENSE)
package/bin/flodo.cjs ADDED
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { spawn } = require('node:child_process');
5
+ const { existsSync } = require('node:fs');
6
+ const path = require('node:path');
7
+
8
+ function executable(platform, arch, root = path.join(__dirname, '..')) {
9
+ if (platform === 'darwin' && ['x64', 'arm64'].includes(arch)) {
10
+ return path.join(root, 'native', 'darwin', 'Flodo.app', 'Contents', 'MacOS', 'flodo');
11
+ }
12
+ if (arch === 'x64' && ['win32', 'linux'].includes(platform)) {
13
+ return path.join(root, 'native', platform, platform === 'win32' ? 'flodo.exe' : 'flodo');
14
+ }
15
+ throw new Error(`Unsupported platform ${platform}/${arch}. Flodo supports Windows x64, Linux x64 (glibc), and macOS Intel/Apple Silicon.`);
16
+ }
17
+
18
+ function launch(args) {
19
+ const binary = executable(process.platform, process.arch);
20
+ if (!existsSync(binary)) {
21
+ throw new Error('The native executable is missing. Reinstall the published flodo npm package.');
22
+ }
23
+ const gui = args.length === 0;
24
+ const macGui = gui && process.platform === 'darwin';
25
+ const child = spawn(macGui ? '/usr/bin/open' : binary,
26
+ macGui ? ['-a', path.resolve(binary, '..', '..', '..')] : args, {
27
+ // Keep the inherited environment, including FLODO_STATE_DIR and APPDATA,
28
+ // so this fork opens the legacy application's existing files.
29
+ env: process.env,
30
+ windowsHide: true,
31
+ detached: gui,
32
+ // A Windows GUI-subsystem executable needs pipes for its CLI output.
33
+ stdio: gui ? 'ignore' : ['inherit', 'pipe', 'pipe'],
34
+ });
35
+ child.on('error', (error) => {
36
+ console.error(`flodo: ${error.message}`);
37
+ process.exitCode = 1;
38
+ });
39
+ if (gui) {
40
+ child.unref();
41
+ } else {
42
+ child.stdout.pipe(process.stdout);
43
+ child.stderr.pipe(process.stderr);
44
+ child.on('exit', (code) => { process.exitCode = code ?? 1; });
45
+ }
46
+ }
47
+
48
+ if (require.main === module) {
49
+ try { launch(process.argv.slice(2)); }
50
+ catch (error) {
51
+ console.error(`flodo: ${error.message}`);
52
+ process.exitCode = 1;
53
+ }
54
+ }
55
+
56
+ module.exports = { executable };
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <!--
4
+ One source for both macOS builds:
5
+
6
+ * `build.rs` substitutes the version and embeds this file in the binary's
7
+ `__TEXT,__info_plist` section, so a plain `cargo run` or `cargo install`
8
+ build is a first-class macOS process rather than an anonymous executable.
9
+ * `scripts/bundle-macos.sh` substitutes the version and writes it to
10
+ `Flodo.app/Contents/Info.plist`, where it takes precedence.
11
+
12
+ NSHighResolutionCapable is the important one. Without it macOS renders the
13
+ window at 1x and scales the result up to the Retina backing store, which
14
+ makes every glyph and hairline look soft.
15
+ -->
16
+ <plist version="1.0">
17
+ <dict>
18
+ <key>CFBundleName</key><string>Flodo</string>
19
+ <key>CFBundleDisplayName</key><string>Flodo</string>
20
+ <key>CFBundleIdentifier</key><string>com.michellemayes.flodo</string>
21
+ <key>CFBundleExecutable</key><string>flodo</string>
22
+ <key>CFBundleIconFile</key><string>Flodo</string>
23
+ <key>CFBundlePackageType</key><string>APPL</string>
24
+ <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
25
+ <key>CFBundleShortVersionString</key><string>0.2.0</string>
26
+ <key>CFBundleVersion</key><string>0.2.0</string>
27
+ <key>LSMinimumSystemVersion</key><string>11.0</string>
28
+ <key>NSHighResolutionCapable</key><true/>
29
+ <key>NSSupportsAutomaticGraphicsSwitching</key><true/>
30
+ </dict>
31
+ </plist>
@@ -0,0 +1,128 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Resources/Flodo.icns</key>
8
+ <data>
9
+ 1+WVeTrxv6z5NJZsBd9b2V/yu9g=
10
+ </data>
11
+ </dict>
12
+ <key>files2</key>
13
+ <dict>
14
+ <key>Resources/Flodo.icns</key>
15
+ <dict>
16
+ <key>hash2</key>
17
+ <data>
18
+ ONGNXQePt50pUYTnTfzgnnR/2PIujlqma2m2Swxww1M=
19
+ </data>
20
+ </dict>
21
+ </dict>
22
+ <key>rules</key>
23
+ <dict>
24
+ <key>^Resources/</key>
25
+ <true/>
26
+ <key>^Resources/.*\.lproj/</key>
27
+ <dict>
28
+ <key>optional</key>
29
+ <true/>
30
+ <key>weight</key>
31
+ <real>1000</real>
32
+ </dict>
33
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
34
+ <dict>
35
+ <key>omit</key>
36
+ <true/>
37
+ <key>weight</key>
38
+ <real>1100</real>
39
+ </dict>
40
+ <key>^Resources/Base\.lproj/</key>
41
+ <dict>
42
+ <key>weight</key>
43
+ <real>1010</real>
44
+ </dict>
45
+ <key>^version.plist$</key>
46
+ <true/>
47
+ </dict>
48
+ <key>rules2</key>
49
+ <dict>
50
+ <key>.*\.dSYM($|/)</key>
51
+ <dict>
52
+ <key>weight</key>
53
+ <real>11</real>
54
+ </dict>
55
+ <key>^(.*/)?\.DS_Store$</key>
56
+ <dict>
57
+ <key>omit</key>
58
+ <true/>
59
+ <key>weight</key>
60
+ <real>2000</real>
61
+ </dict>
62
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
63
+ <dict>
64
+ <key>nested</key>
65
+ <true/>
66
+ <key>weight</key>
67
+ <real>10</real>
68
+ </dict>
69
+ <key>^.*</key>
70
+ <true/>
71
+ <key>^Info\.plist$</key>
72
+ <dict>
73
+ <key>omit</key>
74
+ <true/>
75
+ <key>weight</key>
76
+ <real>20</real>
77
+ </dict>
78
+ <key>^PkgInfo$</key>
79
+ <dict>
80
+ <key>omit</key>
81
+ <true/>
82
+ <key>weight</key>
83
+ <real>20</real>
84
+ </dict>
85
+ <key>^Resources/</key>
86
+ <dict>
87
+ <key>weight</key>
88
+ <real>20</real>
89
+ </dict>
90
+ <key>^Resources/.*\.lproj/</key>
91
+ <dict>
92
+ <key>optional</key>
93
+ <true/>
94
+ <key>weight</key>
95
+ <real>1000</real>
96
+ </dict>
97
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
98
+ <dict>
99
+ <key>omit</key>
100
+ <true/>
101
+ <key>weight</key>
102
+ <real>1100</real>
103
+ </dict>
104
+ <key>^Resources/Base\.lproj/</key>
105
+ <dict>
106
+ <key>weight</key>
107
+ <real>1010</real>
108
+ </dict>
109
+ <key>^[^/]+$</key>
110
+ <dict>
111
+ <key>nested</key>
112
+ <true/>
113
+ <key>weight</key>
114
+ <real>10</real>
115
+ </dict>
116
+ <key>^embedded\.provisionprofile$</key>
117
+ <dict>
118
+ <key>weight</key>
119
+ <real>20</real>
120
+ </dict>
121
+ <key>^version\.plist$</key>
122
+ <dict>
123
+ <key>weight</key>
124
+ <real>20</real>
125
+ </dict>
126
+ </dict>
127
+ </dict>
128
+ </plist>
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "flodo",
3
+ "version": "0.2.0",
4
+ "description": "Floating desktop to-do list with importance flags and local data storage",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Geozstevenzz/flodo.git"
9
+ },
10
+ "homepage": "https://github.com/Geozstevenzz/flodo#readme",
11
+ "bugs": "https://github.com/Geozstevenzz/flodo/issues",
12
+ "bin": { "flodo": "bin/flodo.cjs" },
13
+ "files": ["bin/", "native/", "docs/images/", "README.md", "LICENSE"],
14
+ "engines": { "node": ">=20" },
15
+ "os": ["win32", "darwin", "linux"],
16
+ "cpu": ["x64", "arm64"],
17
+ "scripts": {
18
+ "test": "node --test tests/launcher.test.cjs",
19
+ "prepack": "node scripts/check-native.cjs"
20
+ },
21
+ "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }
22
+ }