Skip to content

Release: F7 history TG-v2 prompt fix (#18) + docs#20

Merged
tig merged 4 commits into
mainfrom
develop
Jun 25, 2026
Merged

Release: F7 history TG-v2 prompt fix (#18) + docs#20
tig merged 4 commits into
mainfrom
develop

Conversation

@tig

@tig tig commented Jun 25, 2026

Copy link
Copy Markdown
Member

Promotes developmain to ship the next patch release.

Includes:

The release pipeline (release.yml) will auto-resolve the next patch version (1.0.0 is tagged → 1.0.1), build/test under PS 7.6, publish to PSGallery, tag, and create a GitHub Release.

🤖 Generated with Claude Code

tig and others added 4 commits June 23, 2026 20:54
Add Scripts/tuirec/ — a PSTui-specific recording guide modeled on Terminal.Gui's
Scripts/tuirec/README.md, plus three demo scripts driven by tuirec:
  - demo-ocgv.ps1 -> hero.gif: 'ls | ocgv' then the killp process picker
  - demo-shot.ps1 -> shot.gif:  Get-Process | shot tree exploration (-FullScreen)
  - demo-f7.ps1   -> f7history.gif: the F7 command-history picker

Embed the GIFs in the README (hero up top, shot in Features, F7 in the command-
history section) and drop the old 1.8 MB ocgv.gif (hero.gif is ~120 KB).

The guide documents the PSTui-specific gotchas: record a -File script (not
-Command, since --args is comma-split), the pwsh REPL doesn't render under a
recording PTY (so demos invoke the cmdlet directly), -Focus Filter for live
ocgv filtering, and -FullScreen for a clean shot capture. artifacts/ is
git-ignored; committed GIFs live in docs/PSTui/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rework the demo recordings to read like a real shell session: each demo script
echoes a synthetic prompt line (e.g. 'PS ~/PStui> ls | ocgv') before
Import-Module, holds it briefly, then opens the picker full-screen. Re-recorded
hero/shot/f7history accordingly (-FullScreen + --trim=false so multi-step demos
aren't truncated).

Add demo.gif — a recording of the repo-root demo.ps1 walkthrough (Esc advances
through each example; killp steps select nothing, so nothing is killed) — and
reference it from the README Examples section. Update the tuirec guide with the
final recipes (prompt-echo-before-import, -FullScreen, --trim=false) and the
demo.gif recipe. Ignore stray Thumbs.db.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Port the Terminal.Gui v2 prompt-rendering fix from tui-cs/F7History#25 into
PSTui's folded-in command-history handler.

Under TG v2, Out-ConsoleGridView renders inline by default, so by the time the
picker exits the screen has scrolled and PSReadLine's saved prompt row
(_initialY) is stale. DeleteLine()/Render() then repaint the prompt in the
wrong place. Call InvokePrompt($null, [Console]::CursorTop) first to re-anchor
PSReadLine on the current cursor row, then DeleteLine + Insert as before.

PSTui keeps DeleteLine (so the typed filter prefix is replaced, not appended)
and drops the now-pointless SetCursorPosition dance, matching the upstream
intent.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@tig tig merged commit 2c68354 into main Jun 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant