logseq icon indicating copy to clipboard operation
logseq copied to clipboard

Ctrl+Shift+V behaves the same as Ctrl+V

Open Devon22 opened this issue 3 years ago • 8 comments

What happened?

Ctrl+Shift+V behaves the same as Ctrl+V

Reproduce the Bug

Copy the same text and paste it with Ctrl+V and Ctrl+Shift+V to see the difference

Expected Behavior

Ctrl+Shift+V is supposed to paste the text into the same block, but it doesn't

Screenshots

No response

Desktop Platform Information

Windows7 Logseq 0.7.6

Mobile Platform Information

No response

Additional Context

No response

Devon22 avatar Jul 10 '22 17:07 Devon22

Also happened in 0.7.5 (WIN10).

WsinGithub avatar Jul 20 '22 02:07 WsinGithub

Also happened in 0.7.9 (win10)🙁

skydtrtzmr avatar Aug 08 '22 06:08 skydtrtzmr

There is a fail-back logic here. When HTML to markdown conversion fails, plain text format will be used. I'll check it.

andelf avatar Aug 08 '22 06:08 andelf

There is a fail-back logic here. When HTML to markdown conversion fails, plain text format will be used. I'll check it.

Thanks for checking! For me it happens in the cases that I copy and paste from Web pages. But Ctrl+Shift+V indeed pastes text into one block when copy from PDF.

skydtrtzmr avatar Aug 08 '22 08:08 skydtrtzmr

@skydtrtzmr I can not reproduce the buggy behavior. Could you provide some URL pages?

andelf avatar Aug 08 '22 13:08 andelf

@andelf Hi! I've tested on some pages and found that, this unexpected behavior seems to happen only when <p>...</p> exists in the corresponding html of target text. image But it won't happen if the html uses <br> to start a new line. Not sure. Need more tests.

skydtrtzmr avatar Aug 08 '22 13:08 skydtrtzmr

Example: https://policies.google.com/privacy?hl=en Happens when I want to copy multi-paragraph content involving <p>...</p> . image In this case, when I paste with ctrl+shift+v: image when I paste with ctrl+v: image

Another case: image image

skydtrtzmr avatar Aug 08 '22 13:08 skydtrtzmr

@skydtrtzmr Many thanks. This is caused by buggy HTML to markdown conversion and plain-text to markdown conversion logic.

andelf avatar Aug 08 '22 13:08 andelf

Hi There! 👋

We haven't seen any activity on this issue in a while :sleeping:, and we just wanted to make sure that it's still relevant. If you're still experiencing this issue, you might find it helpful to update to the latest version of Logseq. The latest version includes bug fixes and new features that may help to resolve this issue, and you can download it from our website. If updating to the latest version doesn't help, please let us know by adding a comment 💬. We're here to help!

If the issue has been resolved or is no longer relevant, that's great news! 🎉 We'll go ahead and close this issue to keep our backlog organized. Please note that this issue will be closed automatically in 20 days if there is no further activity. If you need more time to resolve the issue or provide more information, please just let us know by adding a comment.

Access additional Logseq 🚀 resources:

  • Forum: https://discuss.logseq.com
  • Blog: https://blog.logseq.com
  • Docs: https://docs.logseq.com

Thanks for your contributions to Logseq! If you have any other issues or feature requests, please don't hesitate to let us know. We always welcome pull requests too!

github-actions[bot] avatar Feb 05 '23 00:02 github-actions[bot]