MoonshotAI / MoonshotAI/kimi-code

feat(pi-tui): text selection model in the editor (Shift+arrows/Home/End, delete, type-over)

Open
#3,572 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Problem

The pi-tui editor has no selection concept: users cannot Shift-select a span to delete or replace it; long-prompt editing is cursor-key only.

Proposal

Add a selection model: Shift+Left/Right/Home/End extends the selection, Delete/Backspace removes the span, typing replaces it, rendered as inverted highlight. We have a complete local implementation with tests (8/8 green). If /approve'd, I can open a PR.

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 reviewing the pi-tui editor and the reported complete local implementation, then run its 8 tests. Done means Shift+Left/Right/Home/End selects text, Delete/Backspace removes it, typing replaces it, and the selection renders as an inverted highlight.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.