-
-
Notifications
You must be signed in to change notification settings - Fork 803
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
Tab competition: tab vs right arrow #934
Comments
The suggestions you are seeing as you type, are not provided by posh-git but by PowerShell PSReadLine module. These work in all directories, not only inside git repositories. When you press If this is confusing, you can turn off PSReadLine inline suggestions. Maybe sometimes in the future posh-git will have a auto-completion plugin that is compatible with PSReadLine. |
@mrkaarel Thank you very much, you've given me enough information to make the changes I needed. I ended up moving PSReadLine's |
@matys1 , Be aware, though, that PSReadLine's suggestions comes from your history, not from the current context. So while it will suggest |
how can we change the inline suggestion from arrow right to tab? |
Take a look at the readme for PSReadLine:
If you combinde that with @matys1 reply a little further up, I'm sure you'll reach your goal :-) |
System Details
Issue Description
I'm confused by the behavior of pressing
tab
key for tab completion. Two examples:First: I type in
git st
and the autocomplete suggestion isgit status
. I press tab and it completes it asgit stash
. I then have to press tab again to cycle and getgit status
, the command that was initially suggested and the one that I needed.Two: I type in
git co
and the autocomplete suggestion isgit commit -am "amended docs"
based on my historic commits. I press tab as I want to repeat the same command again and it completes togit checkout
.However, in both examples, if I were to press right arrow instead of tab, it would complete the suggested command in full as suggested and as expected. What's the logic behind the tab command? How can I configure so the tab functions like the right arrow?
The text was updated successfully, but these errors were encountered: