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

Generate functions in external editors #20024

Closed
rcorre opened this issue Jul 7, 2018 · 1 comment
Closed

Generate functions in external editors #20024

rcorre opened this issue Jul 7, 2018 · 1 comment

Comments

@rcorre
Copy link
Contributor

rcorre commented Jul 7, 2018

Godot version:

3.0.4.stable.custom_build

OS/device including version:

Linux desktop-arch 4.17.2-1-ARCH #1 SMP PREEMPT Sat Jun 16 11:08:59 UTC 2018 x86_64 GNU/Linux

Feature Request:

It would be nice if the "Create Function" option from the signal connection dialog worked with external editors.
I use neovim, and when I wire a new connect with "Create Function" enabled, it opens the script with neovim but there is no new function definition.

One flexible solution I could think of is adding a {generated_text} external editor param.
If there are concerns about passing multiline text as a cli flag, then {generated_text} could be the path to a temp file containing the generated function, or the text could be passed on STDIN.

Another is to append and save the generated text to the file before opening the editor. This could be optional as it is not the current behavior.

@Calinou
Copy link
Member

Calinou commented Nov 6, 2020

Duplicate of #41283.

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

3 participants