Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.49k stars 170 forks source link

wish on "Duplicate lines" command : put the new lines above, not below the selected lines #5460

Closed victorel-petrovich closed 5 months ago

victorel-petrovich commented 5 months ago

Before duplication: image

After duplication:

Current behaviour: image

Desired behaviour: image

Why: Most of the times, the new lines are intended to be used somewhere more down in the text, so as a result of current behaviour, you are forced to waste more time to move lines more downwards yourself afterwards.

Might seem a minor thing, but... it's a little annoying inneficiency. I have noticed and noticed for several years ; I'd estimate about 80% of the times you want the new lines to be used down , not up.

(It's not an issue specific to CudaText; Notepad++, Geany and others I remember having same problem).

Alexey-T commented 5 months ago

Sublime works like you want. so it is worth to change it.

Alexey-T commented 5 months ago

Changed. will be in update.

Alexey-T commented 5 months ago

Pls test it in the release 1.212.1.4.

victorel-petrovich commented 5 months ago

@Alexey-T Just tested; seems to work fine! Thank you.