Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto-completion for command line #9980

Open
braph opened this issue Sep 28, 2024 · 1 comment
Open

Add auto-completion for command line #9980

braph opened this issue Sep 28, 2024 · 1 comment
Labels
Enhancement ✨ Improvement to a component Needs specification 🔐 Accepted as a potential improvement, and needs to specify edge cases, message names, etc.

Comments

@braph
Copy link

braph commented Sep 28, 2024

Current problem

Hello, I'm a happy user of pylint, but there are no auto-completion files for the shell.

Desired solution

I have created auto-completion files for bash, fish and zsh using my crazy-complete tool.

You can find the files here: https://github.com/crazy-complete/crazy-complete/tree/main/completions/pylint

The definition file was generated by parsing the output of Pylint’s --help command. A small script then enhances the file by adding the complete attribute, which defines how the argument for each option is completed.

Thanks for creating such an amazing tool!

Regards,

Benjamin Abendroth

Additional context

No response

@braph braph added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Sep 28, 2024
@Pierre-Sassoulas
Copy link
Member

This sounds pretty good, do you have any idea how we could integrate it in pylint directly ? (Disclaimer last time I checked was in 2018 and pylint was not using argparse yet so autocomplete was not a reasonable feature at the time so I dropped https://kislyuk.github.io/argcomplete/, but I also know very little about the topic).

@Pierre-Sassoulas Pierre-Sassoulas added Enhancement ✨ Improvement to a component Needs specification 🔐 Accepted as a potential improvement, and needs to specify edge cases, message names, etc. and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Needs specification 🔐 Accepted as a potential improvement, and needs to specify edge cases, message names, etc.
Projects
None yet
Development

No branches or pull requests

2 participants