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

Allow copy-pasting property values by hovering them in the inspector and pressing Ctrl + C / Ctrl + V #1504

Closed
Olaf-007 opened this issue Sep 13, 2020 · 9 comments
Milestone

Comments

@Olaf-007
Copy link

Describe the project you are working on:
Multiple projects.

Describe the problem or limitation you are having in your project:
In my projects I ofthen have to align two nodes (or more) with the same propertys (e.g. aligning multiple nodes to the same position). So what I do: I go and copy the x-coordinate and paste it in the next object. Then I go back and copy the y-coordinate ... paste it ... z-coordinate ... paste it. UUfff!
Another example: I have two Buttons and create three custom_styles for normal, hover and pressed. I would like to quickly share these StyleBoxes with the other button, so what do I do: I save all three StyleBoxes in the file directory and drop them into the Button. UUfff, this takes a lot of time espacially when you want to try sth. out quickly.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
This is the solution I propose which is inspired by a feature in Blender:
When hovering a value inside the inspector, the user can press CTRL+C so without clicking the value is copied.
Then the user hoveres the property he wants to past in and presses CTRL+V (optionally the user has to press the property to not exidentally drop sth when not focussing on the mouse)
Here is how it works:
Improvment

And there could be even more: hovering a property and pressing Shift+C could copy the property name or path so the user can insert it directly into his code. (Imagine such long ones as subsurf_scatter_enabled)

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
If you have more questions on this, please ask :)

If this enhancement will not be used often, can it be worked around with a few lines of script?:
This enhancement will be used often because it increases the workflow dramatically.

Is there a reason why this should be core and not an add-on in the asset library?:
This is a workflow speedup and huge comfortability feature. This should be part of the major engine.

@Calinou Calinou changed the title Copy and paste via hovering properties. Allow copy-pasting property values by hovering them in the inspector and pressing Ctrl + C / Ctrl + V Sep 13, 2020
@Calinou
Copy link
Member

Calinou commented Sep 13, 2020

And there could be even more: hovering a property and pressing Shift+C could copy the property name or path so the user can insert it directly into his code. (Imagine such long ones as subsurf_scatter_enabled)

I would use Ctrl + Shift + C for that instead. Shift is rarely used with a key alone as a modifier for an one-time action. See also #655.

@Jummit
Copy link

Jummit commented Jan 14, 2021

Maybe the same could be done with project and editor settings, they are a pain to copy too.

@me2beats
Copy link

me2beats commented Mar 1, 2021

I just wanted to create a similar proposal. My idea was that we could just select the property with mouse click, say size, then Control+c, then select the target property and then Control+V.
I also like the idea of ​​copying a property under the mouse.

This way you could easily copy values ​​for example from size to min_size or from size_flags_horizontal to size_flags_vertical or even properties from one node to another.
That would be super convenient.

Wondering if there are such plugins?
would be handy for reference

@me2beats
Copy link

me2beats commented Mar 1, 2021

Hm there are Copy Params and Paste Params in EditorShortcuts, PropertyEditor section.
But it seems it works a bit strange. Need to delve into this
copy_params

UPD: Oh this seems to copy all properties
And I need to copy only single property/parameter.

@KoBeWi
Copy link
Member

KoBeWi commented Aug 26, 2021

This was basically implemented by godotengine/godot#39404, but you need to click property name to use the shortcut. Is that enough to close the proposal?

@elvisish
Copy link

This was basically implemented by godotengine/godot#39404, but you need to click property name to use the shortcut. Is that enough to close the proposal?

I don't think it does currently work unless I'm mistaken, I can even select the header of the property, but copy/pasting just copy/pastes the entire node.
image

@KoBeWi
Copy link
Member

KoBeWi commented Oct 22, 2021

It's available only in 4.0

@elvisish
Copy link

It's available only in 4.0

sniff :'(

@Calinou
Copy link
Member

Calinou commented Nov 2, 2021

Closing, as this was implemented by godotengine/godot#39404.

@Calinou Calinou closed this as completed Nov 2, 2021
@Calinou Calinou added this to the 4.0 milestone Nov 2, 2021
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

6 participants