Skip to content

Repeated captures into a Live Preview table cell fail with a CodeMirror RangeError #445

Closed

Description

@chhoumann

Capturing timestamps repeatedly into a Markdown table cell in Live Preview fails after the first capture.

Found during the PR #442 verification (V-442) on Obsidian 1.14.4, Linux. Put the cursor in a table cell in Live Preview, then run Capture timestamp, then a segment capture (10 s or 20 s). The first capture lands. The next ones do not persist, and the console shows Obsidian's CodeMirror error RangeError: Applying change set to a document with the wrong length.

Likely area: how the capture inserts text while Live Preview's table widget owns the cell (the editor's document length differs from what the insert assumes). Reproduce with the V-442 driver live-table-compare.mjs before changing anything.

Severity: low to medium. Capturing into tables in Live Preview is a plausible workflow, and the later captures are silently lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions