Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pscompletions: Add version 3.2.6 #12922

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ryanjiena
Copy link
Contributor

Closes #12921

Copy link
Contributor

github-actions bot commented Mar 8, 2024

All changes look good.

Wait for review from human collaborators.

pscompletions

  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate

@aliesbelik
Copy link
Collaborator

The project looks quite new, it doesn't fit criteria for Extras bucket in terms

Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 100 stars and/or 50 forks)

@FlawlessCasual17
Copy link
Contributor

FlawlessCasual17 commented Oct 3, 2024

There are a lot of errors in your manifest that you have written for PSCompletions.

@FlawlessCasual17
Copy link
Contributor

The manifest needs to be changed to this:

Improved Manifest
{
    "version": "5.0.5",
    "description": "A completion manager for better and simpler use powershell completions.",
    "homepage": "https://github.com/abgox/PSCompletions",
    "license": "MIT",
    "notes": [
        "Use the module by running:",
        "Import-Module PSCompletions",
        "Add it to your $PROFILE to make it permanent"
    ],
    "url": "https://psg-prod-eastus.azureedge.net/packages/pscompletions.5.0.5.nupkg",
    "hash": "37d1f8f6b5abb2026c6d0af70302658bb8f1484521eb68d769d91a901a6a8d72",
    "pre_install": [
        "Remove-Item \"$dir\\_rels\", \"$dir\\package\", \"$dir\\*Content*.xml\" -Recurse",
        "if (!(Test-Path \"$persist_dir\\data.json\")) { Copy-Item \"$bucketsdir\\Extras\\scripts\\pscompletions\\data.json_\" \"$persist_dir\\data.json\" }"
    ],
    "psmodule": {
        "name": "PSCompletions"
    },
    "persist": [
        "completions",
        "data.json"
    ],
    "checkver": {
        "url": "https://www.powershellgallery.com/packages/PSCompletions",
        "regex": "\\<h2\\>([\\d.]+)\\</h2\\>"
    },
    "autoupdate": {
        "url": "https://psg-prod-eastus.azureedge.net/packages/pscompletions.$version.nupkg"
    }
}

And this file needs to be included in the scripts/pscompletions directory of the Extras bucket.

data.json_
{
    "list": [],
    "alias": {},
    "aliasMap": {},
    "config": {
        "url": "",
        "enable_completions_update": 1,
        "enable_module_update": 0,
        "disable_cache": 0,
        "function_name": "PSCompletions",
        "SpaceTab": "😄",
        "WriteSpaceTab": "😎",
        "OptionTab": "🤔",
        "horizontal": "",
        "vertical": "",
        "top_left": "",
        "bottom_left": "",
        "top_right": "",
        "bottom_right": "",
        "item_text": "Blue",
        "item_back": "Black",
        "selected_text": "white",
        "selected_back": "DarkGray",
        "filter_text": "Yellow",
        "filter_back": "Black",
        "border_text": "DarkGray",
        "border_back": "Black",
        "status_text": "Blue",
        "status_back": "Black",
        "tip_text": "Cyan",
        "tip_back": "Black",
        "trigger_key": "Tab",
        "between_item_and_symbol": " ",
        "status_symbol": "/",
        "filter_symbol": "[]",
        "enable_menu": 1,
        "enable_menu_enhance": 1,
        "enable_tip": 1,
        "enable_tip_when_enhance": 1,
        "enable_completions_sort": 1,
        "enable_tip_follow_cursor": 1,
        "enable_list_follow_cursor": 1,
        "enable_tip_cover_buffer": 1,
        "enable_list_cover_buffer": 0,
        "enable_list_loop": 1,
        "enable_selection_with_margin": 1,
        "enable_enter_when_single": 0,
        "enable_prefix_match_in_filter": 0,
        "list_min_width": 10,
        "list_max_count_when_above": -1,
        "list_max_count_when_below": -1,
        "width_from_menu_left_to_item": 0,
        "width_from_menu_right_to_item": 0,
        "height_from_menu_bottom_to_cursor_when_above": 0,
        "comp_config": {}
    }
}

@abgox
Copy link
Contributor

abgox commented Nov 21, 2024

@abgox abgox mentioned this pull request Nov 30, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request]: PSCompletions
4 participants