Closed wsurer closed 7 months ago
Hello wsurer, check your .ps1 config (probably in C:\Users\<username>\Documents\WindowsPowerShell\
), does the line if(Test-Path 'C:\Users\<username>\.inshellisense\key-bindings-powershell.ps1' -PathType Leaf){. C:\Users\<username>\.inshellisense\key-bindings-powershell.ps1}
exist in the config? If not you can add the code manually.
It maybe something wrong happened during binding. In my computer it works well. If this doesn't work, please tell me :)
Same net effect -- When run from a native powershell command, Ctrl+A merely selects the current command, if run from inside inshellisense it simply outputs the letter a
I can confirm the ps1 config file contains the above line and pointing to an existing key-binding-powershell.ps1
Windows 10 Powershell 7.3.8
Same at first. I use Windows 10 with Windows Terminal version 1.18.3181.0 and PowerShell 5.1.19041.3636. Here's how I resolved it:
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\capr4n.omp.json" | Invoke-Expression
After doing this, the ctrl+a shortcut started working smoothly for me.
I'm not an expert on this, but I suspect that oh-my-posh somehow alters the environment. But looking at @wsurer's screenshot, it doesn't seem like he's using oh-my-posh. Therefore, it might be worth checking for other suspicious commands that could be causing this issue.
Closing as this was fixed since we no longer depend on key bindings in 0.0.1-rc.5
Ctrl+a did not activate the prompt function, but only selected the command in PowerShell
To Reproduce Steps to reproduce the behavior:
is bind
git
and press Ctrl+agit
Expected behavior active the prompt function for command
git
Environment
inshellisense --version
: 0.0.1-rc.4Additional context it worked normally via executing
is
and entering the session.