microsoft / microsoft/pxt-microbit
Advanced > Text: Add blocks for more string methods
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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