JohnXu22786/snippet-expander ↗★ 0
dsh-steno
Steno:dsh 的行内简写展开插件。在消息中输入 #标签 即可在发送前替换为配置的文本。
AI 分析
核心用途是实现输入简写自动展开。适合需要频繁输入常用长文本、模板或指令,以提升沟通与操作效率的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/snippet-expander說明文件
閱讀完整 README ↗Configuration
The host can pass a config object when loading the plugin (JSON Schema in config.schema.json):
{
"libraries": ["~/.dsh/steno/core.yaml", ".dsh/steno/project.yaml"],
"defaultLibrary": "core",
"maxDepth": 8,
"maxExpansions": 200,
"skipCode": true,
"keepUnknown": true
}
| Field | Default | Description |
|---|---|---|
libraries | auto-discovered | Array of library file paths, order is priority (earlier wins); supports ~ and ${VAR} |
defaultLibrary | first library | Write target for steno.save when no library is specified |
maxDepth | 8 | Maximum recursion depth for expansion |
maxExpansions | 200 | Upper bound of replacements in a single expansion |
skipCode | true | Whether to skip tags inside code regions |
keepUnknown | true | Whether to keep placeholders verbatim when they have no value and no default |
Library path resolution order: explicit libraries → environment variable DSH_STENO_LIBRARIES → auto-discovery.