Automattic / Automattic/simplenote-macos
Incorrect Text Cursor Location
- Dominant language
- Swift
- Stars
- 1.6k
- Forks
- 172
- Avg merge
- 11h 17m
- Merged PRs (30d)
- 3
Description
This is affecting me from creating notes effectively.
### Expected
Navigating a note would show the text cursor in the correct location and show line breaks properly.
### Observed
In certain scenarios, typing in a line break doesn't display correctly and shows the text cursor in the wrong location so that when you next type, it causes the whole note to shift unusually.
In the example I've attached to this bug report, I go to the beginning of a line and type the Return key. The text cursor then shifts down to the next line (leaving the text on its original line). When I start to type again, the text cursor jumps back to the original line and and the text starts typing in front of the original line selected.
(See video 1 attached)
The same issue also causes unexpected behaviour when handling lists.
(See video 2 attached).
### Reproduced
1) Open a note
2) Go to the end of a line and type the Return key
3) As the bug isn't always reproducible, if error doesn't occur, continue to use note until error occurs (usually within a couple of minutes)
### My Details
Apple | MacBook M1 | macOS Sonoma 14.0 | Simplenote 2.19
https://github.com/Automattic/simplenote-macos/assets/66619235/559263a3-c7b2-4e2b-b6b0-12a06e2e9a90
https://github.com/Automattic/simplenote-macos/assets/66619235/67c6d356-2f32-4ba1-952e-274b1fc13354
Contributor guide
Research direction
Start by reproducing the issue in an open note using the Return key at the end or beginning of a line, then exercise list editing as shown in the attached videos. Trace the macOS note editor's cursor and line-break handling; done means repeated editing keeps the cursor, text, line breaks, and lists in their expected locations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- desktop-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100