JohnXu22786/snippet-expander ↗★ 0
dsh-steno
Steno — inline shorthand expansion plugin for dsh. Type #tag in a message and it is replaced with the configured text before sending.
安装
$
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.