MoonshotAI / MoonshotAI/kimi-code
feat(pi-tui): text selection model in the editor (Shift+arrows/Home/End, delete, type-over)
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
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 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