Skip to content

Opening a new sketch doesn't replace the default empty window #1117

Open
@SableRaf

Description

@SableRaf
Collaborator

Most relevant area for this enhancement?

PDE

Feature to enhance

Sketch window behavior on startup

Desired enhancement

When starting Processing and immediately opening a sketch (like an example or a recent sketch), the initial sketch window remains open even though it wasn't used.

When opening an existing sketch from the Examples browser or the File menu, the default empty sketch window (sketch_XXXXXa) should automatically close or be reused, instead of remaining open in the background.

Image

Potential benefits

It makes the interface feel more intentional and avoids unnecessary windows.

Possible drawbacks

No response

Additional context

No response

Would you like to work on the issue?

This can be assigned to a contributor

Activity

added
help wantedExtra attention is needed
pdeProcessing Development Environment
on May 22, 2025
toniab

toniab commented on Jun 20, 2025

@toniab

Hello Raf,

Thanks for pointing out this behavior.

When opening an example from the example list, the current behavior could be helpful to those opening the example simply as a potential reference for their sketch.

However, I could see other situations where the extra blank window feels redundant.
If opening Processing by clicking on a sketch.pde file in your file browser or by clicking on a "view in processing" web link then I expect Processing to open straight to that sketch and that sketch only, and would expect to add a new blank sketch myself if I want one.

What do you think?

SableRaf

SableRaf commented on Jun 20, 2025

@SableRaf
CollaboratorAuthor

Good points! That distinction between opening an example vs. launching a sketch directly makes a lot of sense.

Maybe @Stefterv will have some thoughts on how we could handle these cases differently.

Let us know if you feel like digging into it. No pressure to do so though :)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededpdeProcessing Development Environment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @SableRaf@toniab@Stefterv

        Issue actions

          Opening a new sketch doesn't replace the default empty window · Issue #1117 · processing/processing4