Skip to content

Releases: abgox/PSCompletions

v5.0.2

31 Aug 09:03
a4a2f43
Compare
Choose a tag to compare
  • Remove unnecessary file I/O operations.
  • Other optimizations and fixes.

v5.0.1

30 Aug 16:31
8b4bdac
Compare
Choose a tag to compare
  • Fix the issue that psc did not add after updating the module version.

v5.0.0

30 Aug 15:38
8e2c9f2
Compare
Choose a tag to compare
  • Reduce file I/O operations and optimize initialization method to improve first load speed.
    • Remove the alias.txt file in each completion directory, and use data.json to store data.
  • Merge configuration data file config.json into data.json.
    • Note: If you use scoop to install PSCompletions, please check the manifest (persist) to update to data.json.
  • Modify the name of almost all configuration items.
    • The name of the configuration item has been modified, and it will not affect normal use. When the version is updated, it will automatically migrate the old configuration item to the new configuration item.
    • For example:
      • update => enable_completions_update
      • module_update => enable_module_update
      • menu_show_tip => enable_tip
      • ...
  • Remove two configuration items: github and gitee.
    • If you need to customize the url, please use the url configuration item.
    • psc config url <url>
  • Other optimizations and fixes.

v4.3.3

27 Aug 14:52
c2e0332
Compare
Choose a tag to compare
  • Fix an error that occurred when menu_is_prefix_match was enabled, due to the input after public prefix extraction.

v4.3.2

18 Aug 13:17
c9d927a
Compare
Choose a tag to compare
  • Fix a method(show_module_menu) parameter type conversion error.

v4.3.1

18 Aug 04:28
8e1e277
Compare
Choose a tag to compare
  • Add a configuration item menu_is_loop, controlling whether the menu is looped, with a default value of 1.
    • Disable it: psc menu config menu_is_loop 0
  • Optimize the migration logic of old versions.

v4.2.0

09 Aug 11:40
Compare
Choose a tag to compare
  • Add three menu configurations:

    1. menu_trigger_key: Default value is Tab, which is used to set the trigger key of the completion menu.
      • Setting: psc menu config menu_trigger_key <key>
    2. menu_enhance: Default value is 1, which is used to enable or disable the enhanced completion menu feature.
      • Setting: psc menu config menu_enhance 1
      • When enabled, PSCompletions will intercept all completions and uses the completion menu provided by PSCompletions to render completions.
      • For example, commands such as Get-*, Set-* in PowerShell will use the completion menu provided by PSCompletions to render the completion.
      • Note: This setting only takes effect if menu_enable is also enabled.
      • About menu enhance
    3. 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.
      • Setting: psc menu config menu_show_tip_when_enhance 1
      • Use together with menu_enhance.
  • Fix an issue where multi-byte characters(such as Chinese characters) could cause partial rendering errors in the menu.

    • This is useful with menu_enhance.
    • For example, when using the 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.

    • For a better experience, the default value of the menu_tip_follow_cursor config has been changed from 0 to 1.
  • Refactored code by reorganizing the source file directory structure and extracting common code.

  • Use multi-threading to optimize performance and remove some redundant code.

  • Fixed some other issues.

  • Cleaned up the code.

v4.1.0

07 Aug 01:34
Compare
Choose a tag to compare
  • Now Windows PowerShell can use the completion menu provided by PSCompletions.
    • But, due to rendering problems, the border style of the completion menu cannot be customized.
  • Fix some other issues.
  • Change the directory structure of the source code file.
  • Clean up the code.

For more version info: CHANGELOG.md