Grilling: Explicit Rename = retitle + move #60

Closed
opened 2026-10-02 15:46:36 +02:00 by AlexKucera · 1 comment
Owner

Part of #18

Question

What does "Explicit Rename moves the folder" mean for the Title line? Rename = retitle + move (dialog asks the new Title, rewrites/inserts the # Title line, folder moves to the new slug), or rename = Post ID only (freeform slug input, Title edited as plain text)? What rule applies on slug collision at rename?

[Generated by AI]

Part of #18 ## Question What does "Explicit Rename moves the folder" mean for the Title line? Rename = retitle + move (dialog asks the new Title, rewrites/inserts the `# Title` line, folder moves to the new slug), or rename = Post ID only (freeform slug input, Title edited as plain text)? What rule applies on slug collision at rename? [Generated by AI]
AlexKucera added the wayfinder:grilling label 2026-10-02 15:46:36 +02:00
AlexKucera self-assigned this 2026-10-02 15:46:37 +02:00
Author
Owner

Resolution

Rename = retitle + move. The dialog asks for the new Title (not a slug); on confirm Museion rewrites (or inserts) the # Title line as the first non-empty line of post.md, then moves the folder to the new slug. The file remains post.md. Title ↔ Post ID stay coherent — the list never shows a slug disagreeing with the title.

  • Editing the title line as plain text in the editor does not move the folder: the Post ID is durable identity (CONTEXT.md), only explicit Rename moves it.
  • Slug algorithm (shared with first save, one function): lowercase, diacritic-fold (NFD, strip combining marks), strip punctuation, whitespace → hyphens, keep CJK codepoints, cap ~80 chars.
  • Collision at rename (and at first save): append -2, -3… with a case-insensitive existence check against posts/.

[Generated by AI]

## Resolution **Rename = retitle + move.** The dialog asks for the new **Title** (not a slug); on confirm Museion rewrites (or inserts) the `# Title` line as the first non-empty line of `post.md`, then moves the folder to the new slug. The file remains `post.md`. Title ↔ Post ID stay coherent — the list never shows a slug disagreeing with the title. - Editing the title line as plain text in the editor does **not** move the folder: the Post ID is durable identity (CONTEXT.md), only explicit Rename moves it. - Slug algorithm (shared with first save, one function): lowercase, diacritic-fold (NFD, strip combining marks), strip punctuation, whitespace → hyphens, keep CJK codepoints, cap ~80 chars. - Collision at rename (and at first save): append `-2`, `-3`… with a **case-insensitive** existence check against `posts/`. [Generated by AI]
Sign in to join this conversation.