pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.68k stars 413 forks source link

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

Open gerroon opened 5 years ago

gerroon commented 5 years ago

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...)

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

pbek commented 5 years ago

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.

gerroon commented 5 years ago

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.