Skip to content

Creating new Vars, Lists, & Custom Blocks with "Insert Blocks by Name" #9085

Description

@bjorkiscoool113

Why this would be helpful

Hi!
Default scratch UI for creating new variables, lists, and custom blocks is pretty bad. It requires a lot of clicking, scrolling, and moving of the mouse from one side of the screen to the other. The addon Block dropdown search makes this much easier, because you can create new variables or lists by searching for them in the block dropdown.

Image

But this requires having an existing "set variable" block and clicking its dropdown. It also doesn't have a method of creating custom blocks.

My suggestion

I suggest using the existing addon Insert blocks by name as a quick way of creating new variables, lists, and custom blocks. Typing "define [name]" could have an option to create a new custom block called [name]:

Image

Custom block inputs could use the same syntax as scratchblocks. I'm not sure how no screen refresh would be represented, maybe with a flag in the text and an icon in the ui?

Image

The syntax for variables and lists might look like "list [name]" or maybe "new list [name]".

Does Insert blocks by name currently allow for having text adjacent to blocks within a dropdown option?

Possible alternatives

Alternatives: a broader-scope shortcut system could be a lovely potential new addon (although I don't know if it's already been suggested), because there are many UI features that aren't keyboard-accessible. (New sprite, switching to the costumes tab, switching from one sprite to another, zooming in and out...) Avoiding conflict with any browser or OS shortcuts on might be difficult though.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: addonRelated to one or multiple addonstype: enhancementNew feature for the project
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions