Open
Description
Should we include/ship shell completion with pytest, e.g. in a contrib
folder?
I have something for Zsh: https://github.com/zsh-users/zsh-completions/pull/454/files.
Added to my dotfiles: blueyed/oh-my-zsh@fd89b19 (2020-03-01)
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
RonnyPfannschmidt commentedon Oct 8, 2016
pytest already supports the argcomplete protocol
blueyed commentedon Oct 8, 2016
Thanks!
I came across that before, but for
zsh
it requiresbashcompinit
(a wrapper to enable bash completions), and the completion itself is slow (it seems to be not cached at all), and does not support completing (c)tags after-k
, which was my initial motivation to create a completion script for pytest, since this easily allows to complete test functions.RonnyPfannschmidt commentedon Oct 9, 2016
i see what you mean, i wonder if that can be done in a multi shell fashion
[-]Add shell completion[/-][+]Add shell completion (zsh)[/+]Freed-Wu commentedon Sep 17, 2022
How about shtab? It is faster than argcomplete and pyzshcomplete. And it supports more shells.
Add shell completions by shtab
Add shell completions by shtab
7 remaining items