val-town / val-town/codemirror-continue
Support mid-line Enter
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 2
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
In this situation
/**
* Comment
* Something <cursor> something else
*/
It'd be nice for Enter to produce:
/**
* Comment
* Something
* something else
*/
This should handle all of the properties of our existing continue system - it'll preserve surrounding indentation, so if this comment inside of a function so it's indented 2 or 4 spaces, it should preserve that. Plus, we may want to truncate the whitespace at the end of the line? That's optional.
Contributor guide
No contributing guide indexed for this repository
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 existing continue system in this repository and reproduce the mid-line Enter example inside a TypeScript block comment. Preserve the surrounding indentation and comment prefix as shown; done means Enter splits the line into the requested format, including when the comment is nested in a function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100