Skip to content

Copy button no longer copies content after changing code block contents #22

@Wouter-M

Description

@Wouter-M

Logseq version: 0.10.13
Copy Code plugin version: 1.2.0

Steps to reproduce:

  1. Create a code block, containing for example:
import os

something = "old code"
  1. Click the copy button on the block
  2. Establish that it copied correctly by pasting in another text editor
  3. Copy a random piece of text to the clipboard from anywhere, e.g. the text "some random stuff"
  4. Change the code block in logseq to, for example:
import os

something = "new code"
  1. Click the copy button again
  2. Paste again in an external text editor

Observed behavior
The second click on the copy button did not copy anything to the clipboard. When pasting in the external editor (step 6), the text from step 4 appears ("some random stuff").

It appears, the copy button does not do anything, until after a restart of logseq.

Expected behavior
Clicking the copy button on the code block in logseq, should copy the current text in the code block to the clipboard at all times.

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