Слияние кода завершено, страница обновится автоматически
{
"root": [
{
"name": "list",
"tip": [
"显示已经添加的补全。\n",
"{{ $json.info.list.example }}"
],
"options": [
{
"name": "--remote",
"tip": [
"显示远程仓库({{ $PSCompletions.url }})中的所有可用补全。"
]
}
]
},
{
"name": "add",
"next": [
{
"name": "*",
"tip": [
"添加所有的补全。\n",
"注意:添加大量的补全可能会导致 PowerShell 启动加载速度变得慢一点。\n",
" 建议添加自己需要使用的补全。"
]
}
],
"tip": [
"添加补全(一个或多个)。\n",
"{{ $info.add.example }}"
]
},
{
"name": "rm",
"next": [
{
"name": "*",
"tip": [
"移除所有的补全。\n",
"注意: psc 作为 PSCompletions 模块的补全,会在移除后自动重新添加。"
]
}
],
"tip": [
"移除补全(一个或多个)。\n",
"{{ $info.rm.example }}"
]
},
{
"name": "update",
"tip": [
"更新补全(一个或多个)。\n",
"{{ $info.update.example }}"
],
"next": [
{
"name": "*",
"tip": [
"更新当前所有可更新的补全。\n",
"{{",
"if($PSCompletions.update){ \"当前可更新的补全: $($PSCompletions.update -join ',')\" }",
"else{'所有补全都是最新的!'}",
"}}"
],
"options": [
{
"name": "--force",
"tip": [
"强制更新所有已经添加的补全。\n",
"(这可以确保补全一定是最新的)"
]
}
]
}
]
},
{
"name": "search",
"tip": [
"搜索补全(可使用通配符匹配)。\n",
"{{ $info.search.example }}"
],
"next": [
{
"name": "*",
"tip": [
"搜索所有可用补全。"
]
}
]
},
{
"name": "which",
"tip": [
"定位补全存储位置。\n",
"{{ $info.which.example }}"
],
"next": []
},
{
"name": "alias",
"tip": [
"管理补全触发的命令名。\n",
"现在补全别名是一个列表, 初始列表是补全的默认触发名, 你可以自由的添加和删除别名(包括默认触发名)。\n",
"但是,添加的别名不能带有空格。\n",
"{{ $info.alias.example }}"
],
"next": [
{
"name": "list",
"tip": [
"显示所有补全别名。"
]
},
{
"name": "add",
"tip": [
"为指定补全添加一个别名。\n",
"注意: 是添加一个新的别名而不是替换, 原本的补全名也可以使用。\n",
" 如果只想保留新的别名, 需要在添加新的别名后使用 rm 命令移除原本的补全名。\n",
"{{ $info.alias.add.example }}"
],
"next": []
},
{
"name": "rm",
"tip": [
"删除补全别名(一个或多个)。\n",
"{{ $info.example.alias.rm.example }}"
],
"next": []
}
]
},
{
"name": "config",
"tip": [
"读写/更改配置。\n",
"{{ $info.config.example }}"
],
"next": [
{
"name": "language",
"tip": [
"当前值: {{ $PSCompletions.language }}\n",
"读取/设置当前配置语言。\n",
"配置语言会影响所有添加的补全语言。\n",
"通过 psc completion 单独设置了补全语言的不受影响。\n",
"更多信息请访问: https://gitee.com/abgox/PSCompletions/blob/main/README-CN.md#关于语言"
],
"next": [
{
"name": "en-US",
"tip": [
"设置为英文。",
"{{",
"if(!$PSCompletions.config.url){",
" $github=$PSCompletions.config.github;",
" if($github){ \"`n设置为 en-US 后, 添加补全时, 将从 Github 仓库($($github))中获取\" }",
"}",
"}}"
]
}
]
},
{
"name": "disable_cache",
"tip": [
"当前值: {{ $PSCompletions.config.disable_cache }}\n",
"设置是否禁用补全缓存。\n",
"这个配置通常不需要修改, 主要用于补全数据文件的更新调试(每次补全都会重新读取 json)。"
],
"next": [
{
"name": "1",
"tip": [
"设置为 1\n",
"禁用补全缓存, 主要用于更新调试补全数据文件。\n",
"禁用后, 每次补全都会重新去读取补全数据文件(json)。"
]
},
{
"name": "0",
"tip": [
"设置为 0 (默认值)\n",
"启用补全缓存, 这会让补全的加载速度更快, 建议保持默认。"
]
}
]
},
{
"name": "enable_completions_update",
"tip": [
"当前值: {{ $PSCompletions.config.enable_completions_update }}\n",
"设置首次加载 PSCompletions 模块时是否显示补全更新(更新包括更新补全、新增补全)。"
],
"next": [
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"首次加载模块时显示补全更新。"
]
},
{
"name": "0",
"tip": [
"设置为 0\n",
"首次加载模块时不显示补全更新。\n",
"注意: 这并不推荐, 因为及时获取更新信息能避免一些意外错误。"
]
}
]
},
{
"name": "enable_module_update",
"tip": [
"当前值: {{ $PSCompletions.config.enable_module_update }}\n",
"当模块有了新版本后, 是否在首次加载模块后显示更新提示。\n",
"注意: 远程仓库始终匹配 PSCompletions 最新版本, 不建议关闭它。\n",
" 如果遇到模块错误,请确保使用的是最新版本的 PSCompletions 模块。"
],
"next": [
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"显示更新提示。"
]
},
{
"name": "0",
"tip": [
"设置为 0\n",
"不显示更新提示。\n",
"注意: 远程仓库始终匹配 PSCompletions 最新版本, 不建议关闭它。\n",
" 如果遇到模块错误,请确保使用的是最新版本的 PSCompletions 模块。"
]
}
]
},
{
"name": "url",
"tip": [
"当前值: \"{{ $PSCompletions.config.url }}\"\n",
"设置远程补全信息的地址。\n",
"默认值为 \"\",表示根据语言自动选择仓库(Github/Gitee)。\n",
"{{ $info.config.url.example }}"
],
"next": [
{
"name": "\"\"",
"tip": [
"设置为 \"\" (默认值)\n",
"它表示根据语言自动选择仓库(Github/Gitee)。"
]
},
{
"name": "\"https://github.com/abgox/PSCompletions/raw/main\"",
"tip": [
"使用 Github 地址。"
]
},
{
"name": "\"https://gitee.com/abgox/PSCompletions/raw/main\"",
"tip": [
"使用 Gitee 地址。"
]
},
{
"name": "\"https://abgox.github.io/PSCompletions\"",
"tip": [
"一个可用的地址。\n",
"(通过 Github Pages 生成)"
]
}
]
},
{
"name": "function_name",
"tip": [
"当前值: {{ $PSCompletions.config.function_name }}\n",
"设置模块导出的核心函数名。\n",
"当你需要定义一个函数,且必须命名为 PSCompletions 时,你可以通过此配置修改 PSCompletions 模块默认导出的函数名以解决冲突。"
],
"next": [
{
"name": "PSCompletions",
"tip": [
"设置为 PSCompletions (默认值)。"
]
}
]
},
{
"name": "module_update_confirm_duration",
"tip": [
"当前值: {{ $PSCompletions.config.module_update_confirm_duration }}\n",
"当模块有版本更新时,模块更新确认的持续时间(毫秒)\n",
"当超过这个时间后,将自动取消,避免因为更新确认导致进程卡住。"
],
"next": [
{
"name": "15000",
"tip": [
"设置为 15000 毫秒 (默认值)"
]
}
]
}
]
},
{
"name": "completion",
"tip": [
"指定单个补全的特殊配置(特殊配置优先级最高)。\n",
"每个补全默认带有两个可设置的特殊配置(language|enable_tip)。\n",
"{{ $info.completion.example }}"
],
"next": []
},
{
"name": "menu",
"tip": [
"管理补全菜单的相关配置。\n",
"{{ $info.menu.example}}"
],
"next": [
{
"name": "symbol",
"tip": [
"设置补全提示中的特殊符号(»?!)。\n",
"这些符号只在通过 psc add 添加的补全中存在。\n",
"详情: https://pscompletions.abgox.com/command/#menu-symbol"
],
"next": [
{
"name": "SpaceTab",
"tip": [
"当前值: {{ $PSCompletions.config.SpaceTab }}\n",
"使用 psc menu symbol SpaceTab \"\" 可以隐藏这个符号。"
],
"next": [
{
"name": "»",
"tip": [
"设置为 » (默认值)。"
]
},
{
"name": "\"\"",
"tip": [
"设置为 \"\"\n",
"这可以隐藏符号, 但是不建议这样做, 更建议修改为你喜欢的符号。\n",
"因为符号是为了让你能够直观感知到是否可以继续获取补全。"
]
}
]
},
{
"name": "WriteSpaceTab",
"tip": [
"当前值: {{ $PSCompletions.config.WriteSpaceTab }}\n",
"使用 psc menu symbol WriteSpaceTab \"\" 可以隐藏这个符号。"
],
"next": [
{
"name": "!",
"tip": [
"设置为 ! (默认值)。"
]
},
{
"name": "\"\"",
"tip": [
"设置为 \"\"\n",
"这可以隐藏符号, 但是不建议这样做, 更建议修改为你喜欢的符号。\n",
"因为符号是为了让你能够直观感知到是否可以继续获取补全。"
]
}
]
},
{
"name": "OptionTab",
"tip": [
"当前值: {{ $PSCompletions.config.OptionTab }}\n",
"使用 psc menu symbol OptionTab \"\" 可以隐藏这个符号。"
],
"next": [
{
"name": "?",
"tip": [
"设置为 ? (默认值)。"
]
},
{
"name": "\"\"",
"tip": [
"设置为 \"\"\n",
"这可以隐藏符号, 但是不建议这样做, 更建议修改为你喜欢的符号。\n",
"因为符号是为了让你能够直观感知到是否可以继续获取补全。"
]
}
]
}
]
},
{
"name": "line_theme",
"tip": [
"切换补全菜单的内置边框样式主题。\n",
"你也可以通过 psc menu custom line 下的命令来自定义。\n",
"{{ $info.menu.line_theme.example }}"
],
"next": [
{
"name": "double_line_rect_border",
"tip": [
"设置为双线直角边框(默认值)。效果如下:\n",
"╔═════╗\n",
"║ ║\n",
"╚═════╝"
]
},
{
"name": "bold_line_rect_border",
"tip": [
"设置为粗线直角边框。效果如下:\n",
"┏━━━━━┓\n",
"┃ ┃\n",
"┗━━━━━┛"
]
},
{
"name": "single_line_rect_border",
"tip": [
"设置为单线直角边框。效果如下:\n",
"┌─────┐\n",
"│ │\n",
"└─────┘"
]
},
{
"name": "single_line_round_border",
"tip": [
"设置为单线圆角边框。效果如下:\n",
"╭─────╮\n",
"│ │\n",
"╰─────╯"
]
},
{
"name": "boldTB_slimLR_border",
"tip": [
"设置边框(上下粗线,左右细线)。效果如下:\n",
"┍━━━━━┑\n",
"│ │\n",
"┕━━━━━┙"
]
},
{
"name": "slimTB_boldLR_border",
"tip": [
"设置边框(上下细线,左右粗线)。效果如下:\n",
"┎─────┒\n",
"┃ ┃\n",
"┖─────┚"
]
},
{
"name": "doubleTB_singleLR_border",
"tip": [
"设置边框(上下双线,左右单线)。效果如下:\n",
"╒═════╕\n",
"│ │\n",
"╘═════╛"
]
},
{
"name": "singleTB_doubleLR_border",
"tip": [
"设置边框(上下单线,左右双线)。效果如下:\n",
"╓─────╖\n",
"║ ║\n",
"╙─────╜"
]
}
]
},
{
"name": "color_theme",
"tip": [
"切换补全菜单的内置颜色主题。\n",
"你也可以通过 psc menu custom color 下的命令来自定义。\n",
"{{ $info.menu.color_theme.example }}"
],
"next": [
{
"name": "default",
"tip": [
"设置为默认主题(深色主题)。"
]
},
{
"name": "magenta",
"tip": [
"设置为 Magenta 主题(浅色主题)。"
]
}
]
},
{
"name": "custom",
"tip": [
"自定义补全菜单的样式。\n",
"{{ $info.menu.custom.example }}"
],
"next": [
{
"name": "color",
"tip": [
"颜色相关的自定义配置。\n",
"{{ $info.example.menu_custom_color }}"
],
"next": [
{
"name": "border_text",
"tip": [
"当前值: {{ $PSCompletions.config.border_text }}\n",
"边框的前景色。\n",
"{{ $info.example.menu_custom_color_border_text }}"
],
"next": []
},
{
"name": "border_back",
"tip": [
"当前值: {{ $PSCompletions.config.border_back }}\n",
"边框的背景色。\n",
"{{ $info.example.menu_custom_color_border_back }}"
],
"next": []
},
{
"name": "item_text",
"tip": [
"当前值: {{ $PSCompletions.config.item_text }}\n",
"补全项的前景色。\n",
"{{ $info.example.menu_custom_color_item_text }}"
],
"next": []
},
{
"name": "item_back",
"tip": [
"当前值: {{ $PSCompletions.config.item_back }}\n",
"补全项的背景色。\n",
"{{ $info.example.menu_custom_color_item_back }}"
],
"next": []
},
{
"name": "selected_text",
"tip": [
"当前值: {{ $PSCompletions.config.selected_text }}\n",
"选中项的前景色。\n",
"{{ $info.example.menu_custom_color_selected_text }}"
],
"next": []
},
{
"name": "selected_back",
"tip": [
"当前值: {{ $PSCompletions.config.selected_back }}\n",
"选中项的背景色。\n",
"{{ $info.example.menu_custom_color_selected_back }}"
],
"next": []
},
{
"name": "filter_text",
"tip": [
"当前值: {{ $PSCompletions.config.filter_text }}\n",
"过滤框(左上角)的前景色。\n",
"{{ $info.example.menu_custom_color_filter_text }}"
],
"next": []
},
{
"name": "filter_back",
"tip": [
"当前值: {{ $PSCompletions.config.filter_back }}\n",
"过滤框(左上角)的背景色。\n",
"{{ $info.example.menu_custom_color_filter_back }}"
],
"next": []
},
{
"name": "status_text",
"tip": [
"当前值: {{ $PSCompletions.config.status_text }}\n",
"补全个数显示(左下角)的前景色。\n",
"{{ $info.example.menu_custom_color_status_text }}"
],
"next": []
},
{
"name": "status_back",
"tip": [
"当前值: {{ $PSCompletions.config.status_back }}\n",
"补全个数显示(左下角)的背景色。\n",
"{{ $info.example.menu_custom_color_status_back }}"
],
"next": []
},
{
"name": "tip_text",
"tip": [
"当前值: {{ $PSCompletions.config.tip_text }}\n",
"补全提示信息的前景色。\n",
"{{ $info.example.menu_custom_color_tip_text }}"
],
"next": []
},
{
"name": "tip_back",
"tip": [
"当前值: {{ $PSCompletions.config.tip_back }}\n",
"补全提示信息的背景色。\n",
"{{ $info.example.menu_custom_color_tip_back }}"
],
"next": []
}
]
},
{
"name": "line",
"tip": [
"补全菜单的边框线相关的自定义配置。\n",
"{{ $info.example.menu_custom_line }}"
],
"next": [
{
"name": "horizontal",
"tip": [
"当前值: \"{{ $PSCompletions.config.horizontal }}\"\n",
"边框的横线。\n",
"{{ $info.example.menu_custom_line_horizontal }}"
],
"next": [
{
"name": "═",
"tip": [
"默认值。"
]
},
{
"name": "━"
},
{
"name": "─"
},
{
"name": "┄"
},
{
"name": "┅"
},
{
"name": "┈"
},
{
"name": "┉"
}
]
},
{
"name": "vertical",
"tip": [
"当前值: \"{{ $PSCompletions.config.vertical }}\"\n",
"边框的竖线。\n",
"{{ $info.example.menu_custom_line_vertical }}"
],
"next": [
{
"name": "║",
"tip": [
"默认值。"
]
},
{
"name": "┃"
},
{
"name": "│"
},
{
"name": "┆"
},
{
"name": "┇"
},
{
"name": "┊"
},
{
"name": "┋"
}
]
},
{
"name": "top_left",
"tip": [
"当前值: \"{{ $PSCompletions.config.top_left }}\"\n",
"边框的左上角。\n",
"{{ $info.example.menu_custom_line_top_left }}"
],
"next": [
{
"name": "╔",
"tip": [
"默认值。"
]
},
{
"name": "┏"
},
{
"name": "┌"
},
{
"name": "╭"
},
{
"name": "┍"
},
{
"name": "┎"
},
{
"name": "╒"
},
{
"name": "╓"
}
]
},
{
"name": "bottom_left",
"tip": [
"当前值: \"{{ $PSCompletions.config.bottom_left }}\"\n",
"边框的左下角。\n",
"{{ $info.example.menu_custom_line_bottom_left }}"
],
"next": [
{
"name": "╚",
"tip": [
"默认值。"
]
},
{
"name": "┗"
},
{
"name": "└"
},
{
"name": "╰"
},
{
"name": "┕"
},
{
"name": "┖"
},
{
"name": "╘"
},
{
"name": "╙"
}
]
},
{
"name": "top_right",
"tip": [
"当前值: \"{{ $PSCompletions.config.top_right }}\"\n",
"边框的右上角。\n",
"{{ $info.example.menu_custom_line_top_right }}"
],
"next": [
{
"name": "╗",
"tip": [
"默认值。"
]
},
{
"name": "┓"
},
{
"name": "┐"
},
{
"name": "╮"
},
{
"name": "┑"
},
{
"name": "┒"
},
{
"name": "╕"
},
{
"name": "╖"
}
]
},
{
"name": "bottom_right",
"tip": [
"当前值: \"{{ $PSCompletions.config.bottom_right }}\"\n",
"边框的右下角。\n",
"{{ $info.example.menu_custom_line_bottom_right }}"
],
"next": [
{
"name": "╝",
"tip": [
"默认值。"
]
},
{
"name": "┛"
},
{
"name": "┘"
},
{
"name": "╯"
},
{
"name": "┙"
},
{
"name": "┚"
},
{
"name": "╛"
},
{
"name": "╜"
}
]
}
]
}
]
},
{
"name": "config",
"tip": [
"针对补全菜单的一些其他自定义配置。\n",
"{{ $info.menu.config.example }}"
],
"next": [
{
"name": "enable_enter_when_single",
"tip": [
"当前值: {{ $PSCompletions.config.enable_enter_when_single }} (默认值为 0, 表示禁用)\n",
"当候选补全项只有一个时, 是否直接输入, 而不是显示补全菜单。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 (默认值)\n",
"即使只有一个候选补全项, 也会先显示菜单, 此时, 你可以再次按下 Tab 或 空格键输入此候选补全项。"
]
},
{
"name": "1",
"tip": [
"设置为 1\n",
"当候选补全项只有一个时, 会直接输入, 不会显示补全菜单。"
]
}
]
},
{
"name": "enable_menu",
"tip": [
"当前值: {{ $PSCompletions.config.enable_menu }} (默认值为 1, 表示启用)\n",
"设置是否使用 PSCompletions 模块提供的补全菜单。\n",
"如果你不是在 Windows 系统下使用 PowerShell(pwsh), 你无法使用模块提供的补全菜单, 此配置无效。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"使用 PowerShell 内置的补全菜单。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"使用 PSCompletions 模块提供的补全菜单。"
]
}
]
},
{
"name": "height_from_menu_bottom_to_cursor_when_above",
"tip": [
"当前值: {{ $PSCompletions.config.height_from_menu_bottom_to_cursor_when_above }} (默认值为 0,必须大于等于 0)\n",
"设置当补全菜单显示在上方时, 菜单底部和输入光标之间的高度。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 (默认值)。"
]
},
{
"name": "2"
},
{
"name": "3"
}
]
},
{
"name": "enable_list_cover_buffer",
"tip": [
"当前值: {{ $PSCompletions.config.enable_list_cover_buffer }} (默认值为 0, 表示禁用)\n",
"设置当显示补全列表时, 是否覆盖它所在区域每一行的原有内容(退出补全菜单时恢复)。\n",
"如果禁用, 则只覆盖显示所需要的一小块区域内容。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 (默认值)\n",
"不覆盖所在区域每一行的原有内容, 只覆盖显示所需要的一小块区域内容。"
]
},
{
"name": "1",
"tip": [
"设置为 1\n",
"覆盖所在区域每一行的原有内容。"
]
}
]
},
{
"name": "enable_tip_cover_buffer",
"tip": [
"当前值: {{ $PSCompletions.config.enable_tip_cover_buffer }} (默认值为 1, 表示启用)\n",
"设置当显示补全提示信息时, 是否覆盖它所在区域及其附近区域每一行的原有内容(退出补全菜单时恢复)。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 \n",
"不覆盖它所在区域及其上方区域每一行的原有内容, 只覆盖显示所需要的那几行区域。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"覆盖它所在区域及其上方区域每一行的原有内容。"
]
}
]
},
{
"name": "enable_tip",
"tip": [
"当前值: {{ $PSCompletions.config.enable_tip }} (默认值为 1, 表示启用)\n",
"设置是否需要补全提示信息。\n",
"当启用时, 如果 PowerShell 显示区域过小, 会自动隐藏补全提示信息, 以便能正常显示补全项。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"不显示补全提示信息。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"显示补全提示信息。"
]
}
]
},
{
"name": "trigger_key",
"tip": [
"当前值: \"{{ $PSCompletions.config.trigger_key }}\" (默认值为 \"Tab\")\n",
"设置触发补全的按键。"
],
"next": [
{
"name": "Tab",
"tip": [
"设置为 Tab (默认值)。"
]
}
]
},
{
"name": "enable_tip_follow_cursor",
"tip": [
"当前值: {{ $PSCompletions.config.enable_tip_follow_cursor }} (默认值为 1, 表示启用)\n",
"设置补全菜单命令提示信息是否跟随输入光标显示。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"补全提示信息不跟随输入光标显示, 从 PowerShell 最左侧开始显示。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"补全提示信息跟随输入光标显示。"
]
}
]
},
{
"name": "enable_list_follow_cursor",
"tip": [
"当前值: {{ $PSCompletions.config.enable_list_follow_cursor }} (默认值为 1, 表示启用)\n",
"设置补全菜单列表是否跟随输入光标显示。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"补全列表不跟随输入光标显示, 从 PowerShell 最左侧开始显示。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"补全列表跟随输入光标显示。"
]
}
]
},
{
"name": "enable_prefix_match_in_filter",
"tip": [
"当前值: {{ $PSCompletions.config.enable_prefix_match_in_filter }} (默认值为 0, 表示使用模糊匹配)\n",
"设置菜单是否使用前缀匹配模式进行补全过滤。\n",
"如果你开启了前缀匹配(设置为1), 将会自动提取当前补全候选的共用前缀。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 (默认值)\n",
"使用模糊匹配, 你只需要输入部分字符即可匹配到相关的补全项。"
]
},
{
"name": "1",
"tip": [
"设置为 1\n",
"使用前缀匹配, 你只需要输入前缀即可匹配到相关的补全项。\n",
"如果存在共用的前缀, 会自动提取。"
]
}
]
},
{
"name": "enable_path_with_trailing_separator",
"tip": [
"当前值: {{ $PSCompletions.config.enable_path_with_trailing_separator }} (默认值为 1)\n",
"设置路径完成是否带有末尾的分隔符。\n",
"有: C:\\Users\\abgox\\\n",
"无: C:\\Users\\abgox"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"不带有末尾的分隔符。\n",
"如: C:\\Users\\abgox"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"带有末尾的分隔符。\n",
"如: C:\\Users\\abgox\\"
]
}
]
},
{
"name": "enable_list_loop",
"tip": [
"当前值: {{ $PSCompletions.config.enable_list_loop }} (默认值为 1)\n",
"设置补全菜单列表是否循环显示。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"补全菜单列表不循环显示。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"补全菜单列表循环显示。"
]
}
]
},
{
"name": "list_max_count_when_above",
"tip": [
"当前值: {{ $PSCompletions.config.list_max_count_when_above }} (默认值为 -1)\n",
"设置当补全菜单显示在光标上方时, 第一页显示的补全项的最大个数。\n",
"如果值为 -1, 则表示根据光标上方可用的高度尽量显示更多的补全个数。"
],
"next": [
{
"name": "-1",
"tip": [
"设置为 -1 (默认值)\n",
"根据光标上方可用的高度尽量显示更多的补全个数。"
]
}
]
},
{
"name": "list_max_count_when_below",
"tip": [
"当前值: {{ $PSCompletions.config.list_max_count_when_below }} (默认值为 -1)\n",
"设置当补全菜单显示在光标下方时, 第一页显示的补全项的最大个数。\n",
"如果值为 -1, 则表示根据光标下方可用的高度尽量显示更多的补全个数。"
],
"next": [
{
"name": "-1",
"tip": [
"设置为 -1 (默认值)\n",
"根据光标下方可用的高度尽量显示更多的补全个数。"
]
}
]
},
{
"name": "between_item_and_symbol",
"tip": [
"当前值: \"{{ $PSCompletions.config.between_item_and_symbol }}\" (默认值: \" \")\n",
"设置当补全项后面有符号时, 补全项与符号之间的间隔符。"
],
"next": [
{
"name": "\" \"",
"tip": [
"设置为 \" \" (默认值)\n",
"每一个补全项和符号之间都加入一个空格作为间隔。"
]
}
]
},
{
"name": "enable_selection_with_margin",
"tip": [
"当前值: {{ $PSCompletions.config.enable_selection_with_margin }} (默认值为 1, 表示启用)\n",
"当设置了补全列表的 margin (间距)时, 当前选中项的选中样式是否包含 margin。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"当前选中项的选中样式不包含 margin。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"当前选中项的选中样式包含 margin。"
]
}
]
},
{
"name": "list_min_width",
"tip": [
"当前值: {{ $PSCompletions.config.list_min_width }} (默认值为 10)\n",
"设置补全菜单中, 补全项区域的最小宽度。\n",
"如果补全项的宽度小于 10, 会用空格填充补全项的宽度为 10, 避免菜单显示错误。\n",
"这里的填充不会影响最终选择的补全项。"
],
"next": [
{
"name": "10",
"tip": [
"设置为 10 (默认值)\n",
"当所有可选的补全项的宽度低于 10, 会填充宽度为 10, 避免菜单显示错误。\n",
"此值不建议设置太低, 10 是一个比较合适的值。"
]
}
]
},
{
"name": "width_from_menu_left_to_item",
"tip": [
"当前值: {{ $PSCompletions.config.width_from_menu_left_to_item }} (默认值为 0)\n",
"设置补全菜单中, 补全项区域和左边框的之间的间距。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 (默认值)\n",
"没有额外的间距。"
]
}
]
},
{
"name": "width_from_menu_right_to_item",
"tip": [
"当前值: {{ $PSCompletions.config.width_from_menu_right_to_item }} (默认值为 0)\n",
"设置补全菜单中, 补全列表和右边框的之间的间距。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0 (默认值)\n",
"没有额外的间距。"
]
}
]
},
{
"name": "status_symbol",
"tip": [
"当前值: \"{{ $PSCompletions.config.status_symbol }}\" (默认值为 \"/\")\n",
"设置底部边框上的补全个数显示区域, 当前补全数以及总补全数之间的间隔符。"
],
"next": [
{
"name": "/",
"tip": [
"设置为 \"/\" (默认值)。"
]
}
]
},
{
"name": "filter_symbol",
"tip": [
"当前值: \"{{ $PSCompletions.config.filter_symbol }}\" (默认值为 \"[]\")\n",
"设置顶部边框上的过滤区域, 左侧和右侧的符号。\n",
"设置此配置项需要两个字符。"
],
"next": [
{
"name": "[]",
"tip": [
"设置为 \"[]\" (默认值)。"
]
}
]
},
{
"name": "enable_completions_sort",
"tip": [
"当前值: {{ $PSCompletions.config.enable_completions_sort }} (默认值为 1, 表示启用)\n",
"设置是否根据命令历史记录动态排序补全列表。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"不再根据命令历史记录动态排序补全列表。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"根据命令历史记录动态排序补全列表。"
]
}
]
},
{
"name": "enable_menu_enhance",
"tip": [
"当前值: {{ $PSCompletions.config.enable_menu_enhance }} (默认值为 1, 表示启用)\n",
"设置是否增强补全菜单的功能。\n",
"详细信息: https://github.com/abgox/PSCompletions/blob/main/README-CN.md#关于菜单增强\n",
" https://gitee.com/abgox/PSCompletions/blob/main/README-CN.md#关于菜单增强\n"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0。\n",
"详细信息: https://github.com/abgox/PSCompletions/blob/main/README-CN.md#关于菜单增强\n",
" https://gitee.com/abgox/PSCompletions/blob/main/README-CN.md#关于菜单增强\n"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)。\n",
"详细信息: https://github.com/abgox/PSCompletions/blob/main/README-CN.md#关于菜单增强\n",
" https://gitee.com/abgox/PSCompletions/blob/main/README-CN.md#关于菜单增强\n"
]
}
]
},
{
"name": "enable_tip_when_enhance",
"tip": [
"当前值: {{ $PSCompletions.config.enable_tip_when_enhance }} (默认值为 1, 表示启用)\n",
"对于不是通过 'psc add' 添加的补全,如果有命令提示信息,是否显示。"
],
"next": [
{
"name": "0",
"tip": [
"设置为 0\n",
"不显示命令提示信息。"
]
},
{
"name": "1",
"tip": [
"设置为 1 (默认值)\n",
"显示命令提示信息。"
]
}
]
}
]
}
]
},
{
"name": "reset",
"tip": [
"将指定的配置重置为默认值。\n",
"{{ $info.reset.example }}"
],
"next": [
{
"name": "*",
"tip": [
"重置模块 PSCompletions 的所有内容。\n",
"你可以理解为, 重置到刚开始安装 PSCompletions 模块的状态。"
]
},
{
"name": "config",
"tip": [
"重置一些配置。\n",
"它会将 config 命令下可以设置的所有配置恢复到默认值。"
]
},
{
"name": "alias",
"tip": [
"将所有补全或指定的补全恢复为默认补全名。\n",
"{{ $info.reset.alias.example }}"
],
"next": [
{
"name": "*",
"tip": [
"删除所有补全别名, 全部恢复为默认补全名。"
]
}
]
},
{
"name": "order",
"tip": [
"重置所有的 order。\n",
"这里只是移除了 order 排序文件, 当下一次补全时, 会重新生成排序文件。\n",
"如果你不希望根据历史记录排序, 你应该使用 psc menu config enable_completions_sort 0 来禁用排序。"
]
},
{
"name": "completion",
"tip": [
"重置(移除)所有补全或指定补全的特殊配置。\n",
"{{ $info.reset.completion.example }}"
],
"next": [
{
"name": "*",
"tip": [
"重置(移除)所有补全的特殊配置。\n",
"包括 psc completion 命令下可以设置的所有的配置项。"
]
}
]
},
{
"name": "menu",
"tip": [
"重置补全菜单的配置。\n",
"{{ $info.reset.menu.example }}"
],
"next": [
{
"name": "*",
"tip": [
"重置所有补全菜单的配置。\n",
"包括 psc menu 命令下可以设置的所有的配置项。"
]
},
{
"name": "symbol",
"tip": [
"重置符号为默认值。\n",
"SpaceTab => »\n",
"WriteSpaceTab => !\n",
"OptionTab => ?"
]
},
{
"name": "line",
"tip": [
"重置补全菜单边框线条相关的配置项。\n",
"包含 psc menu custom line 命令下的所有配置项。"
]
},
{
"name": "color",
"tip": [
"重置补全菜单的颜色相关的配置项。\n",
"包含 psc menu custom color 命令下的所有配置项。"
]
},
{
"name": "config",
"tip": [
"重置补全菜单的其他自定义配置。\n",
"包括 psc menu config 命令下可以设置的其他配置项。"
]
}
]
}
]
}
],
"info": {
"completion_info": {
"url": "https://github.com/abgox/PSCompletions",
"description": [
"PSCompletions 模块的补全提示\n",
"它只能更新,不能移除\n",
"如果移除它,将会自动重新添加"
]
},
"desc": [
"<@Cyan>当前模块版本: <@Magenta>{{ $PSCompletions.version }}<@Cyan>\n",
"模块版本日志:\n",
" Github: <@Blue>https://github.com/abgox/PSCompletions/blob/main/module/CHANGELOG-CN.md<@Cyan>\n",
" Gitee : <@Blue>https://gitee.com/abgox/PSCompletions/blob/main/module/CHANGELOG-CN.md<@Cyan>\n",
"\n",
"<@Blue>PSCompletions<@Cyan> 命令简单, 只需要输入 <@Magenta>psc<@Cyan> 并按下 <@Magenta>空格<@Cyan> 和 <@Magenta>Tab<@Cyan> 键, 通过补全提示信息,你会快速了解所有命令用法。\n",
"\n",
"<@Blue>PSCompletions<@Cyan> 模块只会占用两个全局命名\n",
" <@Magenta>PSCompletions<@Cyan> => 函数名, 模块导出的核心函数(<@Magenta>psc<@Cyan> 其实就是它的别名)\n",
" <@Magenta>$PSCompletions<@Cyan> => 变量名, 存储模块相关的所有数据(<@Yellow>你不能修改它<@Cyan>)\n",
"\n",
"更多相关信息, 请访问:\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",
"如果有使用问题, 请提交 issue: https://github.com/abgox/PSCompletions/issues\n",
"如果 <@Blue>PSCompletions<@Cyan> 对你有所帮助, 请给这个项目一个 <@Yellow>Star<@>\n"
],
"description": [
"<@Blue>PSCompletions(<@Magenta>psc<@Cyan>) --- PowerShell 补全管理模块\n",
"{{ $PSCompletions.info.desc }}"
],
"init_info": [
"\n<@Yellow>PSCompletions 模块安装警告(仅首次初始化显示):\n",
"你不应该属于以下情况:\n",
" 1. 在以管理员模式启动的 Windows 系统内置的 Windows PowerShell 中安装 PSCompletions 模块\n",
" 2. 安装时意外使用了 <@Magenta>-Scope AllUser<@Yellow>\n",
"如果属于以上情况, 你应该重新安装模块, 使用 <@Magenta>-Scope CurrentUser<@Yellow>, 除非你符合以下前提:\n",
" 1. 你已知晓以管理员模式安装的 PSCompletions 模块在用户权限下使用会出现权限问题\n",
" 2. 你始终使用管理员模式打开 PowerShell, 从不使用用户权限打开 PowerShell\n\n",
"<@Blue>完整安装命令: <@Magenta>Install-Module PSCompletions -Scope CurrentUser<@Cyan>\n\n",
"---------------------------------------------------------------------\n",
"<@Cyan>✨✨✨PSCompletions(<@Magenta>psc<@Cyan>) --- 初始化成功!✨✨✨\n",
"<@Yellow>以下内容仅首次初始化显示, 你也可以通过运行 <@Magenta>psc<@Yellow> 来看到这些内容<@Cyan>\n",
"{{ $PSCompletions.info.desc }}"
],
"err": {
"download_list": [
"<@Red>获取补全列表失败, 请检查网络连接或稍后再试\n",
"获取失败的 url: {{ $PSCompletions._invalid_url }}\n",
"如果确定不是网络问题, 请提交 issue ( https://github.com/abgox/PSCompletions/issues )"
],
"download_file": [
"<@Red>文件 {{ Split-path $download_info.url -leaf }} 下载失败, 请检查网络连接或稍后再试\n",
"文件下载地址: {{ $download_info.url }}\n",
"文件保存路径: {{ $download_info.file }}\n",
"如果确定不是网络问题, 请提交 issue ( https://github.com/abgox/PSCompletions/issues )"
],
"alias_conflict": [
"<@Yellow>别名 <@Magenta>{{ $conflict_alias_list -join ' ' }}<@Yellow> 已经存在,请手动处理别名冲突"
]
},
"module": {
"update": [
"<@Yellow>PSCompletions 模块有更新了, 是否更新?(已添加的补全会自动迁移)\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>按下 <@Magenta>Enter(回车键)<@Cyan> 进行更新,<@Magenta>其他任意键(不包含 Ctrl 键)<@Cyan> 取消更新!\n",
"<@Yellow>如果 {{ $PSCompletions.config.module_update_confirm_duration }} 毫秒内没有按键输入, 则自动取消。"
],
"updating": "<@Cyan>尝试运行命令: <@Magenta>{{ $update_cmd }}<@Cyan>\nPSCompletions 模块正在尝试更新...",
"restart": "<@Yellow>请重启 PowerShell 并重新导入 PSCompletions 模块来使更改生效"
},
"current_value": "当前值",
"set_value": "设置为 {{ $value }}。",
"update_info": [
"<@Cyan>PSCompletions 远程仓库更新: \n",
"{{",
"$change=$PSCompletions.get_content($PSCompletions.path.change);",
"$add=@();",
"$rm=@();",
"$change | ForEach-Object{ if($_ -in $PSCompletions.list){ $add += $_ }else{ $rm += $_ } };",
"if($add){ \"新增补全: <@Magenta>$($add)<@Cyan>`n使用 <@Magenta>psc add <completion><@Cyan> 进行添加`n`n\" };",
"if($rm){ \"删除补全: <@Magenta>$($rm)<@Cyan>`n`n\" };",
"if($PSCompletions.update){ \"更新补全: <@Magenta>$($PSCompletions.update)<@Cyan>`n使用 <@Magenta>psc update *<@Cyan> 进行更新`n`n\" };",
"}}",
"你可以运行命令 <@Blue>psc config enable_completions_update 0<@Cyan> 隐藏这个远程仓库状态提示。\n",
"但是不建议你这样做, 它是一个很恰当的提示"
],
"update_has": [
"<@Cyan>--------------------\n",
"可以更新的补全: <@Blue>{{ $PSCompletions.update -join ' ' }}<@Cyan>\n",
"你可以运行以下命令去更新它们:\n",
"<@Magenta>psc update *"
],
"update_no": [
"<@Cyan>--------------------\n",
"<@Green>已添加的补全都是最新的!"
],
"param_min": "<@Red>传入的参数过少。",
"param_max": "<@Red>传入的参数过多。",
"param_err": "<@Red>传入的参数错误。",
"sub_cmd": [
"{{",
"if($sub_cmd){\"<@Red>子命令 <@Magenta>$($sub_cmd)<@Red> 错误`n\"};",
"if($cmd_list){",
"\"<@Yellow>你应该在下方的子命令列表中选择一个子命令使用`n\";",
"\"<@Blue>-------------------`n\";",
"\"<@Magenta>$($cmd_list -join \"`n\")<@Yellow>`n\";",
"\"<@Blue>-------------------\";",
"};",
"if($cmd_info){ \"<@Red>$($cmd_info)\" };",
"}}"
],
"no_completion": "<@Red>你还未添加 <@Magenta>{{ $completion }}<@Red> 补全",
"confirm_cancel": "<@Green>操作取消!",
"less_tip": "<@Cyan>按下 <@Magenta>Enter<@Cyan> 键查看更多, 按下 <@Magenta>其他任意键<@Cyan> 退出! (剩余 <@Magenta>{{ $lines }} <@Cyan>行)",
"min_area": "显示区域宽度或高度太小!",
"example_color": "<@Cyan>",
"list": {
"add_symbol": "🔴",
"added_symbol": "🟢",
"symbol_tip": "\n<@Yellow>🟢 : 补全已经添加 🔴 : 补全还未添加",
"example": [
"E: psc list --- 显示本地已安装的补全列表\n",
" psc list --remote --- 显示远程补全列表"
]
},
"add": {
"tip": "添加补全 --- {{ $completion }}",
"example": [
"E: psc add git --- 添加 git 补全\n",
" psc add git docker --- 添加 git 和 docker 补全"
],
"doing": "<@Cyan>正在添加补全 --- <@Magenta>{{ $completion }}",
"show_alias": "<@Yellow>这个补全默认的触发别名有: <@Magenta>{{ $config.alias -join ' ' }}",
"done": [
"<@Green>补全 <@Magenta>{{ $completion }}<@Green> 添加成功\n",
"补全文件所在目录: <@Blue>{{ $completion_dir }}\n",
"{{",
"if($json.config -or $config.hooks -ne $null){",
" \"<@Blue>---------- $($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>:`n默认值: $($_.value)`n$($PSCompletions.replace_content($_.tip))\"",
" };",
" $config_list -join \"`n\";",
" \"`n<@Blue>----------------------------------\";",
"};",
"}}"
],
"err": {
"min": [
"<@Yellow>",
"你应该继续输入要添加的补全名称\n",
"你可以输入多个补全名称, 以空格分隔, 会依次添加"
],
"no": [
"<@Red>补全 <@Magenta>{{ $completion }}<@Red> 在补全列表文件中不存在。\n",
"<@Yellow>推荐输入 <@Magenta>psc add<@Yellow> 后按下 <@Magenta>空格<@Yellow> 和 <@Magenta>Tab<@Yellow> 键进行补全"
]
}
},
"rm": {
"tip": "移除补全 --- {{ $completion }}",
"example": [
"E: psc rm git --- 移除 git 补全\n",
" psc rm git docker --- 移除 git 和 docker 补全"
],
"done": "<@Green>补全 <@Magenta>{{ $completion }}<@Green> 成功被移除",
"err": {
"min": [
"<@Yellow>",
"你应该继续输入要移除的补全名称\n",
"你可以输入多个补全名称, 以空格分隔, 会依次移除"
]
}
},
"update": {
"tip": "更新补全 --- {{ $completion }}",
"example": [
"E: psc update --- 检查更新\n",
" psc update * --- 更新所有的有更新的补全\n",
" psc update psc --- 更新 psc 补全\n",
" psc update psc git bun --- 更新 psc、git 和 bun 补全"
],
"doing": "<@Cyan>正在更新补全 ---<@Magenta> {{ $completion }}",
"done": [
"<@Green>补全 <@Magenta>{{ $completion }}<@Green> 更新成功\n",
"补全文件所在目录: <@Blue>{{ $completion_dir }}\n",
"{{",
"if($json.config -or $config.hooks -ne $null){",
" \"<@Blue>---------- $($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>:`n默认值: $($_.value)`n$($PSCompletions.replace_content($_.tip))\"",
" };",
" $config_list -join \"`n\";",
" \"`n<@Blue>----------------------------------\";",
"};",
"}}"
]
},
"search": {
"example": [
"E: psc search * --- 显示所有可安装补全\n",
" psc search p* --- 搜索以 p 开头的补全\n",
" psc search *p* --- 搜索名称带有 p 的补全"
],
"err": {
"min": [
"<@Yellow>",
"你应该继续输入一个带有通配符(*)的匹配字符串\n",
"如果不使用通配符, 请输入完整的名称\n",
"或者你可以输入 * 查看所有的补全"
],
"no": "<@Yellow>没有搜索到匹配的补全!"
}
},
"which": {
"tip": "定位补全存储位置 --- {{ $completion }}",
"example": [
"E: psc which git --- 返回 git 补全的存储位置\n",
" psc which git docker --- 返回 git 和 docker 补全的存储位置"
],
"err": {
"min": [
"<@Yellow>",
"你应该继续输入要查找存储位置的补全名称\n",
"你可以输入多个补全名称, 以空格分隔, 会依次返回补全文件的存储位置"
]
}
},
"alias": {
"example": [
"E: psc alias list --- 列出所有别名\n",
" psc alias add git g gi ./g --- 添加 g gi ./g 为 git 别名\n",
" psc alias rm g --- 删除一个别名或多个"
],
"done": [
"{{",
"if($arg[1] -eq 'add') {",
"foreach($_ in $add_list){ \"<@Magenta>$($completion)<@Green> 新增了一个别名 <@Magenta>$_<@Green>`n\" };",
"\"<@Green>现在 <@Magenta>$($completion)<@Green> 可用的补全触发名: <@Magenta>$($PSCompletions.data.alias.$completion -join ' ') $($add_list -join ' ')\"",
"}",
"elseif($arg[1] -eq 'rm') {",
"foreach($_ in $rm_list){ \"<@Magenta>$($completion)<@Green> 移除了一个别名 <@Magenta>$_<@Green>`n\" };",
"\"<@Green>现在 <@Magenta>$($completion)<@Green> 可用的补全触发名: <@Magenta>$(($PSCompletions.data.alias.$completion | Where-Object { $_ -notin $rm_list }) -join ' ')\"",
"}",
"}}"
],
"list": {
"example": [
"E: psc alias list --- 列出所有别名"
]
},
"add": {
"tip": [
"{{ \"当前别名列表: $($PSCompletions.data.alias.$completion -join ' ')\" }}\n",
"为 {{ $completion }} 添加一个或多个别名"
],
"example": [
"E: psc alias add git g gi --- 为 git 添加 g、gi 两个别名\n",
" psc alias add scoop scoop.ps1 --- 为 scoop 添加一个别名 scoop.ps1"
],
"err": {
"min_k": [
"<@Yellow>",
"你应该继续输入一个已经安装了的补全名称\n",
"然后再输入一个或多个你想添加的别名"
],
"min_v": [
"<@Yellow>",
"你还需要继续输入一个或多个你想为 {{ $completion }} 添加的别名"
],
"exist": "<@Red>别名 <@Magenta>{{ $alias }}<@Red> 不可用, 因为 <@Magenta>{{ $alias }}<@Magenta><@Red> 已经是 {{ $completion }} 的别名了",
"cmd_exist": "<@Red>别名 <@Magenta>{{ $alias }}<@Red> 不可用, 因为 <@Magenta>{{ $alias }}<@Magenta><@Red> 是已存在的命令, 请设置其他别名"
}
},
"rm": {
"tip": "为 {{ $completion }} 移除一个或多个别名",
"tip_v": [
"移除此别名。"
],
"example": [
"E: psc alias rm git g gi --- 为 git 删除 g、gi 两个别名\n",
" psc alias rm scoop scoop.ps1 --- 为 scoop 删除一个别名 scoop.ps1"
],
"err": {
"min_k": [
"<@Yellow>",
"你应该继续输入一个已经安装了的补全名称\n",
"然后再输入一个或多个你想移除的此补全的别名"
],
"min_v": [
"<@Yellow>",
"你还需要继续输入一个或多个你想为 {{ $completion }} 移除的别名"
],
"no_alias": "<@Magenta>{{ $alias }}<@Red> 不是 {{ $completion }} 的别名",
"unique": [
"<@Red>移除 <@Magenta>{{ $alias }}<@Red> 失败, 因为它是补全 <@Magenta>{{ $completion }}<@Red> 唯一的补全触发名\n",
"如果你想要修改它, 你应该先添加一个新别名, 再移除这个旧别名"
]
}
}
},
"config": {
"example": [
"E: psc config language --- 获取语言设置\n",
" psc config language en-US --- 设置为英文"
],
"done": [
"<@Green>PSCompletions 的配置修改成功!\n",
"<@Blue>{{ $config_item }}<@Green>: <@Magenta>{{ $old_value }}<@Green> => <@Magenta>{{ $new_value }}"
],
"err": {
"one_or_zero": [
"<@Magenta>{{ $config_item }}<@Yellow> 配置项只需要一个值, 数字 1 或 0\n",
"1 表示启用, 0 表示禁用"
]
},
"language": {
"err": "<@Magenta>{{ $config_item }}<@Yellow> 配置项只需要一个值, 像 <@Magenta>zh-CN<@Yellow> 这样的区域语言标识符",
"example": [
"E: psc config language --- 获取语言设置\n",
" psc config language en-US --- 设置为英文"
]
},
"disable_cache": {
"example": [
"E: psc config disable_cache 1 --- 禁用补全缓存\n",
" psc config disable_cache 0 --- 启用补全缓存"
]
},
"update": {
"example": [
"E: psc config enable_completions_update 1 --- 显示补全更新\n",
" psc config enable_completions_update 0 --- 不显示补全更新"
]
},
"module_update": {
"example": [
"E: psc config module_update 1 --- 显示模块更新\n",
" psc config module_update 0 --- 不显示模块更新"
]
},
"url": {
"err": [
"<@Magenta>{{ $config_item }}<@Yellow> 配置项只需要一个值, 一个 url 地址(https://xxx)\n",
"这个 url 必须是可用的, 且其目录结构应该与仓库相同"
],
"example": [
"E: psc config url --- 获取当前使用的 url\n",
" psc config url https://abgox.github.io/PSCompletions --- 设置 url 地址"
]
},
"function_name": {
"err": "<@Magenta>{{ $config_item }}<@Yellow> 配置项需要一个值, 且它不是已存在的命令",
"example": [
"E: psc config function_name --- 获取当前使用的函数名\n",
" psc config function_name PSCompletions --- 设置函数名"
]
},
"module_update_confirm_duration": {
"err": "<@Magenta>{{ $config_item }}<@Yellow> 配置项需要一个大于等于 0 的整数",
"example": [
"E: psc config module_update_confirm_duration\n",
" psc config module_update_confirm_duration 15000"
]
}
},
"completion": {
"tip": [
"设置 {{ $completion }} 的特殊配置\n",
"特殊配置的优先级高于全局配置"
],
"example": [
"E: psc completion psc enable_tip --- 返回配置当前的值(如果有值)\n",
" psc completion psc enable_tip 0 --- 单独设置 psc 不显示补全提示信息\n",
" psc completion psc language en-US --- 单独设置 psc 补全的语言为英文"
],
"done": [
"<@Magenta>{{ $completion }}<@Green> 的特殊配置修改成功!\n",
"<@Blue>{{ $config_item }}<@Green>: <@Magenta>{{ $old_value }}<@Green> => <@Magenta>{{ $new_value }}"
],
"err": {
"min": [
"<@Yellow>",
"你应该继续输入要设置的配置项\n",
"每个补全默认带有两个可设置的特殊配置(<@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]) 额外的可用配置项: <@Magenta>$($config -join ' ')\" }",
"}}"
]
},
"language": {
"tip": [
"{{",
"$v = $PSCompletions.config.comp_config.$completion.language;",
"if($v -notin @('',$null)){ \"当前值: $($v)`n\" }",
"}}",
"设置 {{ $completion }} 的语言"
],
"tip_v": "设置语言为 {{ $language }}。"
},
"enable_tip": {
"tip": [
"{{",
"$v = $PSCompletions.config.comp_config.$completion.enable_tip;",
"if($v -notin @('',$null)){ \"当前值: $($v)`n\" }",
"}}",
"设置 {{ $completion }} 是否显示补全提示信息"
]
},
"enable_hooks": {
"tip": [
"{{",
"$_value = $PSCompletions.config.comp_config.$completion.enable_hooks;",
"if($_value -ne $null){ \"当前值: <@Magenta>$_value<@Blue>`n\" }",
"}}",
"设置是否启用 hooks。\n",
"hooks 将解析或生成补全数据,然后动态添加到命令补全中。\n",
"你可以通过运行 <@Magenta>psc completion {{ $completion }} enable_hooks 0<@Blue> 来禁用它。"
]
}
},
"menu": {
"example": [
"E: psc menu config enable_tip 0 --- 不显示补全提示信息\n",
" psc menu symbol SpaceTab \"\" --- 隐藏符号\n",
" psc menu line_theme single_line_round_border --- 切换内置的边框线条主题\n",
" psc menu config --- 设置补全菜单配置"
],
"done": [
"<@Green>配置修改成功!\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] }} 配置项只需要一个值, 可以是你喜欢的符号"
]
}
},
"line_theme": {
"example": [
"E: psc menu line_theme double_line_rect_border --- 设置为双线直角边框(默认)\n",
" psc menu line_theme single_line_rect_border --- 设置为单线直角边框\n",
" psc menu line_theme single_line_round_border --- 设置为单线圆角边框"
],
"done": [
"<@Green>menu 边框样式主题修改成功!"
]
},
"color_theme": {
"example": [
"E: psc menu color_theme default --- 默认主题\n",
" psc menu color_theme magenta --- Magenta"
],
"done": [
"<@Green>menu 颜色样式主题修改成功!"
]
},
"custom": {
"example": [
"E: psc menu custom color border_text DarkGray --- 设置边框的前景色为 DarkGray\n",
" psc menu custom line horizontal ─ --- 设置边框的横线为 \"-\""
],
"color": {
"tip": "设置颜色为 {{ $color }}"
}
},
"config": {
"example": [
"E: psc menu config enable_tip 0 --- 不显示补全提示信息\n",
" psc menu config enable_menu 0 --- 禁用模块提供的补全菜单\n",
" psc menu config filter_symbol [] --- 设置过滤区域(左上角), 左侧和右侧的符号, 默认为 []"
],
"err": {
"v_0": "<@Red>应该是一个大于等于 <@Magenta>0<@Red> 的整数数字",
"v_1": "<@Red>应该是一个大于等于 <@Magenta>1<@Red> 的整数数字",
"v_2": "<@Red>应该是一个大于等于 <@Magenta>1<@Red> 的整数数字, 或者 <@Magenta>-1<@Red>",
"v_3": "<@Red>应该是数字 <@Magenta>1<@Red> 或 <@Magenta>0<@Red>, 表示启用或禁用",
"trigger_key": "<@Magenta>{{ $arg[3] }}<@Red> 不是一个可用的按键映射,修改失败"
}
}
},
"reset": {
"example": [
"E: psc reset * --- 重置所有配置\n",
" psc reset menu symbol --- 重置所有符号配置(»?!)\n",
" psc reset alias psc --- 将 psc 恢复为默认补全名\n",
" psc reset completion psc --- 重置(移除) psc 的特殊配置"
],
"init_confirm": [
"<@Yellow>是否完全重置 PSCompletions 模块?\n",
"<@Red>它会删除 PSCompletions 模块的所有内容, 包括已下载的补全, 配置等, 只会保留模块源代码文件\n",
"<@Yellow>按下 <@Magenta>Enter<@Yellow> 键确认重置, <@Magenta>其他任意键(不包含 Ctrl 键)<@Yellow> 取消重置!"
],
"init_done": [
"<@Green>PSCompletions 模块重置成功!\n",
"开始初始化模块..."
],
"done": [
"{{",
"if($change_list){",
" \"<@Green>重置完成!`n<@Cyan>以下是重置前后的新旧对比:`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>补全排序重置成功!"
]
},
"alias": {
"tip": "将 {{ $completion }} 恢复为默认补全名",
"example": [
"E: psc reset alias * --- 删除所有补全别名,全部恢复为默认补全名\n",
" psc reset alias psc --- 将 psc 恢复为默认补全名\n",
" psc reset alias psc git bun --- 将 psc git bun 恢复为默认补全名"
]
},
"completion": {
"tip": "重置(移除) {{ $completion }} 的所有特殊配置或指定的特殊配置",
"tip_v": "重置(移除) {{ $completion }} 的特殊配置 --- {{ $config_item }}",
"example": [
"E: psc reset completion * --- 重置(移除)所有补全的特殊配置\n",
" psc reset completion psc --- 重置(移除) psc 的特殊配置\n",
" psc reset completion psc language --- 重置(移除) psc 的 language 这个特殊配置"
]
},
"menu": {
"example": [
"E: psc reset menu * --- 重置所有补全菜单配置\n",
" psc reset menu config --- 重置补全菜单的自定义配置\n",
" psc reset menu line_theme --- 重置补全菜单的边框线条主题"
]
}
}
}
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )