JohnXu22786/snippet-expander0

dsh-steno

Steno — inline shorthand expansion plugin for dsh. Type #tag in a message and it is replaced with the configured text before sending.

包名
dsh-steno
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/snippet-expander

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
}
FieldDefaultDescription
librariesauto-discoveredArray of library file paths, order is priority (earlier wins); supports ~ and ${VAR}
defaultLibraryfirst libraryWrite target for steno.save when no library is specified
maxDepth8Maximum recursion depth for expansion
maxExpansions200Upper bound of replacements in a single expansion
skipCodetrueWhether to skip tags inside code regions
keepUnknowntrueWhether 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.