Tab completion not working in version 4.0.1 on macOS
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
L’issue non indica alcun file o test. Inizia riproducendo il comportamento di Tab in pgcli su macOS e traccia la gestione del completamento e delle associazioni dei tasti. Il lavoro è completo quando Tab accetta in modo affidabile l’istruzione suggerita oppure esiste un’opzione di configurazione documentata che modifica questo comportamento senza modificare il codice sorgente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 13.4k
- Fork
- 613
- Merge medio
- 12h 45m
- PR unite (30g)
- 5
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dbcli/pgcli
-
# is not as -- in PostgreSQL Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
huggingface/Repo2RLEnv#163 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NousResearch/hermes-agent#121143 ·