Skip to content

saphid/sticky-prompt-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sticky Prompt Header for Pi

A tiny Pi extension that keeps your latest submitted prompt visible while you work.

Screenshot of the Sticky Prompt Header extension

What it does

  • Shows the latest user prompt in a compact Pi-styled banner.
  • Uses a pi-btw-style full-width floating window flush with the top of the terminal.
  • Keeps focus in Pi's normal editor and terminal UI with nonCapturing: true.
  • Provides a toggle command plus a manual repaint command.

Install

Copy the extension into Pi's global extensions directory:

mkdir -p ~/.pi/agent/extensions
cp sticky-prompt-header.ts ~/.pi/agent/extensions/

Then restart Pi or run:

/reload

Usage

Submit a prompt in Pi. The latest prompt appears in a full-width floating window flush with the top edge of the terminal, using Pi's normal overlay API.

Commands:

/sticky-prompt-header              # toggle on/off
/sticky-prompt-header repaint      # force a redraw

Notes

This follows the same general floating-window path as pi-btw: ctx.ui.custom() with overlay: true, anchor: "top-center", width: "100%", zero top/side margins, and nonCapturing: true.

About

Pi extension that pins the latest prompt in a sticky terminal header

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages