Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Tab completion not working in version 4.0.1 on macOS

Ouverte
#1,448 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
postgresql, python
Domaine
cli, databases

Piste de recherche

L’issue ne mentionne aucun fichier ni test. Commencez par reproduire le comportement de Tab dans pgcli sur macOS et suivez le traitement de la complétion et des raccourcis clavier. Le travail est terminé lorsque Tab accepte de manière fiable l’instruction suggérée ou qu’une option de configuration documentée permet de modifier ce comportement sans modifier le code source.

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

Description

Description

When I start typing a statement, and pgcli suggests the complete statement in gray, and I just want to accept it, I try to hit Tab and instead focus the menu. I have to hit the right arrow key to select the suggested statement. This is strange compared to other editors.

Worse, sometimes hitting tab just cuts off what I'm typing.

Desired Behavior

I would like to be able to use Tab to select the suggested statement. I can already use the down arrow to select the first completion menu item. I should at least be able to change this in the config file. There is no documentation about this.

However, there seems to be a lot of back-and-forth on keybindings and why we can't do this and that on keybindings in pgcli because of the way Python works, the library we're using, etc. which don't make sense to me as a developer, because the user should be able to configure these and not worry about hacking source just for keybindings. Please give us a documented way to change these without needing to edit source code.

Your environment

macOS Sonoma 14.1.2 / Terminal / pgcli installed via homebrew

pip freeze                                   main 
altgraph @ file:///AppleInternal/Library/BuildRoots/dc12d579-7d9b-11ee-af04-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/python3/altgraph-0.17.2-py2.py3-none-any.whl
future @ file:///AppleInternal/Library/BuildRoots/dc12d579-7d9b-11ee-af04-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/python3/future-0.18.2-py3-none-any.whl
macholib @ file:///AppleInternal/Library/BuildRoots/dc12d579-7d9b-11ee-af04-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/python3/macholib-1.15.2-py2.py3-none-any.whl
six @ file:///AppleInternal/Library/BuildRoots/dc12d579-7d9b-11ee-af04-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/python3/six-1.15.0-py2.py3-none-any.whl
Langage dominant
Python
Étoiles
13.4k
Forks
613
Merge moyen
12 h 45 min
PR mergées (30 j)
5

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de dbcli/pgcli

Toutes les issues de dbcli/pgcli

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

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