Advanced duplicate ctrl+d

Solved bugs are moved into this topic...
Locked
wibotwi
Posts: 11
Joined: 26.04.2020 08:56

Advanced duplicate ctrl+d

Post by wibotwi »

I first saw it in IntelliJ IDEA somewhere in 2006
Notepad++ did not have it originally, but they added it.
Can you also add it to CudaText?

The idea is:
1) no selection -> duplicate current line
2) some text is selected -> duplicate the selected text


Thank you
wibotwi
Posts: 11
Joined: 26.04.2020 08:56

Post by wibotwi »

Oh. I found out existing keybinding called "advanced duplicate".
I deleted ctrl+d from original and mapped it to this guy.
And now it works as I want it to work.

Why you need two actions? And why most obvious action is not default?
wibotwi
Posts: 11
Joined: 26.04.2020 08:56

Post by wibotwi »

ups
just found out another strangeness, move line up is alt+up instead of ctrl+shift+up
yes, it all can be fixed in settings, but why CudaText wants to be so unfriendly to newcomers?
wibotwi
Posts: 11
Joined: 26.04.2020 08:56

Post by wibotwi »

Another problem: links are highlighted, but double clicking on them does not open browser.
I tried everything: alt+click, alt+double+click, same with ctrl, same with shift
nothing opens link :(
wibotwi
Posts: 11
Joined: 26.04.2020 08:56

Post by wibotwi »

found some open URL plugin, it does not work :(
it opens urls on first mouse click, as a result you cannot select text anymore or edit it, you immediately redirected to browser :(
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

"Open URL" plugin: this is valid report. better to handle double click. plugin is changed. it uses dbl-click now. use "plugins / adddon manager / update".

hotkey for Move-line-up/down. I agree. will talk with @kvichans if we will change them.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

"duplicate line (advanced)" is not default. it is plugin based, so does not work without python.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

hotkey for Move-line-up/down. Ctrl+Shift+Up/Down is bisy for other work. so won't change hotkeys.
wibotwi
Posts: 11
Joined: 26.04.2020 08:56

Post by wibotwi »

More questions:

1) How to make F3 continue to search from top of file when bottom of file is reached?
2) How to force single instance of CudaText? Now when I click in Windows "open with" and select CudaText.exe -> it opens new CudaText window. And the most frustrating -> it loads previous session into it. So some files I now have opened twice in old and in new window. This makes a lot of confusion.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

(I don't do replies to user questions. it is not easy task. pls someone see it.)
Locked