#+BEGIN_QUOTE....#+END_QUOTE strange copy/paste behavior
Nobody has claimed this yet.
- 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
- On a page press "<" and select "quote"
- Inside the quote place a long text that goes down a few screens
- Copy into clipboard a line of text from somewhere (select a line of text and press ctrl+c)
- Go to the first screen of the quote and paste the copied line (place a cursor inside the quote text and press ctrl+v)
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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