-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
cut
command (ctrl+x
) deletes whole line even if nothing selected
#59441
Comments
Many editors have behaviors like this, i.e. copy/cut the whole line when nothing is selected. e.g. VSCode and JetBrains IDEs. |
Perhaps then a way to disable this behaviour? For me I rarely type anything in the script editor (rather using it as a separate screen), so this just causes an annoyance. |
Cut can be useful, so the answer to cripple the script editor in some way (by moving the default cut key) doesn't sound great to me. Since there is now a control for normal cut, perhaps adding a second shortcut for In that way I can unbind that shortcut, and still leave usual cut behaviour in place. |
I think there is also an important difference in godot from most editors. In godot you spend 90% of your time in other UI (inspector) whereas in VSCode you spent 90% of the time in the text editor. |
Another problem here is that when I accidentally cut something, I can press For me these are not huge issues but something I see every day at least a few times and breaks my immersion as I struggle to get Godot to do what I feel it should be doing. @BeayemX, I see you are downvoting all of my posts, is there some reason you believe this should not be a feature? |
Sure, the following explanations are just my opinion, no offense meant.
This is only true for people who are used to Emacs. For people who use VSCode or similar software, they would expect the behavior how it is currently implemented.
This feels more like a user error and while changing it may be beneficial to you, it certainly would cripple the experience for others.
I don't think adding a second keybinding for
This is just not true and heavily depends on the user. For me I would say that the percentages could be switched because I spend most of my time in Godot writing code.
I agree with this, but I don't think this has anything to do with the original issue and it should probably be made an issue of its own. Conclusion |
Thanks for the in depth reply. OK it makes sense that a lot of people want to keep their flow as similar to VSCode as possible. What about adding a single toggle somewhere in the editor settings which enabled or disabled this feature? |
I have made a pull request that solves this by adding a Project Settings checkbox that can disable this behaviour (it's on by default so no changes for most people).
If this is still an issue, make a separate bug report. You may tag me when doing so. |
Resolved by #90743 |
Godot version
v3.5.beta2.official [7a4f9df]
System information
Mac OSX (Intel 2019)
Issue description
When in the script editor, press
Ctrl+x
(Cmd+x
on mac).The whole current line will be deleted. This often leads to annoyances if you are working in
Emacs
asCtrl+x
is such a common keybinding.I often find myself accidentally deleting one line and then trying to run the game.
Steps to reproduce
When in the script editor, press
Ctrl+x
(Cmd+x
on mac).Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: