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

ENH: Copy / Paste from tree? #218

Open
tangkong opened this issue Oct 18, 2023 · 0 comments
Open

ENH: Copy / Paste from tree? #218

tangkong opened this issue Oct 18, 2023 · 0 comments

Comments

@tangkong
Copy link
Contributor

Expected Behavior

It would be nice to be able to copy portions of a checkout and paste it into another. Say if one active checkout had a large ProcedureGroup we wanted but none of the other bits, we could copy it specifically into another checkout.

This could be only valid for groups and comparisons, maybe?

This would be good for scripts that generate checkouts, so we could combine those into other bigger better checkouts.

Current Behavior

There is no support for this currently.

Possible Solution

I don't actually know how copy/pasting complex data structures works in other apps. We could save the relevant dataclass to an internal "clipboard". We'd then have to add some sort of paste method, which knows where to drop this dataclass inside a given group. Maybe this requires a separate dialog?

Are there places where the paste location is ambiguous? Are there configurations that have comparisons in two different places/collections?

Maybe this could also copy the serialized version for pasting into saved checkouts? This seems easy but might be too confusing.

Context

Thought about this while writing a script that might take a pmgr configuration and make a checkout.

Your Environment

pcds-5.7.3, atef-1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant