← Catalog

pi-stretchtext

Stretchtext replies for Pi: short answers whose phrases open in place into more depth. A port of cc-stretch.

Extension

Install

Install with PiG

pig install npm:pi-stretchtext

Install with Pi

pi install npm:pi-stretchtext
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/MonadicMike/pi-stretchtext/master/docs/demo.gif",
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

pi-stretchtext

Stretchtext replies for Pi: the model answers in one to three short sentences, and the phrases that hold more open in place into longer text, which may hold further phrases to open.

Opening stretches in a reply about Leonhard Euler

Install

pi install npm:pi-stretchtext

Or from git: pi install git:github.com/MonadicMike/pi-stretchtext.

Set up

Clicking a stretch needs Pi's fullscreen TUI mode. It is Pi's default; if you switched to regular mode, turn it back on in any of these ways:

  • in Pi, open /settings and set the TUI mode to fullscreen,
  • or in ~/.pi/agent/settings.json set "tuiMode": "fullscreen",
  • or start Pi with pi --tui-mode fullscreen.

In regular mode the keyboard shortcuts below still work.

Use

ActionFullscreenAny mode
Open a stretchclick its underlined short formalt+o, then its letter
Close a stretchclick the « after italt+c, then its letter

License

MIT. Based on cc-stretch by pro-vi, also MIT.