logseq / logseq/logseq

#+BEGIN_QUOTE....#+END_QUOTE strange copy/paste behavior

Open
#6,053 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/bug can-be-reproduced editor:copy-paste format:org-mode
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

What happened?

When I'm editing a long text inside a quote,

#+BEGIN_QUOTE
...
long text here
...
#+END_QUOTE

and paste a text into the quote, focus moves automatically to the end of the quote.
If my text inside the quote is a few screens long I have to scroll back up and find a place where I was just editing.

Reproduce the Bug
  1. On a page press "<" and select "quote"
  2. Inside the quote place a long text that goes down a few screens
  3. Copy into clipboard a line of text from somewhere (select a line of text and press ctrl+c)
  4. Go to the first screen of the quote and paste the copied line (place a cursor inside the quote text and press ctrl+v)
  5. Observe that it moved you to the end of the quote, a few screens down
Expected Behavior

After pasting a text the focus stays where the pasted text is, where the cursor is, where I was just editing.

Screenshots

No response

Desktop Platform Information

Windows 10, Logseq 0.7.6

Mobile Platform Information

n/a

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the paste behavior in a long #+BEGIN_QUOTE...#+END_QUOTE block using the listed steps on the desktop editor. Trace the quote editing and paste entry points to determine why focus moves to the block end; done means the cursor remains at the pasted text location.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.