CLIPBOARD

Snippets

Keep repeated terminal text ready to reuse.

Availability

Implemented in the stable source; configuration and compatibility limits are described below.

Reviewed against stable v0.5.1. Rust candidate additions are labeled separately. Release status.

The pain this solves

  • Repeatedly typing the same terminal text adds friction and invites typos.

What ships with it

  • Stores reusable text with optional metadata and placeholder forms.
  • Supports placeholder defaults and named input forms, including selection controls.
  • Settings support JSON import and export for manual sharing.

Questions this answers

  • Can I save reusable terminal commands in Chau7?
  • Do snippets support placeholders?
  • Can I import or export snippets?

How it works

Chau7 stores named snippet text that can be selected from its snippets interface and inserted into the terminal. The manager supports snippet metadata such as tags, folders, shell filters, and quick-select keys.

Placeholder syntax supports numbered fields with optional defaults, plus named input forms including text and selection controls. Environment tokens can also be expanded by the snippet parser.

The settings interface supports editing snippets and importing or exporting JSON. Snippets are local app data; the stable app does not provide automatic cross-device synchronization.

Why it matters

Saved snippets reduce repeated typing for commands and other terminal text. Review the inserted content before submitting it, especially when a template contains commands or environment values.

Frequently asked questions

Can snippets prompt for values?

Yes. Supported placeholder forms can show fields or choices before the snippet text is inserted.

Do snippets run automatically?

Insertion places snippet text in the terminal workflow; review and submit it as appropriate. The scripting API method named run_snippet returns snippet content to its client rather than executing it.

How can I share snippets?

The settings UI can import and export JSON for manual sharing.