Bug 391450 - Option to disable drag and drop text
Summary: Option to disable drag and drop text
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-05 18:58 UTC by jammer321
Modified: 2019-07-08 17:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jammer321 2018-03-05 18:58:08 UTC
I never intend to use text drag and drop, but I frequently unintentionally move text while attempting to highlight text.  A check box in options to disable this feature globally would be a big improvement.

This is specific to moving highlighted text, not dragging and dropping any other type of object.

I'm not alone in this. This option does exist in other text editors.  Example: https://www.live2tech.com/turn-off-text-drag-drop-word-2013/  It certainly shouldn't be off by default as many people prefer it to cut and paste, but there are people that almost never cut and paste and very frequently copy and paste and moving the text on accident is a big inefficiency.
Comment 1 Christoph Cullmann 2019-05-19 15:05:41 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann
Comment 2 Thomas Schöps 2019-07-08 17:19:46 UTC
Git commit c0321472330bfdeb14bf08fe4028a8eb8dfbd7fa by Thomas Schoeps.
Committed on 08/07/2019 at 17:19.
Pushed by thomassc into branch 'master'.

Add setting to enable/disable text drag-and-drop (on by default)

Summary:
This change adds a setting to enable or disable the ability to move the selected text by drag-and-drop. It is on by default, which means the default behavior is not changed. Disabling this setting is useful for people like me who generally use Ctrl-X/V for moving text. For those, the drag-and-drop is never intended, but sometimes triggered accidentally, so it is good to be able to remove this pitfall.

Test Plan: I tested it manually.

Reviewers: #ktexteditor, cullmann

Reviewed By: #ktexteditor, cullmann

Subscribers: ahmadsamir, dhaumann, cullmann, kwrite-devel, kde-frameworks-devel

Tags: #kate, #frameworks

Differential Revision: https://phabricator.kde.org/D22315

M  +7    -0    src/dialogs/editconfigwidget.ui
M  +3    -0    src/dialogs/katedialogs.cpp
M  +1    -0    src/utils/kateconfig.cpp
M  +6    -0    src/utils/kateconfig.h
M  +2    -2    src/view/kateviewinternal.cpp

https://commits.kde.org/ktexteditor/c0321472330bfdeb14bf08fe4028a8eb8dfbd7fa