Skip to content

Rule: should a full-document paste keep heading toc-ids? #700

Open

Description

@HMarzban

Question

Should a full-document paste keep each heading's toc-id?

Found in #520 (measured 2026-11-04). After ⌘A, ⌘C, ⌘V with real keys, every heading toc-id got a new value (4 of 4, 34 of 34). Every media keyId got a new value too (3 of 3). Both clients kept the same text, links, embeds and headings, with 0 errors.

Why it matters

  • Heading chats pair with their heading by toc-id. A new id leaves the old chat room without its heading.
  • ?id= links point at a heading by toc-id. A new id breaks those links.

Options

  1. Keep ids on paste when the source is the same pad and the id is not already in use. Chats and links survive a cut-and-paste of the whole document.
  2. Keep today's behaviour. A paste is new content, so it gets new ids. Document this.

Done when

  • The maintainer rules on option 1 or 2 in a comment here.
  • If option 1: a build issue exists, with a test proved by sabotage.

Ruled out of #520's scope on 2026-11-06 (maintainer ruling, decision 4).

Metadata

Metadata

Assignees

No one assigned

    Labels

    EditorToc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions