coder / coder/claudecode.nvim

[FEATURE] Multi-line editing in prompt area

Ouverte
#109 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Lua
Étoiles
3.1k
Forks
217
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

L’issue ne mentionnant aucun fichier, test ou point d’entrée, commencez par localiser l’implémentation de prompt-area et examinez le comportement actuel de la saisie, du texte multiligne collé et des raccourcis clavier. Comparez ensuite les approches proposées utilisant un buffer et Shift-Enter, puis définissez le comportement d’édition et de soumission qui permettrait de rendre la fonctionnalité complète.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
lua, neovim
Domaine
cli, devtools
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.