MoonshotAI / MoonshotAI/kimi-code
feat(tui): click-to-position cursor in the prompt editor (mouse)
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 prompt editor supports mouse scrollback and selection-copy, but clicking inside the input box does not move the text cursor. Editing long prompts requires cursor-key travel.
Proposal
Map a single click in the editor to the corresponding text position (row/column → buffer offset), reusing the existing mouse-capture infrastructure. We have a working local implementation; 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 at the prompt editor and trace the existing mouse-capture infrastructure used for scrollback and selection-copy. Implement the single-click path that converts the editor row and column to a buffer offset. Done means clicking inside the input box moves the text cursor to the corresponding prompt position without disrupting existing mouse behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100