dsh-quick-phrases

Adds a row of quick-phrase chips beside the composer whose captions and sent text are edited separately: a click either sends the phrase or inserts it at the cursor, per a setting, and always inserts at the cursor when the composer already holds a draft; the row folds into one pill while a draft exists and can be switched off from settings so that nothing renders at all; single phrases can be hidden on their own; the row sits below the composer, above it, or in the tool row; and a settings page covers adding, renaming, drag-reordering, two-step delete and resetting to defaults. All behaviour is one renderer-side script with no dependencies and no network requests, storing phrases in plain text in localStorage.

Overview

Adds a row of quick-phrase chips beside the composer whose captions and sent text are edited separately: a click either sends the phrase or inserts it at the cursor, per a setting, and always inserts at the cursor when the composer already holds a draft; the row folds into one pill while a draft exists and can be switched off from settings so that nothing renders at all; single phrases can be hidden on their own; the row sits below the composer, above it, or in the tool row; and a settings page covers adding, renaming, drag-reordering, two-step delete and resetting to defaults. All behaviour is one renderer-side script with no dependencies and no network requests, storing phrases in plain text in localStorage.

Installation

Install from npm

dsh plugin --profile web add dsh-quick-phrases

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:pengtang1024/dsh-quick-phrases

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands