Bug 454489 - Duplicate Lines Up/Down shortcuts overwritten
Summary: Duplicate Lines Up/Down shortcuts overwritten
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: scripting (show other bugs)
Version: 22.04.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-27 16:18 UTC by cegfault
Modified: 2022-05-30 19:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cegfault 2022-05-27 16:18:08 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Select one or more lines
2. Ctrl+Alt+Up/Down
3. Multiple cursors activated instead of duplicating lines

OBSERVED RESULT
Multicursors has replaced an over-decade-long shortcut for duplicating lines

EXPECTED RESULT
Duplication of lines

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
For over a decade I have used Ctrl+Alt+Up/Down to duplicate lines.
It appears that as of 2022-03-10, [Multicursors](https://kate-editor.org/post/2022/2022-03-10-ktexteditor-multicursor/) has (VERY frustratingly) overwritten the shortcut. There is no shortcut now for duplicating lines.

This is so extremely frustrating that I have stopped using Kate temporarily (after over a decade!) because my default coding habits are now setting multicursors (which I don't care for nor want) instead of simply duplicating a line.

Acceptable fixes would be either: (a) allow a disable multicursors option to reset the shortcut, (b) set another shortcut for duplicate lines, or (c) allowing users to select/create a shortcut for duplicating lines.
Comment 1 Lothar 2022-05-27 19:00:46 UTC
I was was surprised und frustrated too that such long existing short cut is suddenly gone/changed.

But you can customize these  as you like. Contrary to restore to my old good known one, I use now Ctrl+. (dot) to duplicate down. Not sure why. Probably after some search what other editor use.
Comment 2 Waqar Ahmed 2022-05-28 07:10:48 UTC
> Acceptable fixes would be either: (a) allow a disable multicursors option to reset the shortcut, (b) set another shortcut for duplicate lines, or (c) allowing users to select/create a shortcut for duplicating lines

All this is possible from configure shortcut dialog.
Comment 3 Waqar Ahmed 2022-05-28 07:12:41 UTC
> There is no shortcut now for duplicating lines.

It was a difficult decision that I made after long discussions. We didn't have a lot of choice and finding a new shortcut is not easy when you are a library (you can't break apps)
Comment 4 Christoph Cullmann 2022-05-28 16:14:16 UTC
Yes, you can configure your own shortcut.

Naturally that is a one time extra effort for people used to it, but unfortunately there are no endless shortcuts available for use for the stuff and we decided that to make the multi cursor stuff more discover-able it made sense to alter this.
Comment 5 cegfault 2022-05-30 00:23:23 UTC
Well today I learned that I *can* override that shortcut, so that's resolved my issue.

I guess as a philosophical issue I'd still say breaking userspace is *always* a bad idea, but it is what it is at this point.  @Christoph - might I suggest that if you're going to do something like this in the future, at least post a blog or some other update on how to revert the change? I did try searching around first, and didn't see anything in the changelog or press release. At least letting people know how to modify/revert would have saved me hours of headache.

Most Kate users are not power users :)
Comment 6 Waqar Ahmed 2022-05-30 17:48:08 UTC
> didn't see anything in the changelog or press release. At least letting people know how to modify/revert would have saved me hours of headache.


I doubt you even found a changelog or a release post. The reason being most of us were too busy this time around to compile all the changes and write a blog about it. We need more people stepping in and help us with all that's going on in Kate, especially marketing and co.
Comment 7 Christoph Cullmann 2022-05-30 19:22:13 UTC
Naturally, inform users about any breaking change is a good thing.

The point is, somebody must do it.

I try to summarize some cool developments when I have time, unfortunately my time is lacking.

If somebody steps up to provide nicer release texts, that would be great, one can even just publish a blog post before/after each KDE Gear release to summarize such stuff, but for that we need help.

If I have the choice between actually fixing stuff and improving the code or writing blogs, I prefer the first.