val-town / val-town/codemirror-continue

Support mid-line Enter

Open
#1 1 comment 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.