1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/abgox-PSCompletions

Клонировать/Скачать
en-US.json 77 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
abgox Отправлено 30.05.2025 17:35 bea6ead
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056
{
"root": [
{
"name": "list",
"tip": [
"Display the completions that have been added.\n",
"{{ $json.info.list.example }}"
],
"options": [
{
"name": "--remote",
"tip": [
"Display all available completions in the repository ({{ $PSCompletions.url }})."
]
}
]
},
{
"name": "add",
"next": [
{
"name": "*",
"tip": [
"Add all completions.\n",
"Note: Add many completions may cause PowerShell to load slowly for the start up.\n",
" It's recommended to add what you need."
]
}
],
"tip": [
"Add completion. (one or more)\n",
"{{ $info.add.example }}"
]
},
{
"name": "rm",
"next": [
{
"name": "*",
"tip": [
"Remove all completions.\n",
"Note: psc will be automatically re-added after removing."
]
}
],
"tip": [
"Remove completion. (one or more)\n",
"{{ $info.rm.example }}"
]
},
{
"name": "update",
"tip": [
"Update completion. (one or more)\n",
"{{ $info.update.example }}"
],
"next": [
{
"name": "*",
"tip": [
"Update all completions that can be updated.\n",
"{{",
"if($PSCompletions.update){ \"List: $($PSCompletions.update -join ',')\" }",
"else{'All completions are the latest!'}",
"}}"
],
"options": [
{
"name": "--force",
"tip": [
"Force update of all added completions.\n",
"(It ensures that completions be latest.)"
]
}
]
}
]
},
{
"name": "search",
"tip": [
"Search completion. (Wildcard character can be used)\n",
"{{ $info.search.example }}"
],
"next": [
{
"name": "*",
"tip": [
"Search all available completions."
]
}
]
},
{
"name": "which",
"tip": [
"Locate completion storage location.\n",
"{{ $info.which.example }}"
],
"next": []
},
{
"name": "alias",
"tip": [
"Manage the alias that triggers completion.\n",
"Now it's a list, the initial list is the default trigger name, and you are free to add and remove aliases. (Include the default trigger name)\n",
"You can only add aliases without Spaces.\n",
"{{ $info.alias.example }}"
],
"next": [
{
"name": "list",
"tip": [
"Display all completion aliases."
]
},
{
"name": "add",
"tip": [
"Add one or more alias for the specified completion.\n",
"Note: It's add, not replace. Original name can also be used.\n",
" If you only want the new alias, you need to remove the original name after adding the new alias.\n",
"{{ $info.alias.add.example }}"
],
"next": []
},
{
"name": "rm",
"tip": [
"Remove completion alias.(one or more)\n",
"{{ $info.example.alias.rm.example }}"
],
"next": []
}
]
},
{
"name": "config",
"tip": [
"Get/Set the configuration.\n",
"{{ $info.config.example }}"
],
"next": [
{
"name": "language",
"tip": [
"Current Value: {{ $PSCompletions.language }}\n",
"Get or set the language of completions.\n",
"The language will affect all added completions unless you set a language for one of them by running 'psc completion xxx'.\n",
"For more information: https://github.com/abgox/PSCompletions/blob/main/README.md#about-language"
],
"next": [
{
"name": "zh-CN",
"tip": [
"Set the language to zh-CN.",
"{{ ",
"if(!$PSCompletions.config.url){",
" $gitee=$PSCompletions.config.gitee;",
" if($gitee){ \"`nAfter setting to zh-CN, when you add completion, it will be fetched from the Gitee repo. ($($gitee))\" }",
"}",
"}}"
]
}
]
},
{
"name": "disable_cache",
"tip": [
"Current Value: {{ $PSCompletions.config.disable_cache }}\n",
"Set whether to disable completion cache.\n",
"It usually does not need to be modified.\n",
"It's mainly used to debug updates of completion files. (each update will re-read the json file)"
],
"next": [
{
"name": "1",
"tip": [
"Set to 1\n",
"Disable completion cache.\n",
"It usually does not need to be modified.\n",
"It's mainly used to debug updates of completion files. (each update will re-read the json file)"
]
},
{
"name": "0",
"tip": [
"Set to 0 (Default)\n",
"Enable completion cache.\n",
"It will make the completion load faster, and it's recommended to keep the default."
]
}
]
},
{
"name": "enable_completions_update",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_completions_update }}\n",
"Set whether to show update message when loading PSCompletions module at first.(e.g. Updatable completions, New completions)"
],
"next": [
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Show update message when loading PSCompletions module at first."
]
},
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't show update message when loading PSCompletions module at first.\n",
"Note: It's not recommended to close it, because it will help you get the latest update information in time."
]
}
]
},
{
"name": "enable_module_update",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_module_update }}\n",
"Set whether to show update message when PSCompletions module has a new version.\n",
"Note: It's not recommended to close it. The remote repository always matches the latest version of PSCompletions.\n",
" If there is a module error, make sure you are using the latest version of the PSCompletions module."
],
"next": [
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Show update message when PSCompletions module has a new version."
]
},
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't show update message when PSCompletions module has a new version.\n",
"Note: It's not recommended to close it. The remote repository always matches the latest version of PSCompletions.\n",
" If there is a module error, make sure you are using the latest version of the PSCompletions module."
]
}
]
},
{
"name": "url",
"tip": [
"Current Value: \"{{ $PSCompletions.config.url }}\"\n",
"Set the url of the current remote completion data.\n",
"The default value is \"\", which means use the default repository (Github/Gitee)\n",
"{{ $info.config.url.example }}"
],
"next": [
{
"name": "\"\"",
"tip": [
"Set to \"\" (Default)\n",
"It means the repository will be selected based on the language (Github/Gitee)."
]
},
{
"name": "\"https://github.com/abgox/PSCompletions/raw/main\"",
"tip": [
"Use Github repo"
]
},
{
"name": "\"https://gitee.com/abgox/PSCompletions/raw/main\"",
"tip": [
"Use Gitee repo"
]
},
{
"name": "\"https://abgox.github.io/PSCompletions\"",
"tip": [
"An available url.\n",
"(Generated by Github Pages)"
]
}
]
},
{
"name": "function_name",
"tip": [
"Current Value: {{ $PSCompletions.config.function_name }}\n",
"Set the name of the core function exported by PSCompletions.\n",
"When you need to define a function called PSCompletions, you can use this configuration to change the default exported function name of the PSCompletions module to resolve conflicts."
],
"next": [
{
"name": "PSCompletions",
"tip": [
"Set to PSCompletions (Default)"
]
}
]
},
{
"name": "module_update_confirm_duration",
"tip": [
"Current Value: {{ $PSCompletions.config.module_update_confirm_duration }}\n",
"When the module has version update, the duration of the module update confirmation (milliseconds).\n",
"When it's exceeded, it will be automatically cancelled to avoid the process being stuck due to update confirmation."
],
"next": [
{
"name": "15000",
"tip": [
"Set to 15000 ms (Default)"
]
}
]
}
]
},
{
"name": "completion",
"tip": [
"Specify a configuration for a completion. (These configurations have the highest priority.)\n",
"By default, each completion has two configurations. (language|enable_tip)\n",
"{{ $info.completion.example }}"
],
"next": []
},
{
"name": "menu",
"tip": [
"Manage the configuration of the completion menu.\n",
"{{ $info.menu.example}}"
],
"next": [
{
"name": "symbol",
"tip": [
"Set some special symbols(»?!) in the completion tip.\n",
"They only exist in completions added via `psc add`.\n",
"For detail: https://pscompletions.abgox.com/command/#menu-symbol"
],
"next": [
{
"name": "SpaceTab",
"tip": [
"Current Value: {{ $PSCompletions.config.SpaceTab }}\n",
"You can hide it by the command. (psc menu symbol SpaceTab \"\")"
],
"next": [
{
"name": "»",
"tip": [
"Set to » (Default)."
]
},
{
"name": "\"\"",
"tip": [
"Set to \"\"\n",
"It can hide symbols, but it's not recommended.\n",
"It's more recommended that you modify them to your liking.\n",
"Because these symbols let you know if you can continue to get completions."
]
}
]
},
{
"name": "WriteSpaceTab",
"tip": [
"Current Value: {{ $PSCompletions.config.WriteSpaceTab }}\n",
"You can hide it by the command. (psc menu symbol WriteSpaceTab \"\")"
],
"next": [
{
"name": "!",
"tip": [
"Set to ! (Default)."
]
},
{
"name": "\"\"",
"tip": [
"Set to \"\"\n",
"It can hide symbols, but it's not recommended.\n",
"It's more recommended that you modify them to your liking.\n",
"Because these symbols let you know if you can continue to get completions."
]
}
]
},
{
"name": "OptionTab",
"tip": [
"Current Value: {{ $PSCompletions.config.OptionTab }}\n",
"You can hide it by the command. (psc menu symbol OptionTab \"\")"
],
"next": [
{
"name": "?",
"tip": [
"Set to ? (Default)."
]
},
{
"name": "\"\"",
"tip": [
"Set to \"\"\n",
"It can hide symbols, but it's not recommended.\n",
"It's more recommended that you modify them to your liking.\n",
"Because these symbols let you know if you can continue to get completions."
]
}
]
}
]
},
{
"name": "line_theme",
"tip": [
"Toggle the built-in border style theme of the completion menu.\n",
"You can also customize it by running 'psc menu custom line'\n",
"{{ $info.menu.line_theme.example }}"
],
"next": [
{
"name": "double_line_rect_border",
"tip": [
"Set to a double line rectangular border (default). Be like:\n",
"╔═════╗\n",
"║ ║\n",
"╚═════╝"
]
},
{
"name": "bold_line_rect_border",
"tip": [
"Set to a bold line rectangular border. Be like:\n",
"┏━━━━━┓\n",
"┃ ┃\n",
"┗━━━━━┛"
]
},
{
"name": "single_line_rect_border",
"tip": [
"Set to a single line rectangular border. Be like:\n",
"┌─────┐\n",
"│ │\n",
"└─────┘"
]
},
{
"name": "single_line_round_border",
"tip": [
"Set to a single line rounded border. Be like:\n",
"╭─────╮\n",
"│ │\n",
"╰─────╯"
]
},
{
"name": "boldTB_slimLR_border",
"tip": [
"Set the border. (Bold on top/bottom, slim on left/right.) Be like:\n",
"┍━━━━━┑\n",
"│ │\n",
"┕━━━━━┙"
]
},
{
"name": "slimTB_boldLR_border",
"tip": [
"Set the border. (Slim on top/bottom, bold on left/right.) Be like:\n",
"┎─────┒\n",
"┃ ┃\n",
"┖─────┚"
]
},
{
"name": "doubleTB_singleLR_border",
"tip": [
"Set the border. (Double line on top/bottom, single line on left/right.) Be like:\n",
"╒═════╕\n",
"│ │\n",
"╘═════╛"
]
},
{
"name": "singleTB_doubleLR_border",
"tip": [
"Set the border. (Single line on top/bottom, double line on left/right.) Be like:\n",
"╓─────╖\n",
"║ ║\n",
"╙─────╜"
]
}
]
},
{
"name": "color_theme",
"tip": [
"Toggle the built-in color theme of the completion menu.\n",
"You can also customize it by running 'psc menu custom color'\n",
"{{ $info.menu.color_theme.example }}"
],
"next": [
{
"name": "default",
"tip": [
"Set to default theme. (Dark theme)"
]
},
{
"name": "magenta",
"tip": [
"Set to magenta theme. (Light theme)"
]
}
]
},
{
"name": "custom",
"tip": [
"Customize the style of the completion menu.\n",
"{{ $info.menu.custom.example }}"
],
"next": [
{
"name": "color",
"tip": [
"Color-related custom configurations.\n",
"{{ $info.example.menu_custom_color }}"
],
"next": [
{
"name": "border_text",
"tip": [
"Current Value: {{ $PSCompletions.config.border_text }}\n",
"Foreground color of the border.\n",
"{{ $info.example.menu_custom_color_border_text }}"
],
"next": []
},
{
"name": "border_back",
"tip": [
"Current Value: {{ $PSCompletions.config.border_back }}\n",
"BackGround color of the border.\n",
"{{ $info.example.menu_custom_color_border_back }}"
],
"next": []
},
{
"name": "item_text",
"tip": [
"Current Value: {{ $PSCompletions.config.item_text }}\n",
"Foreground color of the completion item.\n",
"{{ $info.example.menu_custom_color_item_text }}"
],
"next": []
},
{
"name": "item_back",
"tip": [
"Current Value: {{ $PSCompletions.config.item_back }}\n",
"BackGround color of the completion item.\n",
"{{ $info.example.menu_custom_color_item_back }}"
],
"next": []
},
{
"name": "selected_text",
"tip": [
"Current Value: {{ $PSCompletions.config.selected_text }}\n",
"Foreground color of the selected item.\n",
"{{ $info.example.menu_custom_color_selected_text }}"
],
"next": []
},
{
"name": "selected_back",
"tip": [
"Current Value: {{ $PSCompletions.config.selected_back }}\n",
"BackGround color of the selected item.\n",
"{{ $info.example.menu_custom_color_selected_back }}"
],
"next": []
},
{
"name": "filter_text",
"tip": [
"Current Value: {{ $PSCompletions.config.filter_text }}\n",
"Foreground color of the filter box (Top left corner).\n",
"{{ $info.example.menu_custom_color_filter_text }}"
],
"next": []
},
{
"name": "filter_back",
"tip": [
"Current Value: {{ $PSCompletions.config.filter_back }}\n",
"BackGround color of the filter box (Top left corner).\n",
"{{ $info.example.menu_custom_color_filter_back }}"
],
"next": []
},
{
"name": "status_text",
"tip": [
"Current Value: {{ $PSCompletions.config.status_text }}\n",
"Foreground color of the completion number display (Bottom left corner).\n",
"{{ $info.example.menu_custom_color_status_text }}"
],
"next": []
},
{
"name": "status_back",
"tip": [
"Current Value: {{ $PSCompletions.config.status_back }}\n",
"BackGround color of the completion number display (Bottom left corner).\n",
"{{ $info.example.menu_custom_color_status_back }}"
],
"next": []
},
{
"name": "tip_text",
"tip": [
"Current Value: {{ $PSCompletions.config.tip_text }}\n",
"Foreground color of the completion tip.\n",
"{{ $info.example.menu_custom_color_tip_text }}"
],
"next": []
},
{
"name": "tip_back",
"tip": [
"Current Value: {{ $PSCompletions.config.tip_back }}\n",
"BackGround color of the completion tip.\n",
"{{ $info.example.menu_custom_color_tip_back }}"
],
"next": []
}
]
},
{
"name": "line",
"tip": [
"Line-related custom configurations.\n",
"{{ $info.example.menu_custom_line }}"
],
"next": [
{
"name": "horizontal",
"tip": [
"Current Value: \"{{ $PSCompletions.config.horizontal }}\"\n",
"The horizontal line of the border.\n",
"{{ $info.example.menu_custom_line_horizontal }}"
],
"next": [
{
"name": "═",
"tip": [
"Default value."
]
},
{
"name": "━"
},
{
"name": "─"
},
{
"name": "┄"
},
{
"name": "┅"
},
{
"name": "┈"
},
{
"name": "┉"
}
]
},
{
"name": "vertical",
"tip": [
"Current Value: \"{{ $PSCompletions.config.vertical }}\"\n",
"The vertical line of the border.\n",
"{{ $info.example.menu_custom_line_vertical }}"
],
"next": [
{
"name": "║",
"tip": [
"Default value."
]
},
{
"name": "┃"
},
{
"name": "│"
},
{
"name": "┆"
},
{
"name": "┇"
},
{
"name": "┊"
},
{
"name": "┋"
}
]
},
{
"name": "top_left",
"tip": [
"Current Value: \"{{ $PSCompletions.config.top_left }}\"\n",
"Top left corner of the border.\n",
"{{ $info.example.menu_custom_line_top_left }}"
],
"next": [
{
"name": "╔",
"tip": [
"Default value."
]
},
{
"name": "┏"
},
{
"name": "┌"
},
{
"name": "╭"
},
{
"name": "┍"
},
{
"name": "┎"
},
{
"name": "╒"
},
{
"name": "╓"
}
]
},
{
"name": "bottom_left",
"tip": [
"Current Value: \"{{ $PSCompletions.config.bottom_left }}\"\n",
"Bottom left corner of the border.\n",
"{{ $info.example.menu_custom_line_bottom_left }}"
],
"next": [
{
"name": "╚",
"tip": [
"Default value."
]
},
{
"name": "┗"
},
{
"name": "└"
},
{
"name": "╰"
},
{
"name": "┕"
},
{
"name": "┖"
},
{
"name": "╘"
},
{
"name": "╙"
}
]
},
{
"name": "top_right",
"tip": [
"Current Value: \"{{ $PSCompletions.config.top_right }}\"\n",
"Top right corner of the border.\n",
"{{ $info.example.menu_custom_line_top_right }}"
],
"next": [
{
"name": "╗",
"tip": [
"Default value."
]
},
{
"name": "┓"
},
{
"name": "┐"
},
{
"name": "╮"
},
{
"name": "┑"
},
{
"name": "┒"
},
{
"name": "╕"
},
{
"name": "╖"
}
]
},
{
"name": "bottom_right",
"tip": [
"Current Value: \"{{ $PSCompletions.config.bottom_right }}\"\n",
"Bottom right corner of the border.\n",
"{{ $info.example.menu_custom_line_bottom_right }}"
],
"next": [
{
"name": "╝",
"tip": [
"Default value."
]
},
{
"name": "┛"
},
{
"name": "┘"
},
{
"name": "╯"
},
{
"name": "┙"
},
{
"name": "┚"
},
{
"name": "╛"
},
{
"name": "╜"
}
]
}
]
}
]
},
{
"name": "config",
"tip": [
"Some other custom configurations for the completion menu.\n",
"{{ $info.menu.config.example }}"
],
"next": [
{
"name": "enable_enter_when_single",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_enter_when_single }} (Default: 0)\n",
"When there is only one completion item, whether to enter it directly instead of displaying the completion menu."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0 (Default)\n",
"Even if there is only one completion item, the menu is displayed first.\n",
"You can press the Tab or Space key again to enter the completion item."
]
},
{
"name": "1",
"tip": [
"Set to 1\n",
"When there is only one completion item, it will be entered directly."
]
}
]
},
{
"name": "enable_menu",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_menu }} (Default: 1, it means enabled.)\n",
"Set whether to use the completion menu provided by the PSCompletions module.\n",
"If you are not using PowerShell (pwsh) on a Windows system, it's invalid."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Use PowerShell's built-in completion menu."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Use the completion menu provided by the PSCompletions module."
]
}
]
},
{
"name": "height_from_menu_bottom_to_cursor_when_above",
"tip": [
"Current Value: {{ $PSCompletions.config.height_from_menu_bottom_to_cursor_when_above }} (Default: 0)\n",
"It must be greater than or equal to 0.\n",
"Set the distance between the bottom of the menu and the input cursor when the completion menu is displayed above."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0 (Default)"
]
},
{
"name": "2"
},
{
"name": "3"
}
]
},
{
"name": "enable_list_cover_buffer",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_list_cover_buffer }} (Default: 0, it means disabled.)\n",
"Set whether to overwrite the original content of each line in the area where the completion list is displayed.\n",
"(Restores when exiting the complete menu)\n",
"If set to 0, only a small area of the content needed for display is overwritten."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0 (Default)\n",
"Only a small area of the content needed for display is overwritten."
]
},
{
"name": "1",
"tip": [
"Set to 1\n",
"Overwrite the original content of each line in the region."
]
}
]
},
{
"name": "enable_tip_cover_buffer",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_tip_cover_buffer }} (Default: 1, it means enabled.)\n",
"Set whether to overwrite the original content of each line in the area where it is located and its neighboring areas when displaying a completion tip.\n",
"(Restores when exiting the complete menu)"
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Only a small area of the content needed for display is overwritten."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Overwrite the original content of each line in the area where it is located and its neighboring areas."
]
}
]
},
{
"name": "enable_tip",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_tip }} (Default: 1, it means enabled.)\n",
"Set whether to show the completion tip.\n",
"(If the display area of the PowerShell is too small, it automatically hides the completion tip.)"
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't show the completion tip."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Show the completion tip."
]
}
]
},
{
"name": "trigger_key",
"tip": [
"当前值: \"{{ $PSCompletions.config.trigger_key }}\" (Default: \"Tab\")\n",
"Setting the key that triggers the completion menu."
],
"next": [
{
"name": "Tab",
"tip": [
"Set to Tab key (Default)"
]
}
]
},
{
"name": "enable_tip_follow_cursor",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_tip_follow_cursor }} (Default: 1, it means enabled.)\n",
"Set whether the completion tip is displayed following the input cursor."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't follow the input cursor."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Follow the input cursor."
]
}
]
},
{
"name": "enable_list_follow_cursor",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_list_follow_cursor }} (Default: 1, it means enabled.)\n",
"Set whether the completion list is displayed following the input cursor."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't follow the input cursor."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Follow the input cursor."
]
}
]
},
{
"name": "enable_prefix_match_in_filter",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_prefix_match_in_filter }} (Default: 0, it means using fuzzy matching.)\n",
"Set whether the menu uses prefix matching mode for completion list filtering.\n",
"If use prefix matching mode (set to 1), the common prefix of the current completion list will be automatically extracted."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0 (Default)\n",
"It means using fuzzy matching."
]
},
{
"name": "1",
"tip": [
"Set to 1\n",
"It means using prefix matching.\n",
"The common prefix of the current completion list will be automatically extracted."
]
}
]
},
{
"name": "enable_path_with_trailing_separator",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_path_with_trailing_separator }} (Default: 1)\n",
"Set whether path completion has a trailing separator.\n",
"With: C:\\Users\\abgox\\\n",
"Without: C:\\Users\\abgox"
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Without a trailing separator.\n",
"e.g. C:\\Users\\abgox"
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"With a trailing separator.\n",
"e.g. C:\\Users\\abgox\\"
]
}
]
},
{
"name": "enable_list_loop",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_list_loop }} (Default: 1)\n",
"Set whether the menu list is displayed with a loop."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"It means to display the completion menu list without a loop."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"It means to display the completion menu list with a loop."
]
}
]
},
{
"name": "list_max_count_when_above",
"tip": [
"Current Value: {{ $PSCompletions.config.list_max_count_when_above }} (Default: -1)\n",
"Set the maximum number of completion items to be displayed on the first page when the completion menu is displayed above the cursor.\n",
"If it's -1, it means to display as many completions as possible according to the available height."
],
"next": [
{
"name": "-1",
"tip": [
"Set to -1 (Default)\n",
"Display as many completions as possible according to the available height."
]
}
]
},
{
"name": "list_max_count_when_below",
"tip": [
"Current Value: {{ $PSCompletions.config.list_max_count_when_below }} (Default: -1)\n",
"Set the maximum number of completion items to be displayed on the first page when the completion menu is displayed below the cursor.\n",
"If it's -1, it means to display as many completions as possible according to the available height."
],
"next": [
{
"name": "-1",
"tip": [
"Set to -1 (Default)\n",
"Display as many completions as possible according to the available height."
]
}
]
},
{
"name": "between_item_and_symbol",
"tip": [
"Current Value: \"{{ $PSCompletions.config.between_item_and_symbol }}\" (Default: \" \")\n",
"Set the separator between the completion item and the symbol when there is a symbol after the completion item."
],
"next": [
{
"name": "\" \"",
"tip": [
"Set to \" \" (Default)\n",
"Add a space between each completion item and symbol."
]
}
]
},
{
"name": "enable_selection_with_margin",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_selection_with_margin }} (Default: 1, it means enabled.)\n",
"When the margin of the completion list is set, whether the selection style of the currently selected item contains margin."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't include margin in the selection style of the currently selected item."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Include margin in the selection style of the currently selected item."
]
}
]
},
{
"name": "list_min_width",
"tip": [
"Current Value: {{ $PSCompletions.config.list_min_width }} (Default: 10)\n",
"Set the minimum width of the completion list area in the completion menu."
],
"next": [
{
"name": "10",
"tip": [
"Set 10 (Default)\n",
"When the width of the completion list area is less than 10, the width will be filled with 10 to avoid menu display errors."
]
}
]
},
{
"name": "width_from_menu_left_to_item",
"tip": [
"Current Value: {{ $PSCompletions.config.width_from_menu_left_to_item }} (Default: 0)\n",
"Set the spacing between the completion item area and the left border in the completion menu."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0 (Default)"
]
}
]
},
{
"name": "width_from_menu_right_to_item",
"tip": [
"Current Value: {{ $PSCompletions.config.width_from_menu_right_to_item }} (Default: 0)\n",
"Set the spacing between the completion item area and the right border in the completion menu."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0 (Default)"
]
}
]
},
{
"name": "status_symbol",
"tip": [
"Current Value: \"{{ $PSCompletions.config.status_symbol }}\" (Default: \"/\")\n",
"Set the spacer between the current and total count, which is in the bottom left corner."
],
"next": [
{
"name": "/",
"tip": [
"Set \"/\" (Default)"
]
}
]
},
{
"name": "filter_symbol",
"tip": [
"Current Value: \"{{ $PSCompletions.config.filter_symbol }}\" (Default: \"[]\")\n",
"Set the symbols on the left and right of the filter area, which is in the top left corner.\n",
"It requires two characters."
],
"next": [
{
"name": "[]",
"tip": [
"Set \"[]\" (Default)"
]
}
]
},
{
"name": "enable_completions_sort",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_completions_sort }} (Default: 1, it means enabled.)\n",
"Set whether to dynamically sort the completion list based on command history."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't dynamically sort completion list based on command history."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Dynamically sort completion list based on command history."
]
}
]
},
{
"name": "enable_menu_enhance",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_menu_enhance }} (Default 1, it means enabled)\n",
"Set whether to override PowerShell's built-in completion menu.\n",
"More info: https://github.com/abgox/PSCompletions/blob/main/README.md#about-menu-enhance\n",
" https://gitee.com/abgox/PSCompletions/blob/main/README.md#about-menu-enhance\n"
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"More info: https://github.com/abgox/PSCompletions/blob/main/README.md#about-menu-enhance\n",
" https://gitee.com/abgox/PSCompletions/blob/main/README.md#about-menu-enhance\n"
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"More info: https://github.com/abgox/PSCompletions/blob/main/README.md#about-menu-enhance\n",
" https://gitee.com/abgox/PSCompletions/blob/main/README.md#about-menu-enhance\n"
]
}
]
},
{
"name": "enable_tip_when_enhance",
"tip": [
"Current Value: {{ $PSCompletions.config.enable_tip_when_enhance }} (Default 1, it means enabled)\n",
"For completions not added via 'psc add', if there're completion tip, whether to display it."
],
"next": [
{
"name": "0",
"tip": [
"Set to 0\n",
"Don't show the completion tip."
]
},
{
"name": "1",
"tip": [
"Set to 1 (Default)\n",
"Show the completion tip."
]
}
]
}
]
}
]
},
{
"name": "reset",
"tip": [
"Reset the specified configuration to the default\n",
"{{ $info.reset.example }}"
],
"next": [
{
"name": "*",
"tip": [
"Reset the entire PSCompletions module.\n",
"Except for the core code of the module, all other content is removed."
]
},
{
"name": "config",
"tip": [
"Reset some configurations.\n",
"Include configuration items under the command ('psc config')."
]
},
{
"name": "alias",
"tip": [
"Reset all completions or specified completions to the default completion trigger name.\n",
"{{ $info.reset.alias.example }}"
],
"next": [
{
"name": "*",
"tip": [
"Reset all completions to the default completion trigger name."
]
}
]
},
{
"name": "order",
"tip": [
"Reset all order.\n",
"It just removes the order sort file, which will be regenerated when the next completion is triggered.\n",
"If you do not want to sort by command history, you should disable sorting by running 'psc config enable_completions_sort 0'."
]
},
{
"name": "completion",
"tip": [
"Reset(Remove) the special configuration of all completions or specified completions.\n",
"{{ $info.reset.completion.example }}"
],
"next": [
{
"name": "*",
"tip": [
"Reset(Remove) the special configuration of all completions.\n",
"Include all configurations under the command ('psc completion')."
]
}
]
},
{
"name": "menu",
"tip": [
"Reset the configuration of the completion menu.\n",
"{{ $info.reset.menu.example }}"
],
"next": [
{
"name": "*",
"tip": [
"Reset all configurations of the completion menu.\n",
"Include all configuration items under the command ('psc menu')."
]
},
{
"name": "symbol",
"tip": [
"Reset symbols to default values.\n",
"SpaceTab => »\n",
"WriteSpaceTab => !\n",
"OptionTab => ?"
]
},
{
"name": "line",
"tip": [
"Rest the line-related configurations of the completion menu.\n",
"Include all configuration items under the command ('psc menu custom line')."
]
},
{
"name": "color",
"tip": [
"Rest the color-related configurations of the completion menu.\n",
"Include all configuration items under the command ('psc menu custom color')."
]
},
{
"name": "config",
"tip": [
"Reset other custom configurations of the completion menu.\n",
"Include all configuration items under the command ('psc menu config')."
]
}
]
}
]
}
],
"info": {
"completion_info": {
"url": "https://github.com/abgox/PSCompletions",
"description": [
"PSCompletions module's completion tips.\n",
"It can only be updated, not removed.\n",
"If removed, it will be automatically added again."
]
},
"desc": [
"<@Cyan>Current module version: <@Magenta>{{ $PSCompletions.version }}<@Cyan>\n",
"Module version log:\n",
" Github: <@Blue>https://github.com/abgox/PSCompletions/blob/main/module/CHANGELOG.md<@Cyan>\n",
" Gitee : <@Blue>https://gitee.com/abgox/PSCompletions/blob/main/module/CHANGELOG.md<@Cyan>\n",
"\n",
"<@Blue>PSCompletions<@Cyan> is simple, you just need to enter <@Magenta>psc<@Cyan>, press <@Magenta>Space<@Cyan> and <@Magenta>Tab<@Cyan> key, you will quickly learn all usages by reading the completion tip.\n",
"\n",
"<@Blue>PSCompletions<@Cyan> will take up two global names.\n",
" <@Magenta>PSCompletions<@Cyan> => A function name. The core function of the module export. (<@Magenta>psc<@Cyan> is actually its alias.)\n",
" <@Magenta>$PSCompletions<@Cyan> => A variable name. Save all data related to the module. (<@Yellow>You can't modify it.<@Cyan>)\n",
"\n",
"For more information, please visit the project:\n",
" Website : <@Blue>https://pscompletions.abgox.com<@Cyan>\n",
" Github : <@Blue>https://github.com/abgox/PSCompletions<@Cyan>\n",
" Gitee : <@Blue>https://gitee.com/abgox/PSCompletions<@Cyan>\n",
"When you have a problem using it, you can submit an issue. https://github.com/abgox/PSCompletions/issues\n",
"If <@Blue>PSCompletions<@Cyan> is helpful to you, please consider giving it a <@Yellow>Star<@Cyan>.\n"
],
"description": [
"<@Blue>PSCompletions(<@Magenta>psc<@Cyan>) --- PowerShell Completions Manager Module\n",
"{{ $PSCompletions.info.desc }}"
],
"init_info": [
"\n<@Yellow>PSCompletions module install warning (The display is initialized for the first time only):\n",
"You should not be in the following case:\n",
" 1. Install the PSCompletions module in the built-in Windows PowerShell on the Windows system started in administrator mode.\n",
" 2. The installation is accidentally using <@Magenta>-Scope AllUser<@Yellow>\n",
"If you are in the case, you should use <@Magenta>-Scope CurrentUser<@Yellow> to reinstall the module, unless you are in the following case:\n",
" 1. You already know that the PSCompletions module installed in administrator mode can have permission issues when used with user mode.\n",
" 2. You always use the administrator mode to open PowerShell, and never use the user mode.\n\n",
"<@Blue>Full installation command: <@Magenta>Install-Module PSCompletions -Scope CurrentUser<@Cyan>\n\n",
"---------------------------------------------------------------------\n",
"<@Cyan>✨✨✨PSCompletions(<@Magenta>psc<@Cyan>) --- init successfully!✨✨✨\n",
"<@Yellow>The following is displayed for the first time only, you can also see it by running <@Magenta>psc<@Yellow><@Cyan>\n",
"{{ $PSCompletions.info.desc }}"
],
"err": {
"download_list": [
"<@Red>Failed to get the completions list, please check the network or try again later.\n",
"The error url: {{ $PSCompletions._invalid_url }}\n",
"If you're sure that your network is working and you're still getting errors, please submit an issue. ( https://github.com/abgox/PSCompletions/issues )"
],
"download_file": [
"<@Red>File {{ Split-path $download_info.url -leaf }} download failed, please check the network or try again later.\n",
"Download url: {{ $download_info.url }}\n",
"Save path : {{ $download_info.file }}\n",
"If you are sure that your network is working and you are still getting errors, please submit an issue. ( https://github.com/abgox/PSCompletions/issues )"
],
"alias_conflict": [
"<@Yellow>Alias <@Magenta>{{ $conflict_alias_list -join ' ' }}<@Yellow> already exists, please handle alias conflicts manually."
]
},
"module": {
"update": [
"<@Yellow>Now PSCompletions module can be updated! Update?\n",
"(The added completion will be automatically migrated.)\n",
"<@Magenta>{{ $PSCompletions.version }}<@Cyan> => <@Magenta>{{ $PSCompletions.config.enable_module_update }}\n<@Cyan>",
"{{ ",
"$version_list=$PSCompletions.get_raw_content(\"$($PSCompletions.path.temp)\\CHANGELOG.json\") | ConvertFrom-Json;",
"$lang = if($PSCompletions.language -eq 'zh-CN'){ 'zh-CN' }else{ 'en-US' };",
"foreach($_ in $version_list) {",
" if($_.version -eq $PSCompletions.version){ break }",
" \"`n<@Blue>$($_.version) : $($_.info.$($lang))\"",
"}",
"}}\n",
"<@Cyan>Press <@Magenta>Enter<@Cyan> key to update or <@Magenta>other key(Without Ctrl)<@Cyan> to cancel!\n",
"<@Yellow>Automatically cancel if no keypress is received within {{ $PSCompletions.config.module_update_confirm_duration }} milliseconds."
],
"updating": "<@Cyan>Try to run the command: <@Magenta>{{ $update_cmd }}<@Cyan>\nTrying to update PSCompletions module...",
"restart": "<@Yellow>The change takes effect after restarting PowerShell and reimporting PSCompletions module."
},
"current_value": "Current Value",
"set_value": "Set to {{ $value }}.",
"update_info": [
"<@Cyan>PSCompletions remote repository update:\n",
"{{",
"$change=$PSCompletions.get_content($PSCompletions.path.change);",
"$add=@();",
"$rm=@();",
"$change | ForEach-Object{ if($_ -in $PSCompletions.list){ $add += $_ }else{ $rm += $_ } };",
"if($add){ \"Add: <@Magenta>$($add)<@Cyan>`nUse <@Magenta>psc add <completion><@Cyan> to add.`n`n\" };",
"if($rm){ \"Delete: <@Magenta>$($rm)<@Cyan>`n`n\" };",
"if($PSCompletions.update){ \"Update: <@Magenta>$($PSCompletions.update)<@Cyan>`nUse <@Magenta>psc update *<@Cyan> to update.`n`n\" };",
"}}",
"You can hide this update tip by running <@Blue>psc config enable_completions_update 0<@Cyan>\n",
"But it's not recommended to hide it, it's a kind tip."
],
"update_has": [
"<@Cyan>--------------------\n",
"Updatable completions: <@Blue>{{ $PSCompletions.update -join ' ' }}<@Cyan>\n",
"You can update them by running the following command:\n",
"<@Magenta>psc update *"
],
"update_no": [
"<@Cyan>--------------------\n",
"<@Green>All the completions are up to date!"
],
"param_min": "<@Red>Too few parameters.",
"param_max": "<@Red>Too many parameters.",
"param_err": "<@Red>Parameter error.",
"sub_cmd": [
"{{",
"if($sub_cmd){\"<@Red>Subcommand <@Magenta>$($sub_cmd)<@Red> error`n\"};",
"if($cmd_list){",
"\"<@Yellow>You should select a subcommand from the subcommand list below.`n\";",
"\"<@Blue>-------------------`n\";",
"\"<@Magenta>$($cmd_list -join \"`n\")<@Yellow>`n\";",
"\"<@Blue>-------------------\";",
"};",
"if($cmd_info){ \"<@Red>$($cmd_info)\" };",
"}}"
],
"no_completion": "<@Red>You haven't added <@Magenta>{{ $completion }}<@Red> yet.",
"confirm_cancel": "<@Green>The operation has been canceled.",
"less_tip": "<@Cyan>Press <@Magenta>Enter<@Cyan> key to view more, or any <@Magenta>other key<@Cyan> to exit! (<@Magenta>{{ $lines }}<@Cyan> lines remaining)",
"min_area": "The area is too small!",
"example_color": "<@Cyan>",
"list": {
"add_symbol": "🔴",
"added_symbol": "🟢",
"symbol_tip": "\n<@Yellow>🟢 : You have added it. 🔴 : You haven't added it yet.",
"example": [
"E: psc list --- Display a list of locally installed completions\n",
" psc list --remote --- Display remote completions list"
]
},
"add": {
"tip": "Add completion --- {{ $completion }}",
"example": [
"E: psc add git --- Add git\n",
" psc add git docker --- Add git,docker"
],
"doing": "<@Cyan>Adding completion --- <@Magenta>{{ $completion }}",
"show_alias": "<@Yellow>The default trigger alias for this completion are: <@Magenta>{{ $config.alias -join ' ' }}",
"done": [
"<@Green>Completion <@Magenta>{{ $completion }}<@Green> add completed.\n",
"Completion file directory: <@Blue>{{ $completion_dir }}\n",
"{{",
" if($json.config -or $config.hooks -ne $null){",
"\"<@Blue>---------- The special configuration of $($completion)---------- \";",
"$configList = @();",
"if($config.hooks -ne $null){$configList += @{name='enable_hooks';value=[int]$config.hooks;tip=$PSCompletions.info.completion.enable_hooks.tip};};",
"if($json.config){$configList += $json.config;};",
" $config_list = $configList | ForEach-Object {",
" \"`n<@Magenta>$($_.name)<@Blue>:`nDefault Value: $($_.value)`n$($PSCompletions.replace_content($_.tip))\" ",
" };",
" $config_list -join \"`n\";",
" \"`n<@Blue>-------------------------------------------\";",
"};",
"}}"
],
"err": {
"min": [
"<@Yellow>",
"You should continue entering the completion name you want to add.\n",
"You can enter more names, separated by spaces."
],
"no": [
"<@Red>Completion <@Magenta>{{ $completion }}<@Red> does not exist in the completions list.\n",
"It's recommended to enter <@Magenta>psc add<@Red>, then press <@Magenta>Space<@Red> and <@Magenta>Tab<@Red> to complete."
]
}
},
"rm": {
"tip": "Remove completion --- {{ $completion }}",
"example": [
"E: psc rm git --- Remove git\n",
" psc rm git docker --- Remove git,docker"
],
"done": "<@Green>Completion <@Magenta>{{ $completion }}<@Green> has been removed.",
"err": {
"min": [
"<@Yellow>",
"You should continue entering the completion name you want to remove.\n",
"You can enter more names, separated by spaces."
]
}
},
"update": {
"tip": "Update completion --- {{ $completion }}",
"example": [
"E: psc update --- Check update\n",
" psc update * --- Update all completions\n",
" psc update psc --- Update psc\n",
" psc update psc git bun --- Update psc,git,bun"
],
"doing": "<@Cyan>Updating completion ---<@Magenta> {{ $completion }}",
"done": [
"<@Green>Completion <@Magenta>{{ $completion }}<@Green> update completed.\n",
"Completion file directory: <@Blue>{{ $completion_dir }}\n",
"{{",
" if($json.config -or $config.hooks -ne $null){",
"\"<@Blue>---------- The special configuration of $($completion)---------- \";",
"$configList = @();",
"if($config.hooks -ne $null){$configList += @{name='enable_hooks';value=[int]$config.hooks;tip=$PSCompletions.info.completion.enable_hooks.tip};};",
"if($json.config){$configList += $json.config;};",
" $config_list = $configList | ForEach-Object {",
" \"`n<@Magenta>$($_.name)<@Blue>:`nDefault Value: $($_.value)`n$($PSCompletions.replace_content($_.tip))\" ",
" };",
" $config_list -join \"`n\";",
" \"`n<@Blue>-------------------------------------------\";",
"};",
"}}"
]
},
"search": {
"example": [
"E: psc search * --- Show all installable completions\n",
" psc search p* --- Search for completion starting with p in the name\n",
" psc search *p* --- Search for completion with p in the name"
],
"err": {
"min": [
"<@Yellow>",
"You should continue to enter a matching string with *.\n",
"If you do not use *, please enter the full name.\n",
"ou can also just enter * to see all available completions."
],
"no": "<@Yellow>No matching completions found!"
}
},
"which": {
"tip": "Locate completion storage location --- {{ $completion }}",
"example": [
"E: psc which git --- Get the location of git\n",
" psc which git docker --- Get the location of git and docker"
],
"err": {
"min": [
"<@Yellow>",
"You should continue to enter the name of the completion you want to find the storage location for.\n",
"You can enter more names, separated by spaces."
]
}
},
"alias": {
"example": [
"E: psc alias list --- List all aliases\n",
" psc alias add git g gi ./g --- Add g gi ./g as git alias\n",
" psc alias rm g --- Remove g alias"
],
"done": [
"{{",
"if($arg[1] -eq 'add') {",
"foreach($_ in $add_list){ \"<@Magenta>$($completion)<@Green> add an alias <@Magenta>$_<@Green>`n\" };",
"\"<@Green>Now <@Magenta>$($completion)<@Green>'s available alias: <@Magenta>$($PSCompletions.data.alias.$completion -join ' ') $($add_list -join ' ')\"",
"}",
"elseif($arg[1] -eq 'rm') {",
"foreach($_ in $rm_list){ \"<@Magenta>$($completion)<@Green> remove an alias <@Magenta>$_<@Green>`n\" };",
"\"<@Green>Now <@Magenta>$($completion)<@Green>'s available alias: <@Magenta>$(($PSCompletions.data.alias.$completion | Where-Object { $_ -notin $rm_list }) -join ' ')\"",
"}",
"}}"
],
"list": {
"example": [
"E: psc alias list --- List all aliases"
]
},
"add": {
"tip": [
"{{ \"Current aliases: $($PSCompletions.data.alias.$completion -join ' ')\" }}\n",
"Add one or more aliases for {{ $completion }}."
],
"example": [
"E: psc alias add git g gi --- Add g,gi as git alias\n",
" psc alias add scoop scoop.ps1 --- Add scoop.ps1 as scoop alias"
],
"err": {
"min_k": [
"<@Yellow>",
"You should continue to enter a completion name that is already installed.\n",
"Then enter one or more alias you want to add."
],
"min_v": [
"<@Yellow>",
"You need to continue entering one or more alias that you want to add for {{ $completion }}."
],
"exist": "<@Red>Alias <@Magenta>{{ $alias }}<@Red> is invalid, <@Magenta>{{ $alias }}<@Magenta><@Red> is already an alias for {{ $completion }}.",
"cmd_exist": "<@Red>Alias <@Magenta>{{ $alias }}<@Red> is invalid, <@Magenta>{{ $alias }}<@Magenta><@Red> already exists, please set other alias."
}
},
"rm": {
"tip": "Remove one or more aliases for {{ $completion }}.",
"tip_v": [
"Remove this alias."
],
"example": [
"E: psc alias rm git g gi --- Remove aliases (g,gi) for git\n",
" psc alias rm scoop scoop.ps1 --- Remove alias (scoop.ps1) for scoop"
],
"err": {
"min_k": [
"<@Yellow>",
"You should continue to enter a completion name that is already installed.\n",
"Then enter one or more alias you want to remove."
],
"min_v": [
"<@Yellow>",
"You need to continue entering one or more alias that you want to remove for {{ $completion }}."
],
"no_alias": "<@Magenta>{{ $alias }}<@Red> isn't the alias of {{ $completion }}",
"unique": [
"<@Magenta>{{ $alias }}<@Red> cannot be removed because it's the only alias of <@Magenta>{{ $completion }}<@Red>.\n",
"If you want to change it, you should first add a new alias and then remove the old alias."
]
}
}
},
"config": {
"example": [
"E: psc config language --- Get language\n",
" psc config language zh-CN --- Set to zh-CN"
],
"done": [
"<@Green>PSCompletions's configuration modified successfully!\n",
"<@Blue>{{ $config_item }}<@Green>: <@Magenta>{{ $old_value }}<@Green> => <@Magenta>{{ $new_value }}"
],
"err": {
"one_or_zero": [
"<@Magenta>{{ $config_item }}<@Yellow> just need a value, number 1 or 0.\n",
"1 mean enabled, and 0 mean disabled."
]
},
"language": {
"err": "<@Magenta>{{ $config_item }}<@Yellow> just need a value, like <@Magenta>zh-CN<@Yellow>",
"example": [
"E: psc config language --- Get language\n",
" psc config language zh-CN --- Set to zh-CN"
]
},
"disable_cache": {
"example": [
"E: psc config disable_cache 1 --- Disable cache\n",
" psc config disable_cache 0 --- Enable cache"
]
},
"update": {
"example": [
"E: psc config enable_completions_update 1 --- Show completion update\n",
" psc config enable_completions_update 0 --- Hide completion update"
]
},
"module_update": {
"example": [
"E: psc config enable_module_update 1 --- Show module update\n",
" psc config enable_module_update 0 --- Hide module update"
]
},
"url": {
"err": [
"<@Magenta>{{ $config_item }}<@Yellow> just need a value, a url. (https://xxx)\n",
"The url must be valid, and its directory structure should be the same as that of the repository."
],
"example": [
"E: psc config url --- Get current url\n",
" psc config url https://abgox.github.io/PSCompletions --- Set url"
]
},
"function_name": {
"err": "<@Magenta>{{ $config_item }}<@Yellow> need a value, and it cannot be an existing command.",
"example": [
"E: psc config function_name --- Get current function name\n",
" psc config function_name PSCompletions --- Set function name"
]
},
"module_update_confirm_duration": {
"err": "<@Magenta>{{ $config_item }}<@Yellow> need a number greater than or equal to 0.",
"example": [
"E: psc config module_update_confirm_duration\n",
" psc config module_update_confirm_duration 15000"
]
}
},
"completion": {
"tip": [
"Set special configuration for {{ $completion }}.\n",
"Special configurations have higher priority than global configurations."
],
"example": [
"E: psc completion psc enable_tip --- If it has a value, return the value\n",
" psc completion psc enable_tip 0 --- Set psc completion to not display tip\n",
" psc completion psc language zh-CN --- Set the psc completion language to zh-CN"
],
"done": [
"<@Magenta>{{ $completion }}<@Green>'s special configuration modified successfully!\n",
"<@Blue>{{ $config_item }}<@Green>: <@Magenta>{{ $old_value }}<@Green> => <@Magenta>{{ $new_value }}"
],
"err": {
"min": [
"<@Yellow>",
"You should continue to enter the configuration items to be set\n",
"By default, each completion comes with two special configurations. (<@Magenta>language<@Yellow>|<@Magenta>enable_tip<@Yellow>)\n",
"{{",
"$config = $PSCompletions.config.comp_config.$($arg[1]).Keys | Where-Object { $_ -notin @('language','enable_tip') };",
"if($config){ \"$($arg[1])'s additional special configuration: <@Magenta>$($config -join ' ')\" }",
"}}"
]
},
"language": {
"tip": [
"{{",
"$v = $PSCompletions.config.comp_config.$completion.language;",
"if($v -notin @('',$null)){ \"Current Value: $($v)`n\" }",
"}}",
"Set the language of {{ $completion }}."
],
"tip_v": "Set language to {{ $language }}."
},
"enable_tip": {
"tip": [
"{{",
"$v = $PSCompletions.config.comp_config.$completion.enable_tip;",
"if($v -notin @('',$null)){ \"Current Value: $($v)`n\" }",
"}}",
"Set whether to display completion tip for {{ $completion }}."
]
},
"enable_hooks": {
"tip": [
"{{",
"$_value = $PSCompletions.config.comp_config.$completion.enable_hooks;",
"if($_value -ne $null){ \"Current Value: <@Magenta>$_value<@Blue>`n\" }",
"}}",
"Set whether to enable hooks.\n",
"The hooks will parse or generate some completion data and add them dynamically.\n",
"You can disable it by running the command (<@Magenta>psc completion {{ $completion }} enable_hooks 0<@Blue>)."
]
}
},
"menu": {
"example": [
"E: psc menu config enable_tip 0 --- Hide completion tip\n",
" psc menu symbol SpaceTab \"\" --- Hide symbol\n",
" psc menu line_theme single_line_round_border --- Toggle the built-in border style theme\n",
" psc menu config --- Set menu configurations"
],
"done": [
"<@Green>Configuration modified successfully!\n",
"<@Blue>{{ $config_item }}<@Green>: <@Magenta>{{ $old_value }}<@Green> => <@Magenta>{{ $new_value }}"
],
"symbol": {
"example": [
"E: psc menu symbol SpaceTab »\n",
" psc menu symbol OptionTab ?\n",
" psc menu symbol WriteSpaceTab !"
],
"err": {
"max": [
"<@Yellow>",
"{{ $arg[2] }} just need a value. It can be any symbol you like."
]
}
},
"line_theme": {
"example": [
"E: psc menu line_theme double_line_rect_border --- Set to a double line rectangular border (default)\n",
" psc menu line_theme single_line_rect_border --- Set to a single line rectangular border\n",
" psc menu line_theme single_line_round_border --- Set to a single line rounded border"
],
"done": [
"<@Green>Completion menu border line style modified successfully!"
]
},
"color_theme": {
"example": [
"E: psc menu color_theme default --- Default theme\n",
" psc menu color_theme magenta --- Magenta"
],
"done": [
"<@Green>Completion menu color style modified successfully!"
]
},
"custom": {
"example": [
"E: psc menu custom color border_text DarkGray --- Set foreground color of the border to DarkGray\n",
" psc menu custom line horizontal ─ --- Set the horizontal line of the border to \"-\""
],
"color": {
"tip": "Set color to {{ $color }}."
}
},
"config": {
"example": [
"E: psc menu config enable_tip 0 --- Hide completion tip\n",
" psc menu config enable_menu 0 --- Disable completion menu provided by PSCompletions module\n",
" psc menu config filter_symbol [] --- Set the symbol of the filter area"
],
"err": {
"v_0": "<@Red>It should be an integer number greater than or equal to<@Magenta>0.",
"v_1": "<@Red>It should be an integer number greater than or equal to<@Magenta>1.",
"v_2": "<@Red>It should be an integer number greater than or equal to<@Magenta>1, or equal to <@Magenta>-1.",
"v_3": "<@Red>It should be the number <@Magenta>1<@Red> or <@Magenta>0<@Red>, which means enabled or disabled.",
"trigger_key": "<@Magenta>{{ $arg[3] }}<@Red> isn't a valid trigger key."
}
}
},
"reset": {
"example": [
"E: psc reset * --- Reset PSCompletions module\n",
" psc reset menu symbol --- Reset all symbols(»?!)\n",
" psc reset alias psc --- Reset psc alias\n",
" psc reset completion psc --- Reset(Remove) this special configuration(language) of psc\n"
],
"init_confirm": [
"<@Yellow>Reset the PSCompletions module, are you sure?\n",
"<@Red>It will delete everything except the module source code.\n",
"<@Yellow>Press <@Magenta>Enter<@Yellow> key to continue or <@Magenta>other key(Without Ctrl)<@Yellow> to cancel!"
],
"init_done": [
"<@Green>PSCompletions module was reset successfully!\n",
"Initializing the module..."
],
"done": [
"{{",
"if($change_list){",
" \"<@Green>Reset successfully!`n<@Cyan>Here are the changes from old to new:`n------------------------------`n\";",
" ($change_list | ForEach-Object {",
"$str = if($_.cmd){ \"<@Magenta>$($_.cmd)<@Blue>($($_.item))\" }else{ \"<@Blue>$($_.item)\" }",
" \"$($str): <@Magenta>$($_.old_value)<@Blue> => <@Magenta>$($_.new_value)<@Blue>\" }) -join \"`n\";",
" \"<@Cyan>`n------------------------------\"",
"}",
"}}"
],
"order": {
"done": [
"<@Green>Reset ordering of completions Successfully!"
]
},
"alias": {
"tip": "Reset {{ $completion }}'s alias to default.",
"example": [
"E: psc reset alias * --- Reset all aliases\n",
" psc reset alias psc --- Reset psc alias\n",
" psc reset alias psc git bun --- Reset psc git bun alias"
]
},
"completion": {
"tip": "Reset(Remove) the special configurations of {{ $completion }}",
"tip_v": "Reset(Remove) this special configuration of {{ $completion }} --- {{ $config_item }}",
"example": [
"E: psc reset completion * --- Reset(Remove) the special configurations of all completions\n",
" psc reset completion psc --- Reset(Remove) the special configurations of psc\n",
" psc reset completion psc language --- Reset(Remove) this special configuration(language) of psc"
]
},
"menu": {
"example": [
"E: psc reset menu * --- Reset all menu configurations\n",
" psc reset menu config --- Reset menu configurations\n",
" psc reset menu line_theme --- Reset menu border line style"
]
}
}
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/abgox-PSCompletions.git
git@api.gitlife.ru:oschina-mirror/abgox-PSCompletions.git
oschina-mirror
abgox-PSCompletions
abgox-PSCompletions
main