appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[Question] Support “Shift+CMD+ArrowKey” to select to end of line (not end of paragraph)

Open StroeAndreX opened this issue 6 months ago • 2 comments

Currently, pressing Shift + CMD + ArrowKey selects all the way to the end of the current paragraph, which can be much farther than the visible line. I’d like it to stop at the end of the line instead

Does the editor already include a built-in “select to end of line” command? If not, what’s the best way to add one in the codebase?

StroeAndreX avatar May 26 '25 22:05 StroeAndreX

+1 on macOS the current behaviour goes against platform norms

iockat avatar Jun 03 '25 06:06 iockat

I am able to reproduce the issue, the issue mainly occurs when you copy paste a paragraph into the Editor that has newlines. The pasted lines are still considered as a single text node, after you press return key anywhere the existing text is broken into two text nodes and then it supports the Shift + CMD + Arrow Key for selecting the entire line. The issue is likely with the paste logic in the editor.

MayurSMahajan avatar Jun 04 '25 05:06 MayurSMahajan