-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
Minor annoyances around $Node/Paths in scripts #77586
Comments
Tracked in #56402
You can drag node with Ctrl to add onready var. Still, dropping something should cancel current autocompletion. |
So is the intended behavior that $ should not be selected when double-clicking a node path in the editor? Has this been handled already by #46721 or does the default behavior still needed to be changed? I would love to tackle this one but I'm not sure where to start. |
IMO either double-clicking node path should not select $ or it should select % (i.e. it should be consistent). Note that this is discussed in #56402 As for where to start, it's probably somewhere in CodeEdit code or ScriptEditorPlugin. |
I think I was able to fix the bug mentioned above with the autocompletion not canceling when dragging and dropping into the editor. Should that be pushed as a separate PR before tackling the '$' selection issue? |
Yes. |
Godot version
4.0.2
System information
Windows 11
Issue description
Double clicking on
$MyNode
in the script editor will select the whole name including the "$".But double clicking on
%MyNode
(unique name) will select the name but will not include the "%".Dragging a node from the scene tree into the script editor brings up the property/method hint list, even though a "." has not been typed. Pressing enter appends "new()" even though this makes no sense as there is no period so it is just appending it directly to the node name:
$MyNodenew()
Steps to reproduce
Type
%MyNode
in a script and double click on it.Type
@onready var x =
in a script, drag a node from the scene tree, then press enter.Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: