Skip to content

Save as wipes undo history #2326

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

Open
3 tasks done
lmoellendorf opened this issue Jan 4, 2024 · 0 comments
Open
3 tasks done

Save as wipes undo history #2326

lmoellendorf opened this issue Jan 4, 2024 · 0 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@lmoellendorf
Copy link

lmoellendorf commented Jan 4, 2024

Describe the problem

Using "Save as..." to save a duplicate the original sketch, closes the original sketch and opens the newly saved one.

This wipes the undo history of the original sketch.

The use case is:

I edit an existing sketch and save the changes. Then I realize I would like to have the original sketch and also keep the latest changes. Natural thing to do is:

  1. Save a copy of the current state of the sketch, then
  2. undo the changes in the original one and
  3. save the original one

To reproduce

  1. Open and edit a saved sketch
  2. Use "Save as..." to duplicate the sketch
  3. Try to undo the edits to the original sketch

Expected behavior

The orginal sketch should stay open and its undo history preserved.

Arduino IDE version

2.2.2-nightly-20240104

Operating system

Linux

Operating system version

6.1.46-gentoo-x86_64

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@lmoellendorf lmoellendorf added the type: imperfection Perceived defect in any part of project label Jan 4, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Jan 5, 2024
@kittaakos kittaakos added type: enhancement Proposed improvement and removed type: imperfection Perceived defect in any part of project labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants