microsoft / microsoft/pxt-microbit

Advanced > Text: Add blocks for more string methods

Open
#5,311 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

apis Blocks
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

There are a variety of string methods that can not currently be used solely from blocks and may be helpful for some applications.

Describe the solution you'd like

Ideally, I'd like to see a more ... section on the Text toolbox that includes accessor functions / reporters for string methods like split, splice, toLowerCase, toUpperCase, etc.

Describe alternatives you've considered

Alternatives include writing code purly in JavaScript, writing bridging functions for each project that needs these sorts of features in blocks, or creating an Advanced text extension (I'm open to doing that, but it seems like a more ... section to Text is more appropriate).

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.

Research direction

Start by locating the Text toolbox definitions and the existing block implementations for string methods. Review how the requested methods—split, splice, toLowerCase, and toUpperCase—are exposed, then determine the scope of a “more ...” section and verify that the new blocks work in the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.