Comments (5)
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 tab
key, you are getting posh-git autocompletion. When you press right arrow, you'll get PSReadLine autocompletion.
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.
from posh-git.
@mrkaarel Thank you very much, you've given me enough information to make the changes I needed. I ended up moving PSReadLine's AcceptSuggestion
to Tab
and AcceptNextSuggestionWord
to RightArrow
in effect overriding posh-git's tab completion completely as my preference was to use PSReadLine. Not sure if there's a proper way to disable posh-git's tab completion via ps1 profile settings though? Either way this works for me now.
from posh-git.
@matys1 , Be aware, though, that PSReadLine's suggestions comes from your history, not from the current context. So while it will suggest co
to be commit
, it will not be able to suggest what file to add based on your modified files. I'll also question how useful history based auto suggestion is for 'git commit' - how often do you reuse the same commit message?
from posh-git.
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
tab
key, you are getting posh-git autocompletion. When you press right arrow, you'll get PSReadLine autocompletion.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.
how can we change the inline suggestion from arrow right to tab?
from posh-git.
Take a look at the readme for PSReadLine:
To view the current key bindings:
Get-PSReadLineKeyHandler
To set your own custom keybindings, use the cmdlet Set-PSReadLineKeyHandler. For example, for a better history experience, try:
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
If you combinde that with @matys1 reply a little further up, I'm sure you'll reach your goal :-)
from posh-git.
Related Issues (20)
- Posh Git Module Gets Blocked by Windows Action Guard HOT 7
- Prompt not appearing. Cmder/ConEmu, Windows 11 arm64 on M1 MacBook Pro under UTM. HOT 7
- Intellisense works on commands that don't exist
- Error when pushing to Bitbucket server HOT 2
- posh-git doesn't work with vscode integrated terminal HOT 5
- posh-git: The term 'posh-git' is not recognized as a name of a cmdlet, function, script file, or executable program. HOT 1
- Calling git on module import could be avoided HOT 2
- Tests break when run under the pwsh 7.3
- Importing posh-git shows empty prompt
- Request: Add -NoANSI option to all Write-commands
- Install fails while retrieving member "TryParse" as it violates the constraint of type 'T1' HOT 3
- posh-git is slow when navigating inside a Git LFS-enabled repository containing multiple gigabyte-sized files.
- $GitPromptSettings.UntrackedFilesMode="Defaul" doesn't respect git config for untracked files
- Tab completion using powershell-git-aliases HOT 1
- Support parameters for GIT command (without any mode), e.g. git -P ...
- No space added after auto-completion when using posh-git
- Integrated powershell in VSC shows unaccuarte state of git. HOT 1
- Tab auto completion stopped working HOT 1
- Posh-git Prompt will not show HOT 4
- autocomplete of branchnames with git flow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from posh-git.