QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

FR: Cursor should stay on the same line when double click to select the whole line

Open gerroon opened this issue 6 years ago • 2 comments

Hi

It would be very nice if the cursor stays on the same line when the user double clicks to select a whole line, ideally at the end of the selected line.

The issue is that atm the cursor jumps to the next line, so when you select the whole line with double (or multi click) click and want to replace the text by typing over, your text will start in the next line.

It is very easy to demonstrate this issue.

(The user is trying to replace the file name by typing over that line so he/she does...)

  • Create a new note (assuming the note name will be generated automatically)

  • Select the name line (first line) by double clicking on the name line text until whole line is fully selected

  • Start typing

As you see, the typing starts happening on the "========================" line, not on the actual name line

I can repeat this issue with all platforms and default settings. I doubt this is a bug, just an overlooked issue or a the editor's limitation

thanks

gerroon avatar Jan 29 '19 20:01 gerroon

Interesting find, I didn't even notice. It's the way the http://doc.qt.io/qt-5/qplaintextedit.html behaves and I don't see an easy way to change that.

pbek avatar Jan 29 '19 21:01 pbek

Yeah I figured that it either slipped or never came across by the devs. It is a minor annoyance but not a deal breaker for sure.

gerroon avatar Jan 30 '19 00:01 gerroon