FaithLife-Community / LogosLinuxInstaller

A Python application that helps install and maintain FaithLife's Logos Bible (Verbum) Software on Linux through Wine.
MIT License
30 stars 10 forks source link

Add tab-completion for CLI options, file paths, etc. #199

Open n8marti opened 1 week ago

n8marti commented 1 week ago

This would be muy nice to have. Need to find out what is required, though.

ctrlaltf24 commented 4 days ago

Needs to be done per-shell, each shell has their own completion format/logic. I've done it before for zsh, not trivial, and would need to be kept up to date

thw26 commented 4 days ago

Perhaps we can target just the top three or four shells? Most are probably using bash.

ctrlaltf24 commented 4 days ago

Keep in mind the more we have, the more we need to maintain. bash + maybe zsh if one of us uses it actively is probably good enough, it is a nice to have after all, doesn't impact our journey w/ God

thw26 commented 1 day ago

Resources

https://stackoverflow.com/questions/187621/how-to-make-a-python-command-line-program-autocomplete-arbitrary-things-not-int

ctrlaltf24 commented 1 day ago

Looks like this can be done programmatically and be kept up to date! https://github.com/kislyuk/argcomplete I've seen some CLIs bundle their completion in their code (for example my_binary --generate-completion bash would generate the bash completions for use in the shell), that way it's always up to date