dbcli / dbcli/pgcli

Ctrl-u cuts the line, but Ctrl-y doesn't put it back in Vi-mode

Aperta
#1,608 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
13.4k
Fork
612
Merge medio
6g 14h
PR unite (30g)
10

Descrizione

In Vi-mode, when using Ctrl+U to cut the current input it's impossible to use Ctrl+Y afterwards to get it back: it does nothing.

If I switch back to Emacs-mode and press Ctrl+Y, I get the data back. I can then switch back to Vi-mode.

I would expect Ctrl+Y to work the same way it works with readline, or for Ctrl+U to do nothing in Vi-mode (as the vi equivalent would be dd rather than Ctrl+U).

Version: v4.0.1

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the Ctrl-U and Ctrl-Y behavior in pgcli v4.0.1 while Vi-mode is enabled, then compare it with Emacs-mode and readline behavior. Trace the CLI's Vi-mode key handling and make the expected behavior consistent; verify the result by repeating both key sequences in each mode.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.