Skip to content

Commit

Permalink
Merge pull request #63 from abgox/module
Browse files Browse the repository at this point in the history
feat(module): 更新模块版本 5.3.0
  • Loading branch information
abgox authored Jan 1, 2025
2 parents 8ce68c0 + 3f7693b commit 6ba83e0
Show file tree
Hide file tree
Showing 155 changed files with 3,174 additions and 5,101 deletions.
28 changes: 15 additions & 13 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
- [与 argc-completions 结合使用](https://pscompletions.pages.dev/tips/pscompletions-and-argc-completions "点击查看如何实现")
- [argc-completions 仓库](https://github.com/sigoden/argc-completions)

**如果 `PSCompletions` 对你有所帮助,请在此项目点个 Star ⭐**
**如果 `PSCompletions` 对你有所帮助,请考虑给它一个 Star ⭐**

## 新的变化

Expand Down Expand Up @@ -226,7 +226,7 @@
- 补全项后面的特殊符号用于在按下 `Tab` 键之前提前感知是否有可用的补全项
- 这些符号目前只在通过 `psc add` 添加的补全中存在
- 只有通过 `psc add` 添加的补全中才存在
- 你可以将它们替换成空字符串来隐藏它们
- `psc menu symbol SpaceTab ""`
Expand All @@ -236,19 +236,18 @@
- `»`,`?`,`!` : 如果出现多个, 表示符合多个条件, 可以选择其中一个效果
- 定义:
- `Normal Completion`: 子命令,例如在 `git` 中的 `add`/`pull`/`push`/`commit`/...
- `Optional Completion`: 可选参数,例如在 `git add` 中的 `-g`/`-u`/...
- `General Optional Completion`: 可以用在任何地方的通用可选参数,例如在 `git` 中的 `--help`/...
- `»` : 表示选用当前选中的补全后, 可以按下 `Space`(空格键) 和 `Tab` 键继续获取 `Normal Completion` 或者 `Optional Completion`
- 仅在有 `Normal Completion` 或 `Optional Completion` 时才会显示此符号
- `Normal Completions`: 子命令,例如在 `git` 中的 `add`/`pull`/`push`/`commit`/...
- `Optional Completions`: 可选参数,例如在 `git add` 中的 `-g`/`-u`/...
- `General Optional Completions`: 可以用在任何地方的通用可选参数,例如在 `git` 中的 `--help`/...
- `Current Completions`: 当前的补全项列表
- `»` : 表示选用当前选中的补全后, 可以按下 `Space`(空格键) 和 `Tab` 键继续获取补全
- 可通过 `psc menu symbol SpaceTab <symbol>` 自定义此符号
- `?` : 表示选用当前选中的补全(`Optional Completion`)后, 你可以按下 `Space`(空格键) 和 `Tab` 键继续获取其他的 `Optional Completion`
- `General Optional Completion` 也使用此符号
- `?` : 表示选用当前选中的补全(`Optional Completions` 或 `General Optional Completions`)后, 可以按下 `Space`(空格键) 和 `Tab` 键继续获取 `Current Completions`
- 可通过 `psc menu symbol OptionTab <symbol>` 自定义此符号
- `!` : 表示选用当前选中的补全(`Optional Completion` 或者 `General Optional Completion`)后, 你可以按下 `Space`(空格键), 再输入一个字符串, 然后按下 `Space`(空格键) 和 `Tab` 键继续获取其他的 `Optional Completion` 或者 `General Optional Completion`
- `!` : 表示选用当前选中的补全(`Optional Completions` 或 `General Optional Completions`)后, 你可以按下 `Space`(空格键), 再输入一个字符串, 然后按下 `Space`(空格键) 和 `Tab` 键继续获取补全
- 如果字符串有空格, 请使用 `"`(引号) 或 `'`(单引号) 包裹,如 `"test content"`
- 如果同时还有 `»`, 表示有几个预设的字符串(`Normal Completion`)可以补全, 你可以不输入字符串, 直接按下 `Space`(空格键) 和 `Tab` 键继续获取它们
- 如果同时还有 `»`, 表示有预设的补全项, 你可以不输入字符串, 直接按下 `Space`(空格键) 和 `Tab` 键继续获取它们
- 可通过 `psc menu symbol WriteSpaceTab <symbol>` 自定义此符号
- 所有补全都可以在输入部分字符后按下 `Tab` 键触发补全
Expand Down Expand Up @@ -322,10 +321,13 @@
## 补全列表

- 说明

- **`Completion`** :可添加的补全。点击跳转命令官方网站,按照数字字母排序(0-9,a-z)。
- 特殊情况: `abc(a)`,这表示你需要通过 `psc add abc` 去下载它,但默认使用 `a` 而不是 `abc` 去触发补全
- **`Language`**: 支持的语言,以及翻译进度
- 翻译进度是相较于 `en-US`
- **`Language`**: 支持的语言,以及完成进度

- 这个进度是和 `config.json` 中定义的第一个语言相比,一般是 `en-US`

- **`Description`**: 命令描述

<!-- prettier-ignore-start -->
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
### About option completion
- `Optional Completion`: some command completions that like `-*`, such as `--global` in `git config --global`.
- `Optional Completions`: some command completions that like `-*`, such as `--global` in `git config --global`.
- You should use option completion first.
- Taking `git` as an example, if you want to enter `git config user.name --global xxx`, you should use `--global` completion first, and then use `user.name`, and then enter the name `xxx` .
Expand Down Expand Up @@ -231,18 +231,17 @@
- `»`,`?`,`!` : If there are multiple, you can choose the effect of one of them.
- Define them:
- `Normal Completion`: Sub-commands. Such as `add`/`pull`/`push`/`commit`/... in `git`.
- `Optional Completion`: Optional parameters. Such as `-g`/`-u`/... in `git add`.
- `General Optional Completion`: General optional parameters that can be used with any command. Such as `--help`/... in `git`.
- `»` : It means that after you apply it, you can press `Space` and `Tab` key to continue to get `Normal Completion` or `Optional Completion`.
- It will appear only when there's `Normal Completion` or `Optional Completion`.
- `Normal Completions`: Sub-commands. Such as `add`/`pull`/`push`/`commit`/... in `git`.
- `Optional Completions`: Optional parameters. Such as `-g`/`-u`/... in `git add`.
- `General Optional Completions`: General optional parameters that can be used with any command. Such as `--help`/... in `git`.
- `Current Completions`: Current completion items in completion menu.
- `»` : It means that after you apply it, you can press `Space` and `Tab` key to continue to get completions.
- It can be customized by running `psc menu symbol SpaceTab <symbol>`
- `?` : It means that after you apply it (`Optional Completion`), you can press `Space` and `Tab` key to continue to get other `Optional Completion`.
- `General Optional Completion` use also this symbol.
- `?` : It means that after you apply it (`Optional Completions` or `General Optional Completions`), you can press `Space` and `Tab` key to continue to get `Current Completions`.
- It can be customized by running `psc menu symbol OptionTab <symbol>`
- `!` : It means that after you apply it (`Optional Completion` or `General Optional Completion`), you can press `Space` and enter a string, then press `Space` and `Tab` key to continue to get other `Optional Completion` or `General Optional Completion`.
- `!` : It means that after you apply it (`Optional Completions` or `General Optional Completions`), you can press `Space` and enter a string, then press `Space` and `Tab` key to continue to get completions.
- If the string has Spaces, Please use `"`(quote) or `'`(single quote) to wrap it. e.g. `"test content"`
- If there's also `»`, it means that there's `Normal Completion`, you can press `Space` and `Tab` key to continue to get them without entering a string.
- If there's also `»`, it means that there's some preset completions, you can press `Space` and `Tab` key to continue to get them without entering a string.
- It can be customized by running `psc menu symbol WriteSpaceTab <symbol>`
- All completions can be triggered by pressing the `Tab` key after entering a part.
Expand Down Expand Up @@ -315,8 +314,8 @@
- Guide
- **`Completion`** :Click to view to the official website of the command. Sort by first letter(0-9,a-z).
- Special case: `abc(a)`, it means that you need to download it by `psc add abc`, but by default `a` is used instead of `abc` to trigger the completion.
- **`Language`**: Supported Languages, and Translation Progress.
- The translation progress is compared to `en-US`.
- **`Language`**: Supported Languages, and Progress.
- This progress is compared to the first language defined in `config.json` (usually `en-US`).
- **`Description`**: Command Description.

<!-- prettier-ignore-start -->
Expand Down
2 changes: 1 addition & 1 deletion completions/b2sum/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1ff5dec8-3228-4317-bd15-3eb4631ab5d7
51ca4db0-b625-42d3-93f5-7700e4df59f7
6 changes: 2 additions & 4 deletions completions/b2sum/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@
"alias": [
"--length"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -l|--length <BITS>\n",
"digest length in bits;\n",
"must not exceed the max for the blake2 algorithm (512) and must be a multiple of 8"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
6 changes: 2 additions & 4 deletions completions/b2sum/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@
"alias": [
"--length"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -l|--length <BITS>\n",
"digest length in bits;\n",
"must not exceed the max for the blake2 algorithm (512) and must be a multiple of 8"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
2 changes: 1 addition & 1 deletion completions/b3sum/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0c992e48-f554-4fbe-9f0f-25182c418e86
574af7be-e29b-4e7e-a147-3d2bc0d34d1f
6 changes: 2 additions & 4 deletions completions/b3sum/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@
"alias": [
"--length"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -l|--length <BITS>\n",
"digest length in bits;\n",
"must not exceed the max for the blake2 algorithm (512) and must be a multiple of 8"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
6 changes: 2 additions & 4 deletions completions/b3sum/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@
"alias": [
"--length"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -l|--length <BITS>\n",
"digest length in bits;\n",
"must not exceed the max for the blake2 algorithm (512) and must be a multiple of 8"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
2 changes: 1 addition & 1 deletion completions/base32/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2f3b9614-a73e-40ff-bb2e-987c50e029a4
674ddd5e-50c0-4e37-a0b8-acd9cb89f860
6 changes: 2 additions & 4 deletions completions/base32/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
"alias": [
"-wrap"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -w|-wrap <COLS>\n",
"wrap encoded lines after COLS character (default 76, 0 to disable wrapping)"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
6 changes: 2 additions & 4 deletions completions/base32/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
"alias": [
"-wrap"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -w|-wrap <COLS>\n",
"wrap encoded lines after COLS character (default 76, 0 to disable wrapping)"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
2 changes: 1 addition & 1 deletion completions/base64/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f9823bb0-4f92-48a4-8379-edc6d579993c
109805bf-87e2-484e-b665-4d32c27239a2
6 changes: 2 additions & 4 deletions completions/base64/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
"alias": [
"-wrap"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -w|-wrap <COLS>\n",
"wrap encoded lines after COLS character (default 76, 0 to disable wrapping)"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
6 changes: 2 additions & 4 deletions completions/base64/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
"alias": [
"-wrap"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -w|-wrap <COLS>\n",
"wrap encoded lines after COLS character (default 76, 0 to disable wrapping)"
]
],
"next": 0
},
{
"name": "--version",
Expand Down
2 changes: 1 addition & 1 deletion completions/basename/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f177fc9c-0a80-4af2-bc41-729b736de35f
3416200a-ddac-4f5e-9581-ade79dd5d099
6 changes: 2 additions & 4 deletions completions/basename/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
"alias": [
"--suffix"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -s|--suffix <SUFFIX>\n",
"remove a trailing SUFFIX; implies -a"
]
],
"next": 0
},
{
"name": "-z",
Expand Down
6 changes: 2 additions & 4 deletions completions/basename/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
"alias": [
"--suffix"
],
"symbol": [
"WriteSpaceTab"
],
"tip": [
"U: -s|--suffix <SUFFIX>\n",
"remove a trailing SUFFIX; implies -a"
]
],
"next": 0
},
{
"name": "-z",
Expand Down
2 changes: 1 addition & 1 deletion completions/bun/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
94902e65-5334-432d-b4b6-e5bb7de82b54
967498d9-7803-458d-a966-5b3a401eedc3
Loading

0 comments on commit 6ba83e0

Please sign in to comment.