Open dodmi opened 3 years ago
Thanks for the proposal! I'm intrigued, but wonder if/how it would interfere with the various tab expansion providers we need to support.
Feel free to open a Pull Request so we can have a look at the code. It may turn out that this fits better as a separate module you can maintain and integrate into the existing posh-git infrastructure.
@dahlbyk Just to let you know, I've made a pull request for review.
It's a bit strange. First, I had code to handle git diff -h
differently. But afterwards, I noticed, that git diff -h
output is different, when it's executed inside or outside a repository (and outside, it's "git-like"). Hopefully, this is the only mode, which is behaving like this.
Hi @dahlbyk,
I've quickly added some script code to improve the code completion with Ctrl+Space:
Basically it parses the output from
git <mode> -h
and adds hints:The parameter proposals itself are from your completion code.
The code is not really tested, but it seems to work fine in my environment. I wanted to ask, if you're interested in this addition.
Kind regards