MoonshotAI / MoonshotAI/kimi-code

feat(tui): click-to-position cursor in the prompt editor (mouse)

Open
#3,570 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 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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.