gitext-rs / git-stack

Stacked branch management for Git
Apache License 2.0
496 stars 19 forks source link

tab completion not working #233

Open uloco opened 2 years ago

uloco commented 2 years ago

Please complete the following tasks

Description

tab completion in zsh is not working.

I am using oh-my-zsh and have a rather complicated setup with fzf-tab etc. so I am not quite sure if this is a bug, not implemented yet or just a local config issue.

Version

git-stack 0.8.2

Steps to reproduce

Actual Behaviour

No response

Expected Behaviour

No response

Debug Output

No response

epage commented 2 years ago

This is not implemented yet. We could use clap_complete to generate the completions for several shells. If we go the build-time route, then we need to distribute them somehow so they get in the right place., It might be better for us to generate them at runtime. For bash, that would end up looking something like $(git stack completions --shell bash). We'll need to be careful to make sure we integrate with the git command's completions correctly.