face-hh / griddycode

A code editor made with Godot. Code has never been more lit!
Apache License 2.0
1.82k stars 115 forks source link

Suggestion: place pointer inside of function call #25

Open Symmettry opened 8 months ago

Symmettry commented 8 months ago

When autocompleting a function it will put you at the end of the parenthesis

like doing

waf -> waffle() will put your cursor at the end so you type "waffle()1" instead of in the parenthesis of "waffle(1)", which is annoying

face-hh commented 8 months ago

Should be fixable by moving the caret a character backwards on function auto complete

Symmettry commented 8 months ago

aight lemme test

Symmettry commented 8 months ago

wait where do i do that

face-hh commented 8 months ago

settings.gd I believe, around the end in the "autocomplete" function

face-hh commented 8 months ago

There's no signal in Godot attached to CodeEdit that's called on autocomplete accept, so without a hacky method I doubt this is possible

Symmettry commented 8 months ago

yeah the only way i could think is one that’s very annoying to implement