Skip to content

One-file neum: b bucket, notes like lists, escape menu with saves, light mode - #4

Merged
SaulDoesCode merged 3 commits into
mainfrom
claude/practical-wozniak-y9xdb4
Nov 1, 2026
Merged

SaulDoesCode merged 3 commits into
mainfrom
claude/practical-wozniak-y9xdb4

Conversation

@SaulDoesCode

@SaulDoesCode SaulDoesCode commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Back to the single src/main.rs, then built on your own version, in three commits:

  1. cd96e0f: revert to a44dc98. This removes everything from Byte sum mode, notes on the gematria channel, light mode and an escape menu #1 and Restore the bar's look and layout under the theme provider #3 (modules, tests dir, CI, docs).
  2. 61634f0: your main.rs exactly as you pasted it (gematria-channel notes, shift+enter remember, live search).
  3. 09b0be3: the additions, made in place in the same file and in its style:
    • b bucket: the middle letter cycles o → r → b. MEMORY_BYTES (the stub you had commented) indexes every memory by Σ(byte+1). Older memories get it filled in when they open. Your byte sums code is uncommented. In b, the byte story of the bar shows under the sums: length, mean, digits, roots, factors, pf reduction. 104,105 reads as bytes, and written bytes are looked up, not saturated.
    • Notes like lists (gematria channel):
      • Enter notes the alt name on the text, including when the text already exists, and now shows the results.
      • An empty bar plus an alt name shows everything the alt name was noted on (new get_noted_on).
      • Delete unlinks in the same direction Enter linked: rm_note(&l, &key).
    • Numbers on Enter look up that sum. !ev.modifiers == Modifiers::CONTROL parsed as (!mods) == CONTROL, so it never matched.
    • Memory as game saves: MEMORY is a swappable holder with the same begin_write/begin_read, so every call site is unchanged. Adds open_memory / close_memory. A memory that won't open no longer panics; the window comes up and Esc can open another.
    • Escape menu inside your pink box:
      • the memory's details: path, size, memories, lists, notes, last id, ids to reuse
      • a path field with open, close, backup, restore and repair
      • recent saves
      • light mode and compact-on-open toggles
      • a status line
        The buttons are control elements, so your tan control rule styles them.
    • Light mode is a second sheet (LIGHT) swapped over STYLE. No existing rule or element of yours changed. New CSS covers only the new classes.
    • Settings are a small JSON file (~/.config/neum/settings.json, or NEUM_CONFIG): light, compact, last memory, saves.
    • Tests in #[cfg(test)] mod tests at the bottom of main.rs:
      • sums and tokens, AVX2 against scalar
      • byte sums and story
      • the memory end to end: lists, notes, forget, backup/restore, swapping and closing saves
      • the saves list

cargo test: 5 passed. Builds with no warnings. Not checked visually: this container can't render the window.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9xKZd6m8irSsnZNnbkucs

Restores every file to exactly how it was at a44dc98 (before the Claude
changes). Cargo.lock goes back to that commit too, which also drops the
tokio 1.54.1 bump from #2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9xKZd6m8irSsnZNnbkucs
…ber, live search

Saul's own version of main.rs, committed as given.

Claude-Session: https://claude.ai/code/session_01Q9xKZd6m8irSsnZNnbkucs
- the middle letter cycles o -> r -> b; MEMORY_BYTES indexes every memory by
  byte sum (filled in on open for older memories); in b the byte story of the
  bar shows under the sums, and 104,105 reads as those bytes
- gematria channel notes mirror lists: enter notes the text on (or the alt name
  on it) even when the text already exists and shows the results, an empty bar
  shows everything the alt name notes, delete unlinks the same way enter linked
- numbers on enter look up that sum (the ctrl check was !mods == CONTROL)
- the memory can be opened, swapped and closed at run time; one that won't open
  no longer panics
- escape menu: the memory's details, path to open, close, backup, restore,
  repair, recent saves, light mode, compact on open; settings kept as json
- light mode is a second sheet over STYLE; STYLE itself is unchanged
- tests at the bottom of main.rs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9xKZd6m8irSsnZNnbkucs
@SaulDoesCode SaulDoesCode changed the title Revert to a44dc98: undo the changes from #1 and #3 One-file neum: b bucket, notes like lists, escape menu with saves, light mode Nov 1, 2026
@SaulDoesCode
SaulDoesCode marked this pull request as ready for review November 1, 2026 06:41
@SaulDoesCode
SaulDoesCode merged commit 36d79af into main Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants