Skip to content

Commit

Permalink
feat(completions): update psc
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Jun 12, 2024
1 parent e3ac121 commit a2a5505
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion completions/psc/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
027b00d9-bc4b-47ed-a29b-085afb548bf0
e7066493-00cf-41e5-bf10-acaa490bfbf6
18 changes: 17 additions & 1 deletion completions/psc/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1962,5 +1962,21 @@
]
}
}
}
},
"config": [
{
"name": "disable_hooks",
"value": 0,
"values": [
1,
0
],
"tip": [
"Set whether to disable hooks. Default to 0.\n",
"The psc hooks are used to get the name of the installed completions, completions that can be added, etc. and then dynamically add them to some completions. (e.g. <@Magenta>add<@Blue>, <@Magenta>rm<@Blue>, <@Magenta>update<@Blue>, <@Magenta>completion<@Blue>, <@Magenta>alias<@Blue>, etc.)\n",
"For example, enter <@Magenta>psc rm<@Blue>, press <@Magenta>Space<@Blue> and <@Magenta>Tab<@Blue> key, and you can get some extra completions about the name of the installed completions.\n",
"You can disable hooks by running <@Magenta>psc completion psc disable_hooks 1<@Blue>."
]
}
]
}
18 changes: 17 additions & 1 deletion completions/psc/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1964,5 +1964,21 @@
]
}
}
}
},
"config": [
{
"name": "disable_hooks",
"value": 0,
"values": [
1,
0
],
"tip": [
"设置是否禁用 hooks,默认为 0 表示不禁用\n",
"psc 中的 hooks 主要用于获取已添加的补全名称、可添加的补全名称等, 然后动态添加到一些命令补全中(如 <@Magenta>add<@Blue>, <@Magenta>rm<@Blue>, <@Magenta>update<@Blue>, <@Magenta>completion<@Blue>, <@Magenta>alias<@Blue> 等)\n",
"如: 输入 <@Magenta>psc rm<@Blue> 后按下 <@Magenta>Space<@Blue>(空格) 和 <@Magenta>Tab<@Blue> 键可以获取已添加的补全名称的补全\n",
"你可以通过运行 <@Magenta>psc completion psc disable_hooks 1<@Blue> 来禁用 hooks"
]
}
]
}

0 comments on commit a2a5505

Please sign in to comment.