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

enhancement: copy resources #699

Open
sjvudp opened this issue Dec 18, 2020 · 0 comments
Open

enhancement: copy resources #699

sjvudp opened this issue Dec 18, 2020 · 0 comments

Comments

@sjvudp
Copy link

sjvudp commented Dec 18, 2020

When creating similar resources, on could edit (in configure context) the whole file using the editor to copy and then modify the desired resource.
As an alternative one could first show the resource to copy, and then re-create it with a new name and parameters adapted.

Both do not look like a good solution; therefore I suggest (for configure context):
As just copying a resource with parameters unchanged may violate some uniqueness restrictions, a command "copy resource" is problematic; instead extend the edit command for "edit [copy] *resource".
That command would create a new resource copying resource with _copy (or -copy) being appended to the original resource name, and it will start the editor (just as edit would do) to allow changing the resource name and the parameters as intended.
When adding the optional xml parameter, the XML version of the resource would be presented in the editor instead, so:
"edit [xml] [copy] ..."
Possibly also:
"edit [xml] [copy] changed"

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

2 participants