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

Add a way to duplicate project from the software #741

Open
miniwark opened this issue Aug 2, 2020 · 4 comments
Open

Add a way to duplicate project from the software #741

miniwark opened this issue Aug 2, 2020 · 4 comments

Comments

@miniwark
Copy link

miniwark commented Aug 2, 2020

SUMMARY

The software do not allow to duplicate projects, either by a "Duplicate" or "Save As..." features.

  • This could be useful in case of "project from a template": for example for boards with the same form factor (like Arduino shields)
  • "Manual forking" to keep v1/v2/v3 ect. version of a board in their own project
SOLUTION

It's already possible to work around this outside the software by:

  • copy/paste a project folder
  • rename the folder
  • rename the main .lpp file
  • edit the main title of the Readme file
  • edit the name in the metadata file (preferably from menu: Project > Promerties > Name)

A "save As..." or "Duplicate" wizard would just do this automatically instead of manually.

PS: Alternately this sort of "forking" may be done with Git instead (with use of tags or branch names)

@ollelogdahl
Copy link

I'd like to contribute to the project. looking into this!

@ubruhin
Copy link
Member

ubruhin commented Oct 13, 2020

I think a "Save As..." would be the most intuitive variant (as it is well known from other programs), but probably also the most complicated one. We'd have to be very careful to really update the filepaths of all objects to avoid accidentally accessing the original project files after saving a projects to a new location.

Btw, I suggest to also assign a new UUID to the project (see class ProjectMetadata). The UUID has no clear technical functionality, but might be useful some day to distinguish between different projects.

I'd like to contribute to the project. looking into this!

That would be great! :)

@ollelogdahl
Copy link

Should this button be an option next to 'Save' option on both the Board Editor and the Schematic editor?

@miniwark
Copy link
Author

Should this button be an option next to 'Save' option on both the Board Editor and the Schematic editor?

I think the best place would be in the main Control Panel instead.

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

No branches or pull requests

4 participants