Skip to content

Conversation

@jbolcer
Copy link
Owner

@jbolcer jbolcer commented Jun 10, 2025

Feature: Restore Last Sketch on Startup
This pull request implements a usability enhancement for the Processing IDE: automatically reopening the last sketch that was open when the program was last closed.

Description
When the IDE is launched, it checks the preferences file for a saved last.sketch.path. If found and valid, it restores and opens that sketch instead of starting with a blank/new one. This mimics the behavior of many modern IDEs and improves the developer experience.

Key Changes
Added logic to Base.java to read and validate the last sketch path on startup.

Updated handleOpen() to save the current sketch path to preferences upon opening.

Added debug logs to assist with troubleshooting.

Why This Matters
I believe this feature aligns with how most users expect their development tools to behave. By preserving context between sessions, it improves workflow continuity and reduces friction when working on ongoing projects.

Notes
This was developed independently in my fork since the upstream issue has not yet been assigned.
The original issue for this enhancement can be found here: #1132

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

Successfully merging this pull request may close these issues.

1 participant