dbcli / dbcli/pgcli

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

Ouverte
#1,608 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
13.4k
Forks
612
Merge moyen
6 j 14 h
PR mergées (30 j)
10

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

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

Évaluation

Stack technique
python
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

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