Tab completion not working in version 4.0.1 on macOS
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
El issue no menciona archivos ni pruebas. Empieza reproduciendo el comportamiento de Tab en pgcli en macOS y rastrea el manejo de la finalización y las asignaciones de teclas. Se considera terminado cuando Tab acepta de forma fiable la sentencia sugerida o existe una opción de configuración documentada que cambia este comportamiento sin editar el código fuente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 13.4k
- Forks
- 613
- Merge medio
- 12 h 45 min
- PR fusionados (30 d)
- 5
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dbcli/pgcli
-
# is not as -- in PostgreSQLAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
dbcli/pgcli#1646 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
dbcli/pgcli#1608 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de dbcli/pgcli
Issues similares
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openvinotoolkit/openvino_notebooks#3665 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
benchmark-gap
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día