shtab icon indicating copy to clipboard operation
shtab copied to clipboard

↔️ Automagic shell tab completion for Python CLI applications

Results 74 shtab issues
Sort by recently updated
recently updated
newest added

Thank you for the project, I like the idea to stick to a small Python app for it and re-use some well known APIs... ... but struggle generating some completion...

Hi all, I am trying to use shtab for the first time. I would like to autocomplete a positional argument from a list. I made a choice function `titleselector` that...

invalid

When working in shells it is common to store values in environment variables, and most commands allow tab completion of environment variable names, for example: ```bash $ echo $BASH_V $...

When working in shells it is quite common that a command outputs something to stdout an the user wants to redirect this to a file, for example: ```bash ls >...

Closes #134

enhancement
external-request
shell-fish

I'm trying to enable auto-completion for Python scripts executed with `python -m my_module -[TAB] [TAB]` or `python my_module.py -[TAB] [TAB]`. I first created the script: ```python #!/usr/bin/env python3 import argparse...

updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)

Requirements: - When defining arguments with using `pathlib.Path`, such as `p.add_argument("-s", "--src", type=Path)` on an `ArgumentParser` instance, the autocomplete mechanism should understand the type and emit an autocomplete that is...

enhancement
external-request

It might be useful to write file directly instead of forwarding output to it, e.g. if files are generated automatically in pipeline (via tox or whatever is used) and distributed...

documentation
enhancement
good-first-issue
external-request
p2-nice-to-have

updates: - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.16.0)