github / github/copilot-cli

ESC ESC does not save the half-typed command in history

Offen
#3,720 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:input-keyboard
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the feature or problem you'd like to solve

In the middle of typing a prompt, use ESC ESC to stash what's typed in history

### Proposed solution

There are so many times where I'm in the middle of typing a long prompt, and I realize I need to do something else first. A common one is I realized after typing half my prompt that I forgot to do /add-dir for an important directory. I want to be able to do ESC ESC to clear the prompt and *add my prompt in progress to the history not just erase it*. This is a huge pain point for me in transitioning from CC. I so often just instinctively hit ESC ESC and curse at myself "what did I just do!" because I really needed to save all the text I just typed out.

### Example prompts or workflows

"I'm typing this really long prompt out with very detailed instructions of everything I want done. As I'm typing, I realize I need to pull in a file from another project that I have not yet done /add-dir." ESC ESC
Expected: Save all the text I typed in the history, I can get back to it just by hitting up arrow.
Actual: All of the text I typed before hitting ESC ESC is gone forever.

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den ESC ESC-Eingabeaufforderungs-Verarbeitungspfad nachzuverfolgen und zu untersuchen, wie die CLI den Befehlsverlauf schreibt und liest. Reproduziere anschließend den beschriebenen Workflow und überprüfe dann, dass das Löschen einer halb eingegebenen Eingabeaufforderung diese beibehält und dass das Drücken der Pfeiltaste nach oben den gespeicherten Text wiederherstellt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
58/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.