Moeologist / scoop-completion

scoop tab completion, work with powershell
MIT License
173 stars 12 forks source link

It has no effect on the package name. Whether it is install or uninstall followed by package name completion, it cannot be used. #33

Closed tianlongJ closed 9 months ago

Lockszmith-GH commented 1 year ago

It works for me, so if possible, can you please provide a bit more infrmation which might help understand why things aren't working for you?

Are you in PowerShell?

After you installed the scoop-completion with scoop install scoop-completion did you run the import-module as described in the (README)[https://github.com/Moeologist/scoop-completion#scoop-completion]?

# enable completion in current shell, use absolute path because PowerShell Core not respect $env:PSModulePath
Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"

PowerShell TabExpansion relies on a module named PSReadLine, is it installed?

Please provide the output of the following commands:

$PSVersionTable
Get-Modules

This information should be helpful in pin pointing possible cause.

tianlongJ commented 1 year ago

It works for me, so if possible, can you please provide a bit more infrmation which might help understand why things aren't working for you?

Are you in PowerShell?

After you installed the scoop-completion with scoop install scoop-completion did you run the import-module as described in the (README)[https://github.com/Moeologist/scoop-completion#scoop-completion]?

# enable completion in current shell, use absolute path because PowerShell Core not respect $env:PSModulePath
Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"

PowerShell TabExpansion relies on a module named PSReadLine, is it installed?

Please provide the output of the following commands:

$PSVersionTable
Get-Modules

This information should be helpful in pin pointing possible cause.

Enter scoop install oraclej and press tab, expecting the completion to be scoop install oraclejdk, but it does not happen, and nothing happens when using ctrl+space. image

Moeologist commented 1 year ago

It works for me, so if possible, can you please provide a bit more infrmation which might help understand why things aren't working for you? Are you in PowerShell? After you installed the scoop-completion with scoop install scoop-completion did you run the import-module as described in the (README)[https://github.com/Moeologist/scoop-completion#scoop-completion]?

# enable completion in current shell, use absolute path because PowerShell Core not respect $env:PSModulePath
Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"

PowerShell TabExpansion relies on a module named PSReadLine, is it installed? Please provide the output of the following commands:

$PSVersionTable
Get-Modules

This information should be helpful in pin pointing possible cause.

Enter scoop install oraclej and press tab, expecting the completion to be scoop install oraclejdk, but it does not happen, and nothing happens when using ctrl+space. image

Run Get-PSReadLineKeyHandler and check output , check Windows Terminal key binding. Tab completion maybe conflict with other hotkey

tianlongJ commented 1 year ago

It works for me, so if possible, can you please provide a bit more infrmation which might help understand why things aren't working for you? Are you in PowerShell? After you installed the scoop-completion with scoop install scoop-completion did you run the import-module as described in the (README)[https://github.com/Moeologist/scoop-completion#scoop-completion]?

# enable completion in current shell, use absolute path because PowerShell Core not respect $env:PSModulePath
Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"

PowerShell TabExpansion relies on a module named PSReadLine, is it installed? Please provide the output of the following commands:

$PSVersionTable
Get-Modules

This information should be helpful in pin pointing possible cause.

Enter scoop install oraclej and press tab, expecting the completion to be scoop install oraclejdk, but it does not happen, and nothing happens when using ctrl+space. image

Run Get-PSReadLineKeyHandler and check output , check Windows Terminal key binding. Tab completion maybe conflict with other hotkey

I know the reason, it was unclear to me why I didn't have SCOOP in my environment variables but USERSCOOP and now it works