$PSCompletions
for hooks
to use to improve parsing speed.=
to directly get next completion items.
PSCompletions
module, please run the psc update * --force
command to update all completions.»?!
).enable_tip
is set to 0, and reduce the flashing of completion menu.https://abgox.github.io/PSCompletions
as the primary source for module and completion updates.zh-CN
or set to zh-CN
.https://abgox.github.io/PSCompletions
https://github.com/abgox/PSCompletions/raw/main
https://gitee.com/abgox/PSCompletions/raw/main
--force
to the command psc update *
.psc add
will also be sorted automatically based on command history.bold_line_rect_border
for border lines. Use it by the command psc menu line_theme bold_line_rect_border
.?!»
) to avoid rendering issues caused by special characters.hooks
to the end of processing completion items, which is more flexible.disable_hooks
with enable_hooks
.CompletionPredictor
module.Windows PowerShell
, such as the completion menu being misaligned and other compatibility issues.{}
in the installation logic of Scoop application manifests.PowerShell
and Windows PowerShell
together in v5.1.3
.hooks.ps1
.psc reset menu symbol
to replace them.😄
=> →
🤔
=> ?
😎
=> ↓
order.json
parsing compression causing completion errors.$PSCompletions.argc_completions()
for argc-completions.
reset
subcommand.return_completion
in $PSCompletions
for hooks.ps1
.psc rm *
command will reset all configuration items.psc
subcommand runs into an error.psc
did not add after updating the module version.PSCompletions
, please check the manifest (persist) to update to data.json.update
=> enable_completions_update
module_update
=> enable_module_update
menu_show_tip
=> enable_tip
github
and gitee
.
url
configuration item.psc config url <url>
menu_is_prefix_match
was enabled, due to the input after public prefix extraction.show_module_menu
) parameter type conversion error.menu_is_loop
, controlling whether the menu is looped, with a default value of 1
.
psc menu config menu_is_loop 0
Windows PowerShell
.4.2.10
to 4.3.0
.PSCompletions
module will take up two global names, $PSCompletions
(variable) and PSCompletions
(function).
PSCompletions
(function) can be configured to change the function name.function_name
, with a default value of PSCompletions
.
psc config function_name <name>
PSCompletions
.function_name
to rename the function of this module to a non-conflicting name.PSCompletions
(function) can be configured, but $PSCompletions
(variable) cannot be modified.$PSCompletions
.PSCompletions
module, or you give the variable you define a different name.PowerShell
commands, optimized display.Windows PowerShell
and using a command-line theme (such as oh-my-posh), it may cause the current line and nearby text and icons to be distorted when the completion menu is displayed above the current line.
Windows PowerShell
, use PowerShell
.
Windows PowerShell
is really bad, there are always many small issues.menu_is_prefix_match
) is enabled in the completion menu, only the value of completion is extracted when there’s a common prefix.Windows PowerShell
module loading failed because a code file used LF line breaks.
menu_show_tip
configuration for specific completions was invalid.psc update *
update completion.Add three menu
configurations:
menu_trigger_key
: Default value is Tab
, which is used to set the trigger key of the completion menu.
psc menu config menu_trigger_key <key>
menu_enhance
: Default value is 1
, which is used to enable or disable the enhanced completion menu feature.
psc menu config menu_enhance 0
PSCompletions
will intercept all completions and uses the completion menu provided by PSCompletions
to render completions.Get-*
, Set-*
in PowerShell
will use the completion menu provided by PSCompletions
to render the completion.menu_enable
is also enabled.menu_show_tip_when_enhance
: Default value is 1
, which is used to control whether to show command tips for completions that are not added through psc add
.
psc menu config menu_show_tip_when_enhance 0
menu_enhance
.Fix an issue where multi-byte characters(such as Chinese characters) could cause partial rendering errors in the menu.
menu_enhance
.cd
command, even if the path completion contains Chinese or other multi-byte characters, the menu will render correctly.Completion tips now support automatic line wrapping based on available width.
menu_tip_follow_cursor
config has been changed from 0
to 1
.Windows PowerShell
can use the completion menu provided by PSCompletions
.
psc add *
psc rm *
common_options
.ForEach-Object
with foreach
.
ForEach-Object
has unexpected results in some special cases.completion
subcommand to the reset
command to reset (remove) the special configuration of completion.PSCompletions
module first, and then modify the terminal output encoding. Otherwise, it will still display incorrectly.menu_tip_cover_buffer
from 0
to 1
.
psc menu config menu_tip_cover_buffer 0
.If you are using the PSCompletions
module with administrator permission, you should remove the PSCompletions
module and install the latest version with user permission.
Install-Module PSCompletions -Scope CurrentUser
This version completely rewrites the module, and solves many inappropriate places, so it’s completely incompatible with the old version configuration and completion.
psc menu
, then learn about them by completion tip.menu_show_tip
, which can control whether the completion tip is displayed.
psc completion
for command..\scoop.ps1
as an alias, which can be useful in some cases.Up
|Down
|
|Left
|Right
|
|Shift + Tab
|Tab
|
|Shift + Space
|Space
|
|Ctrl + u
|Ctrl + d
|
|Ctrl + p
|Ctrl + n
|