Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request: New script button

Open
#309 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by tracing how the editor currently resets or creates scripts, using the editor entry point described in the issue. Review help.html as the suggested documentation alternative, then verify that the new button creates a blank script with an appropriate program name without requiring a page refresh.

Written by the indexing model from the issue text.

Description

Feature

Add a 'new' button that create's a new blank script in the editor

Issue

It isn't obvious how to start a new script in the editor. I can select all my code and delete, but that will keep the program name in the window. I can also refresh the page which offers a warning before resetting the editor to it's default status, but this is a less common UX eg forms often maintain data on refresh and the MakeCode editor also does, so we should look to implement a similar feature.

Alternatives

We can refresh the editor to create a new script or delete code, so we have options, maybe we call this out more in help.html?

Dominant language
JavaScript
Stars
201
Forks
126
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bbcmicrobit/PythonEditor

All issues in bbcmicrobit/PythonEditor

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.