You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When filling the StringName parameters for Input.get_axis(...), after typing the bracket ( or forcing autocomplete with Ctrl+space, the list of action names will appear as expected for negative_action: StringName.
However, if you type the action name start like "mo" for "move_left", it will quickly switch to symbols starting with "mo" instead.
In order to enforce action name listing, you need to type an opening single/double quote '" first.
This is OK to distinguish strings from symbols, however my issue is that the autocomplete popup switches from strings to symbols while user is in the middle of typing.
This is disturbing as it feels like you can select the action name, if you're fast enough you can even start pressing up/down to navigate the results and suddenly the popup refreshes and sends you back to the top, with unrelated results. It should either:
a. show all matching results, both strings and symbols, to let user decide
b. or, from the moment the user types a non-quote letter, it switches to symbols. I assume it takes some loading time which explains the delay, but then we could just close the popup temporarily until we actually get the new results with symbols
I would go with a. personally as I often type names without quotes, but I'm also okay with b. which has the advantage of not showing strings if user really wants a variable, and user can always type a quote to show explicitly they want an action name.
Steps to reproduce
Make sure to add some actions to Project Settings, such as "move_left"
Create a script (I use extends CharacterBody2D to get some members starting in mo ready like motion_mode. Then Enter code in script:
func _physics_process(delta: float):
var move_x_intention := Input.get_axis(
After typing opening bracket, watch autocomplete popup open (if you missed it, retrigger with Ctrl+space)
Start typing the name of an action, e.g. "mo"
Notice how the action name list is replaced with symbols like "motion_mode"
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered:
I'd say this is appropriate, it can suggest a variable too, and it isn't checking for type compatibility, if you type without quotes you'd want without quotes, otherwise it'd be annoying when you actually want a variable or constant
Tested versions
System information
Godot v4.2.1.stable - Ubuntu 22.04.4 LTS 22.04 - X11 - GLES3 (Compatibility) - Mesa Intel(R) HD Graphics 4600 (HSW GT2) () - Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 Threads)
Issue description
When filling the StringName parameters for
Input.get_axis(...)
, after typing the bracket(
or forcing autocomplete with Ctrl+space, the list of action names will appear as expected for negative_action: StringName.However, if you type the action name start like "mo" for "move_left", it will quickly switch to symbols starting with "mo" instead.
In order to enforce action name listing, you need to type an opening single/double quote
'
"
first.This is OK to distinguish strings from symbols, however my issue is that the autocomplete popup switches from strings to symbols while user is in the middle of typing.
This is disturbing as it feels like you can select the action name, if you're fast enough you can even start pressing up/down to navigate the results and suddenly the popup refreshes and sends you back to the top, with unrelated results. It should either:
a. show all matching results, both strings and symbols, to let user decide
b. or, from the moment the user types a non-quote letter, it switches to symbols. I assume it takes some loading time which explains the delay, but then we could just close the popup temporarily until we actually get the new results with symbols
I would go with a. personally as I often type names without quotes, but I'm also okay with b. which has the advantage of not showing strings if user really wants a variable, and user can always type a quote to show explicitly they want an action name.
Steps to reproduce
extends CharacterBody2D
to get some members starting inmo
ready likemotion_mode
. Then Enter code in script:Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: