coder / coder/claudecode.nvim

[FEATURE] Multi-line editing in prompt area

オープン
#109 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Lua
スター
3.1k
フォーク
216
PR マージ指標
30日以内にマージされた PR はありません

説明

## Feature Description

When entering a longish prompt, I would like to be able to split the instructions visually over multiple lines.

## Use Case

I believe this will make it easier to work with longer prompts. Example:

Please introduce feature foo. Do this by:
1. meeting requirement bar
2. meeting requirement baz

Is for me easier to read than:

Please introduce feature foo. Do this by: 1. meeting requirement bar 2. meeting requirement baz.

## Proposed Solution

I'm not sure how the prompt area is implemented under the hood, but I could image this either being a buffer that allows multiple lines to be entered (which would also allow more complex editing to be done slightly easier), or I could image that a keybind is introduced (e.g. shift enter) that causes a line break and then the possibility to continue to edit on the next line.

## Alternatives Considered

When copying pasting into the windows, multi line input is supported / can be pasted into the prompt area in the claude code terminal window in neovim, so a potential alternative is to construct prompts outside of the claude code buffer and then past them into the prompt area. This is clunky though, and for longer prompts can lead to the prompt showing that n lines have been pasted, but not showing all these lines (which is useful by itself, but makes this a less desirable alternative solution for me)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Issue にはファイル、テスト、エントリーポイントが記載されていないため、まず prompt-area の実装箇所を特定し、入力、貼り付けた複数行テキスト、キーバインディングが現在どのように動作するかを確認します。提案されているバッファ方式と Shift-Enter 方式を比較し、そのうえで機能を完成させるための編集および送信の挙動を定義します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua, neovim
領域
cli, devtools
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。