Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to drag and drop text in the script editor with the mouse #3488

Closed
Looky1173 opened this issue Oct 31, 2021 · 5 comments
Closed

Comments

@Looky1173
Copy link

Describe the project you are working on

This feature is not tied to a particular/specific use case of the Godot engine as it would benefit all users who make use of the built-in script editor.

Describe the problem or limitation you are having in your project

To rearrange text in the script editor one has to select it, copy it, move the cursor to the desired location, and finally paste it. This can become quite cumbersome to do especially for people who are limited to (primarely) using one hand to navigate the editor/engine.

Plus there are users, like me, who only have 1 fully working hand, so we try and minimize the need to swap between mouse and keyboard as doing that is slow.

The quote above is from this proposal that has been closed as this repository became the centralized way to propose Godot features/enhancements, and hasn't been reopened since. This shows that this problem concerns accessibility too and should be seriously considered.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

To overcome the problem above, a feature that allows users to select, drag, and drop text withing the editor should be added. It is a standard feature present in most text editors therefore it would benefit all users. Furthermore, such a feature would enhance the core experience of the built-in script editor and would make the Godot engine more accessible.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Here is a GIF from the original closed issue that demonstrates this feature:
peek 2018-03-31 09-19

If this enhancement will not be used often, can it be worked around with a few lines of script?

This would be a core feature of the Godot engine and, as far as I'm aware, cannot be worked arround. Besides, it most likely would be used on a regular basis by the majority of users who use the built-in script editor.

Is there a reason why this should be core and not an add-on in the asset library?

This feature is about improving the usability and accessibility of the built-in script editor, thus it should be core.

@Calinou

This comment has been minimized.

@Looky1173

This comment has been minimized.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 1, 2021

This was recently (re)implemented for LineEdit: godotengine/godot#54339
If the PR gets merged, we could add it to TextEdit in a similar way.

@Calinou
Copy link
Member

Calinou commented Jan 11, 2022

This was implemented in master by godotengine/godot#55294, closing. (This can't be easily backported to 3.x without a complete rewrite of the feature.)

@Calinou Calinou closed this as completed Jan 11, 2022
@Calinou Calinou added this to the 4.0 milestone Jan 11, 2022
@ConteZero
Copy link

This was implemented in master by godotengine/godot#55294, closing. (This can't be easily backported to 3.x without a complete rewrite of the feature.)

A backport to 3.x is available in this pull request
godotengine/godot#55355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants