1jehuang / 1jehuang/jcode

Prompt input wraps mid-word instead of at word boundaries

Open
#766 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

autonomous: no enhancement priority: low triage: needs-decision
Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Description

When typing a long line into the prompt input, the line wraps in the middle of a word instead of breaking at the nearest word boundary (whitespace). This makes typed input hard to read while composing, since words get split across lines unpredictably.

Expected: wrap should break at word boundaries (like standard word-wrap in most text editors/terminals), not mid-word.

Current: the input box wraps purely by character/column width, splitting words across the wrap point.

Not sure if this is a quick fix or requires more work in the input-rendering layer — happy to test a build if useful.

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 input-rendering layer responsible for wrapping long prompt lines and reproduce the behavior with words longer than one line. Confirm that wrapping prefers the nearest whitespace without disrupting prompt editing, then verify the result with the relevant input or rendering tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.