Oh My Pi extension that adds slash commands for getting recent assistant replies out of the terminal Markdown renderer and into a real Markdown viewer/editor.
/ccopies the latest assistant Markdown reply to the clipboard./c 2copies the previous assistant reply./c 1..3copies a newest-first range, rendered chronologically and separated with Markdown headings./oopens the latest assistant Markdown reply as a temporary.mdfile in the system default app./o 2and/o 1..3work the same way for earlier replies/ranges.
Indexes are newest-first: 1 is the latest assistant reply, 2 is the one before it, and so on.
From GitHub:
omp plugin install github:AsafMah/omp-copy-lastFor local development:
omp plugin link /path/to/omp-copy-lastRestart OMP after installing or linking so the extension runner loads the package.
- Windows clipboard support uses PowerShell
Set-Clipboardwith UTF-8 stdin so Unicode survives. - If PowerShell clipboard copy fails, the extension falls back to
clip.exe. - Opening uses the OS default file opener:
rundll32 url.dll,FileProtocolHandleron Windows,openon macOS, andxdg-openon Linux.