MoonshotAI / MoonshotAI/kimi-cli

功能请求:支持自定义键盘快捷键 || Feature request: Support custom keyboard shortcuts

Open
#1,574 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

What feature would you like to see?

功能请求:支持自定义键盘快捷键

功能描述

希望 Kimi Code CLI 能够支持用户自定义键盘快捷键,特别是允许用户将插入换行的快捷键从当前的 Ctrl-J / Alt-Enter 修改为其他组合键(如 Shift-Enter)。

动机

许多用户从其他工具(如 VS Code、JetBrains IDE、Cursor、ChatGPT/Claude Web 界面等)迁移过来时,已经习惯了使用 Shift-Enter 来插入换行。这些工具中:

  • Enter → 发送/提交
  • Shift-Enter → 插入换行

这种操作逻辑已经成为多行文本编辑的事实标准。当前 Kimi Code CLI 使用 Ctrl-JAlt-Enter 虽然也能工作,但:

  1. 不符合用户已有的肌肉记忆
  2. 需要额外的学习和适应成本
  3. Alt-Enter 在某些终端模拟器(如 Windows Terminal、特定 Linux 终端)中可能被系统占用
Additional information

No response


What feature would you like to see?

Feature request: Support custom keyboard shortcuts

Function description

It is hoped that Kimi Code CLI can support user-defined keyboard shortcuts, especially allowing users to change the shortcut key for inserting a newline from the current Ctrl-J / Alt-Enter to other key combinations (such as Shift-Enter).

Motivation

Many users who have migrated from other tools such as VS Code, JetBrains IDE, Cursor, ChatGPT/Claude web interface, etc. have become accustomed to using Shift-Enter to insert newlines. Among these tools:

  • Enter → Send/Submit
  • Shift-Enter → insert newline

This operating logic has become the de facto standard for multi-line text editing. Currently Kimi Code CLI works using Ctrl-J or Alt-Enter but:

  1. Does not conform to the user’s existing muscle memory
  2. Requires additional learning and adaptation costs
  3. Alt-Enter may be occupied by the system in some terminal emulators (such as Windows Terminal, specific Linux terminals)
Additional information

No response

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 current Ctrl-J and Alt-Enter handling in the CLI, then inspect how user configuration and terminal key events are represented. Define the supported configuration format and key combinations before implementing the mapping. Done means users can configure the newline shortcut, Enter still submits, and the behavior is covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.